Skip to content

Using this library will listen to tcp ports externally #144

Description

@SecGPT
var request = require('sync-request');
var res = request('GET', 'http://www.baidu.com');
console.log(res.getBody().toString());

setTimeout(() => {
    console.log('sleep');
}, 10000000);

run node app.js

root      124489   32647 16 15:36 pts/3    00:00:00 /usr/bin/node /root/test/app.js
root      124566  124489 47 15:36 pts/3    00:00:01 /usr/bin/node /root/test/node_modules/sync-rpc/lib/worker.js 35047

root@demo:~# netstat -antlup | grep 124566
tcp6       0      0 :::35047                :::*                    LISTEN      124566/node

It seems that sync-rpc will listen

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions