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.

}<br />

print "By Saumil Shah (c) net-square 2001\n\n";<br />

print "post_cmd.pl takes all the data to be POSTed to the URL as\n";<br />

print "standard input. Either enter the data manually and hit ^D (unix)\n";<br />

print "or ^Z (dos) to end; or redirect the data using files or pipes\n\n";<br />

exit(0);<br />

if($server =~ /\//o) {<br />

}<br />

$server =~ s/http:\/\///o;<br />

$server =~ /(.*?)\/(.*)/o;<br />

$file = '/'. $2;<br />

$server = $1;<br />

else {<br />

}<br />

$file = '/';<br />

if(defined($ARGV[1])) {<br />

}<br />

$file = $ARGV[1];<br />

# capture proxy server<br />

$proxy_flag = 0;<br />

if(defined($ARGV[1])) {<br />

}<br />

($proxy_ip, $proxy_port) = split(/:/, $ARGV[1]);<br />

$proxy_flag = 1;<br />

# take the commands that we need to send at this stage<br />

# Note: if we do not start off the set of commands to be POSTed with

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

Saved successfully!

Ooh no, something went wrong!