tomsteele / burpbuddy

burpbuddy exposes Burp Suites's extender API over the network through various mediums, with the goal of enabling development in any language without the restrictions of the JVM
MIT License
156 stars 25 forks source link

correct work burp buddy #29

Closed ffredHTTP closed 7 years ago

ffredHTTP commented 7 years ago

I try to use your extension but within a few days can not get what he normally worked. My script: a) I installed the plugin and activated him. Got the message "HTTP Server started on 127.0.0.1:8081", b) Launched hapi js server on port 3001 c) get example.com from browser via burp proxy and nothing not received to 3001 port. Request from burp to 3001 port never send.

code of node.js server

const Hapi = require('hapi');

const server = new Hapi.Server();

server.connection({ port: 3001, host: 'localhost' });
process.stdout.write("hello: ");
server.route({
    method: 'POST',
    path: '/request',

    handler: function(req, reply) {
        process.stdout.write("hello: ");
        var agent = 'Mozzilla   /5.0!';
        req.payload.headers['User-Agent'] = agent;
        reply(req.payload);
    }
})

server.start();

I few fix you code from video https://youtu.be/lLmXVPf0O2Q?t=14m40s. When Im get localhost http server Im get not modify User-Agent header. What am I doing wrong? Sorry for my English