in reply to transmit udp packets
To hack your MAC address, depending on platform, you may need to use Net::Pcap and the send methods. I'm thinking something similar to Python's scapy (http://www.secdev.org/projects/scapy/).
Fortunately, I wrote something based on the Net::Frame modules. You can find it here:
EDIT (20170918): fixed old links, now point to GitHub
https://github.com/vinsworldcom/PPCUPDATE:
Simple as:
VinsWorldcomC:\Users\VinsWorldcom\tmp\ppc> ppc -i "Wireless Network Co +nnection" Welcome to Perl Packet Crafter (PPC) Version: 1.02 Wireless Network Connection ppc> $r = srp (packet (ETHER(dst=>'00:11:22:33:44:55'), IPv4, UDP)); Sent => [Receive Timeout] ppc>
Receive timeout due to there being no 00:11:22:33:44:55 MAC address on my network.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: transmit udp packets
by axr0284 (Initiate) on Jun 25, 2015 at 18:03 UTC | |
by VinsWorldcom (Prior) on Jun 25, 2015 at 18:38 UTC | |
by axr0284 (Initiate) on Jun 26, 2015 at 14:51 UTC |
In Section
Seekers of Perl Wisdom