[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

SYN scan

Nicholas Wieland

5/19/2005 6:13:00 AM

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

--
checking for life_signs in -lKenny... no
Oh my god, make (1) killed Kenny ! You, bastards !

nicholas_wieland-at-yahoo-dot-it



1 Answer

Guillaume Marcais

5/19/2005 7:05:00 PM

0

On Thu, 2005-05-19 at 15:13 +0900, Nicholas Wieland wrote:
> 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/i...

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.