Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
BurpClient
✓ import { BurpClient } from 'burp-rpc'
✗ const BurpClient = require('burp-rpc').BurpClient
ESM only (node >=18); CommonJS require works but destructure properly.
decodeBase64Body
✓ import { decodeBase64Body } from 'burp-rpc'
✗ import decodeBase64Body from 'burp-rpc'
This is a named export, not default.
BurpProxy
✓ import { BurpProxy } from 'burp-rpc'
✗ import { BurpProxy } from 'burp-rpc/proxy'
All types are exported from the main package entry.
Connect to Burp Suite gRPC service, fetch last 5 proxy history entries, send to Repeater, fire raw request, and query site map.
import { BurpClient, decodeBase64Body } from 'burp-rpc';
const burp = new BurpClient({ host: process.env.BURP_RPC_HOST ?? 'localhost', port: 50051 });
const recent = await burp.proxy.getLastN(5);
for (const entry of recent) {
console.log(decodeBase64Body(entry.request.rawBytesBase64));
}
await burp.repeater.sendFromHistory(recent[0], 'My Tab');
const res = await burp.http.sendRawRequest(
'example.com', 443, true,
'GET / HTTP/1.1\r\nHost: example.com\r\n\r\n'
);
console.log('Status:', res.hasResponse);
const sites = await burp.siteMap.getEntries();
burp.close();
Errors
Common errors & fixes
Error: 14 UNAVAILABLE: failed to connect to all addresses
Burp gRPC extension not running or wrong host/port.
fixEnsure Burp extension is loaded and listening on 0.0.0.0:50051.
TypeError: burp.proxy is undefined
Using default import (BurpClient) without new keyword or incorrect instantiation.
fixUse new BurpClient() correctly.
Error: Cannot find module 'burp-rpc'
Package not installed or wrong import path.
fixRun 'npm install burp-rpc' and ensure import path is correct.
Audit
Dependencies
No dependency data recorded yet.