Massive ip/ports scanner (nodejs)
JavaScript Makefile
Switch branches/tags
Nothing to show
Latest commit d95cc62 Nov 26, 2016 @eviltik fix #43 and bump version


Build Status


Massive ip/port scanner (tcp connect). Work in progress.


This program is young. I'm not a js expert. Feel free to fork and pull request ! I'm on #evilprobe (freenode) times to times.

Currently support :

  • individual IP or IP range scan
  • individual port, ports list, or ports range
  • banner grabbing (not fully implemented, works with verbose ports only)
  • IAC negotiation
  • reverse dns
  • geolocation information
  • shell or json output
  • optional progress details


(see github issues and

  • more and more tests
  • udp scan
  • syn scan


Travis-ci tests (using mocha+chai), tell us it's ok using nodejs >= 0.9. So you can install evilscan using npm, as usual :

npm install -g evilscan

Use evilscan as a node module

var evilscan = require('./');

var options = {
    status:'TROU', // Timeout, Refused, Open, Unreachable

var scanner = new evilscan(options);

scanner.on('result',function(data) {
        // fired when item is matching options

scanner.on('error',function(err) {
        throw new Error(data.toString());

scanner.on('done',function() {
        // finished !

Use evilscan as a command line tool

Usage: evilscan <fqdn|ipv4|cidr> [options] Example:

root@debian:~# evilscan --port=21-23,80


  --port          port(s) you want to scan, examples:
  --reverse       display DNS reverse lookup                                    
  --reversevalid  only display results having a valid reverse dns, except if
                  ports specified                                               
  --geo           display geoip (free maxmind)                                  
  --banner        display banner                                                
  --bannerlen     set banner length grabing
                  default 512

  --bannerraw     display raw banner (as a JSON Buffer)                         
  --progress      display progress indicator each seconds
  --status        ports status wanted in results (example --status=OT)
                  O(open, default)
  --scan          scan method
                  tcpconnect (full connect, default)
                  tcpsyn (half opened, not yet implemented)
                  udp (not yet implemented)
  --concurrency   max number of simultaneous socket opened
                  default 500
  --timeout       maximum number of milliseconds before closing the connection
                  default 2000
  --display       display result format (json,xml,console)
                  default console
  --json          shortcut for --display=json                                   
  --xml           shortcut for --display=xml                                    
  --console       shortcut for --display=console                                
  --help          display help                                                  
  --about         display about                                                 
  --version       display version number                                        

Samples output

  • Every ports on localhost, grab banner, display only opened ports
root@debian:~# evilscan --port=0-65535 --banner|111||open|53||open|23|Debian GNU/Linux jessie/sid\r\ndebian login:|open|5432||open|27017||open|28017||open|35223||open|35491||open|39619||open
  • Every ports on localhost, grab banner, display only opened ports, json output, progress status each seconds
root@debian:~# evilscan --port=0-65535 --banner --isopen --istimeout --progress --json
{"ip":"","port":23,"banner":"Debian GNU/Linux jessie/sid\\r\\ndebian login:","status":"open"}

Tips :

Conncurrency and fast scan

By default, concurrency is 100. Which is slow when you are scanning large ip range or large port range. You can pass a bigger value using --concurrency option. 1000 is fast by example. On some linux, only 1024 opened sockets are allowed in the same time. To break this limit, you have to update ulimit parameter of your linux first :

ulimit -u unlimited

In all cases, due to #25, you will not be able to scan more than 16580355 ip addr at the moment.


You can pause/unpause a running scan by sending SIGUSR2 signal. First time it will pause the process, second time it will unpause it.

kill -SIGUSR2 19859 # where 19859 is the pid of nodejs process running evilscan

Help needed

Do not hesitate to open issues and ask for features. Right now i just need "connect" scan. UDP implementation or syn scans should be great (forks are welcome). More and more tests.

If you are using evilscan, please star it !

Thank you

Special thanks to authors of theses nodejs modules :

and dailyjs ;)