Gossamer Forum
Home : General : Internet Technologies :

Linux & FreeBSD?

(Page 2 of 2)
> >
Quote Reply
Re: [Paul] Linux & FreeBSD? In reply to
Quote:
Had to reboot the sucker the other day :)

At least yours restarted... Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy.] Linux & FreeBSD? In reply to
Andy, check your inbox, I found a little hole in your contact form :) ....Agent Skully has been doing some secret service work Wink

Code:
#!/usr/bin/perl

use LWP::UserAgent;

my ($req,$ua,$res);

$ua = new LWP::UserAgent;
$ua->agent("AgentSkully/1.0 " . $ua->agent);

$req = new HTTP::Request POST => 'http://path_to_andys_script';
$req->content_type('application/x-www-form-urlencoded');
$req->content('action=send_quote');

for (1..1000) {
$res = $ua->request($req);
print $res->is_success ? "Sent $_\n" : "Bad luck this time\n";
}

Last edited by:

Paul: Apr 17, 2002, 7:19 AM
Quote Reply
Re: [Paul] Linux & FreeBSD? In reply to
I queried wiredon.net through netcraft back in December - see earlier link to post. That's how it got in the database, I presume. Blush

- wil
Quote Reply
Re: [Wil] Linux & FreeBSD? In reply to
I prefer the perl way :)

http://213.106.15.150/...//www.fbagroup.co.uk

Tongue

Last edited by:

Paul: Apr 17, 2002, 7:31 AM
Quote Reply
Re: [Paul] Linux & FreeBSD? In reply to
Yes Paul..I noticed :( I've deleted all of em....don't you have anything better to be doing? FYI everyone, Paul thought it would be funny to barricade my installation request form with 1000 emails! I can accept your point, but wasnt there a more subtle way to point it out to me? BTW, the hole is fixed now ;)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy.: Apr 17, 2002, 8:30 AM
Quote Reply
Re: [Andy.] Linux & FreeBSD? In reply to
I doubt you got one thousand seeing as I only left it running for 5 seconds so you got the hint :)

Be thankful I pointed it out (without revealing the actual script) so someone else couldn't leave a script running all night and send you 100,000 emails and nuke your server :)

Cool

...oh and no I didn't think it would be "funny"...if I was trying to be funny I wouldn't have told you it was me :)

Last edited by:

Paul: Apr 17, 2002, 9:02 AM
Quote Reply
Re: [Andy.] Linux & FreeBSD? In reply to
<meow!>
.. is that contact form powered by your Ace Mailing script? ...
</meow!>

- wil
Quote Reply
Re: [Wil] Linux & FreeBSD? In reply to
Nope..I wrote this specifically for requests....

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy.] Linux & FreeBSD? In reply to
Don't worry about it! Look at this code I wrote to handle form submission on one of our websites recently Blush

Code:
#!/usr/local/bin/perl

$SEND_MAIL = '/usr/lib/sendmail';

#___________________________________________________________________________
#
# DONE!
#___________________________________________________________________________


$| = 1;

use CGI;
$query = new CGI;

$query->import_names('A');


#######################################################################################
#######################################################################################


print "Location: http://www.****.co.uk/****/submit-thankyou.html\n\n";


open(MAIL,"|$SEND_MAIL -t");

print MAIL "To: wil\@****.co.uk\n";
print MAIL "From: $A::email ($A::name)\n";

print MAIL "Subject: ****: Submit Recipe\n\n";

print MAIL "The following information has been sent from the **** Submit Recipe Form:\n";

print MAIL "-------------------------------------------------------------------------------\n";
print MAIL "\n";

print MAIL "$A::name\n\n";
print MAIL "$A::email\n\n\n";
print MAIL "$A::recipe\n\n";

print MAIL "-------------------------------------------------------------------------------\n";
print MAIL "\n";

close (MAIL);

exit;

#######################################################################################
#######################################################################################

- wil
Quote Reply
Re: [Wil] Linux & FreeBSD? In reply to
Heh thats almost as bad as one of mine :)

I was so busy and needed to get wiredon up and running that I quickly shoved something together.

Basically it just parses the form into an email...I've probably just blown my cover....better go and fix it :)
Quote Reply
Re: [Paul] Linux & FreeBSD? In reply to
Yep! I've done this a hundred times when deadlines are pushed. I get it up, and then I go back and refine when I have 10 minutes at a later stage. Nowdays, though, I have a flexible solid alternative that I use for all my contact forms regardless of sites so that saves me some time at least!

- wil
> >