Closed jesusprubio closed 10 years ago
Hi, sorry for delay
I don't have any problemon my side with this code :
var evilscan = require('./');
var options = {
target:'127.0.0.1',
port:'21-23',
status:'TROU', // Timeout, Refused, Open, Unreachable
banner:true
};
var scanner = new evilscan(options);
scanner.on('result',function(data) {
// fired when item is matching options
console.log(data);
});
scanner.on('error',function(err) {
throw new Error(data.toString());
});
scanner.on('done',function() {
// finished !
});
scanner.run();
I'm using Node v0.10.13
Please update evilscan, try again and tell me if it's ok or not
Cheers
Thanks for the response and sorry for my delay too. If I create a single .js file on root folder using "local" source of evilscan it also works for me. But when I use evilscan as separate module (var evilscan = require('evilscan');) it fails with this error:
baguira@chocolate:~/Escritorio/evilscan$ node evilscan.js
/usr/lib/node_modules/evilscan/main.js:39 cb(self); ^ TypeError: undefined is not a function at /usr/lib/node_modules/evilscan/main.js:39:13 at /usr/lib/node_modules/evilscan/libs/options.js:346:9 at /usr/lib/node_modules/evilscan/node_modules/async/lib/async.js:229:13 at /usr/lib/node_modules/evilscan/node_modules/async/lib/async.js:139:25 at /usr/lib/node_modules/evilscan/node_modules/async/lib/async.js:226:17 at /usr/lib/node_modules/evilscan/node_modules/async/lib/async.js:553:34 at getPorts (/usr/lib/node_modules/evilscan/libs/options.js:99:30) at async.series.argv.ips (/usr/lib/node_modules/evilscan/libs/options.js:335:13) at /usr/lib/node_modules/evilscan/node_modules/async/lib/async.js:548:21 at /usr/lib/node_modules/evilscan/node_modules/async/lib/async.js:224:13
Thanks in advance. :)
Following the example on the front page verbatim, when running within the ./node_modules/evilscan
directory, I get the same error as above.
evilscan@0.0.9 node_modules/evilscan
├── qjobs@1.1.4
├── async@0.2.10
├── printf@0.1.2
├── optimist@0.5.0 (wordwrap@0.0.2)
├── winston@0.7.2 (cycle@1.0.3, stack-trace@0.0.7, eyes@0.1.8, colors@0.6.2, pkginfo@0.3.0, request@2.16.6)
└── geoip@0.5.1 (bindings@1.1.1, debug@0.7.4, nan@0.7.1)
$ node --version
v0.10.25
Solved.
Hi, I'm adding Evilscan to my VoIP security tool (https://github.com/jesusprubio/bluebox-ng) but I've a problem running the provided example of use included in the README.
$ node scan.js /usr/lib/node_modules/evilscan/main.js:39 cb(self);
It's curious because in the command line It's working ok for me: $ evilscan 192.168.122.59 --port=21,22,23,80,5060.5065 192.168.122.59|5060|open 192.168.122.59|22|open
Any idea please? :)