There are tons of giveaways and contests out there that make you jump through hoops filling out way too much information only to receive a million unwanted emails. I have set my browser homepage to one I really do not like in order to remind myself to fill out the form every day (I will not tell you which one because I want to win!).
A Quick Briefing : cURL is used to send / receive data to and from other computers via command line. Since I know PHP quite well I decided to install the php-curl module and instantly got an automated spambox, data grabber, post submitter and whatever else one can do with a normal browser – the best part is I only have to set it up once.
I now have a crontab installed to spoof a web server into thinking I am being referred from an affiliate link, in which it then sends my information as well as some hidden values and instantly generates a report (which is emailed to me). I know this is shady business however the last thing I won was a Nevada pull ticket when I was 8 and I couldn’t claim the winnings – fuck you world LOL.
Here is just a taste of something you can set up yourself – should be quite simple to modify to your needs.
#!/usr/bin/php
$name = "Gregory";
$email = array("email1@gmail.com", "email2@yahoo.com", "email3@slopsbox.com");
$zip_code = "90210";
$url = 'http://the-url-to-post-to.com';
$user_agent = "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$referer = 'http://crappy-affiliate-program.com/index.php?affiliate=poor_sucker";
foreach ($email as $mail) {
$params = "name=$name&email=$mail&zip_code=$zip_code&hidden_value1=someValue";
$ch = curl_init();
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec ($ch);
curl_close ($ch);
}
?>
Really all you have to do is investigate the <form…> on the page you are attempting to post to – examine all text inputs, textareas, checkboxes, radio buttons and hidden values. You should be able to form the POST data string, similar to JSON (key=>value pairs).
As for captcha, just hope your target is either lazy or stupid – most of those things are a pain in the rear end.
Enjoy!



