SYN scan

N

Nicholas Wieland

Hi *,
I'm trying to SYN scan a pair of machines on my network - actually
everything is a little more complex than a simple scan, I'm
simplificating things - and would like to do it with Ruby.
I was asking myself if I can do that without using nmap, maybe with
Socket or SocketBase, and how.
I'd love a simple example, but maybe i'm asking too much :)
A pointer to web resources, ruby packages, "use the source Luke" are
equally appreciated (I already looked at pscan but it does a simple TCP
connect).

TIA,
ngw
 
G

Guillaume Marcais

Hi *,
I'm trying to SYN scan a pair of machines on my network - actually
everything is a little more complex than a simple scan, I'm
simplificating things - and would like to do it with Ruby.
I was asking myself if I can do that without using nmap, maybe with
Socket or SocketBase, and how.
I'd love a simple example, but maybe i'm asking too much :)
A pointer to web resources, ruby packages, "use the source Luke" are
equally appreciated (I already looked at pscan but it does a simple TCP
connect).

Have look at:

http://raa.ruby-lang.org/project/icmpmodule/

It is an implementation of icmp in pure Ruby using raw sockets. It works
very well and is portable. Similarly, I wrote some code to do ARP
resolution in Ruby. So SYN scan should be doable.

Hope it helps,
Guillaume.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top