eviltik / evilscan

NodeJS Simple Network Scanner
https://github.com/eviltik/evilscan
MIT License
546 stars 63 forks source link

Implement SYN scan #13

Closed eviltik closed 9 years ago

eviltik commented 11 years ago

net.createConnection got allowHalfOpen option ! cool ! it's evil !!

Atm (<0.0.6), only pure tcp connect is supported.

eviltik commented 11 years ago

After read node's doc and make some test, got a doubt that's possible to implement syn scan finger in the nose ..

eviltik commented 11 years ago

Need help for this, is there any nodejs low level networking guy in the plane ?

eviltik commented 11 years ago

Not easy.

The only way to:

Host A sends SYN to host B
Host B reply with a SYN-ACK
Host A sends RST

is to add binding for

pcap_sendpacket
pcap_sendqueue_* (mandatory ??)

@mscdex https://groups.google.com/forum/?fromgroups#!topic/nodejs/kB-E7h3KM0I

mscdex commented 11 years ago

@eviltik You might look at something like raw-socket.

eviltik commented 11 years ago

You are the boss, thanks mscdex, i didn't know about this module

eviltik commented 11 years ago

not easy but seem's feasible

https://bitbucket.org/stephenwvickers/node-raw-socket/issue/9/ipproto_tcp

eviltik commented 11 years ago
this.fireEvent('challengeInProgress',function(err,result) {
    if (err) {
        console.log('You were dreaming');
        process.exit(0);
    }

    console.log('WORK IN PROGRESS');
});
eviltik commented 11 years ago

https://bitbucket.org/stephenwvickers/node-raw-socket/overview

Version 1.1.7 - 23/06/2013 Added the htonl(), htons(), ntohl(), and ntohs() functions, and associated example programs Added the createChecksum() function, and associated example program

eviltik commented 9 years ago

cleanup