Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
The stupid question is the question not asked
 
PerlMonks  

Re^6: udp recv question

by smackdab (Pilgrim)
on Jun 28, 2004 at 04:42 UTC ( #370103=note: print w/ replies, xml ) Need Help??


in reply to Re^5: udp recv question
in thread udp recv question

I did that reading, and I thought I provided a complete sample program that does exactly the technique you describe.

From a sniffer, I know a UDP packet goes out and an ICMP one comes back.

I can't figure out to read the ICMP into memory (not decode, just read into a buffer...)

No worries, no more comments needed, I'll review my code in the morning...maybe a good night sleep will clear out the cobbwebs...


Comment on Re^6: udp recv question
Re^7: udp recv question
by Anonymous Monk on Jun 28, 2004 at 06:12 UTC

    you'll have to use Net::Pcap most likely. use it to capture the appropriate ICMP packets that may be returned in response to your UDP packet. dealing with ICMP requires root access and is a pain.

    i would just make a call out to nmap or some other external port scanner.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://370103]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-04-16 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (417 votes), past polls