1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

(((((((((( Service You Can Never Resisit ))))))))))

Discussion in 'Programming' started by azlanhussain, Nov 9, 2008.

Thread Status:
Not open for further replies.
  1. #1
    Hi guys,

    After joining DP for a while now, I have to admit that I have gained lots of supports, benefits, knowledge & experience. As a way to best show my appreciation, I think it's now time for me to contribute back to the community. I'm going to offer my service in programming base on Perl and PHP for a very minimum Fee or even FREE. :) (depending on size & work load) If you're thinking of doing some text manipulation, mass calculation, extracting some data from websites, your own simple auto responder, basic affiliate system, etc.. feel free to ASK :)

    To start of with I'll share some of my own developed software. Those are:

    1) BCGrabber
    Purpose: Collect active blogs from BlogCatalog.com community
    Status: Released

    2) TrafficBot
    Purpose: Generate fake traffic to any website
    Status: Released

    3) MetaCafe Viewers
    Status: Beta

    4) CPA Sign-ups
    Status: Beta

    5) AdSense Clicker
    Status: Beta

    6) CraigList Email extractor
    Status: Beta

    7) Forum Poster
    Status: Beta

    ... and lots more :)

    Get your own copy by registering your self at:

    http://www.azlanhussain.com/join-my-list/


    Thank you & wishing you all the best.

    Cheers,
    -Azlan-

    PS: If you think some of those software will give you some benefits, I would be grateful if you could give some +ve iTrade in return.. :)
     
    azlanhussain, Nov 9, 2008 IP
  2. bdavid

    bdavid Guest

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Thanks for the great tools. Wishing you all the best.
     
    bdavid, Nov 9, 2008 IP
  3. azlanhussain

    azlanhussain Active Member

    Messages:
    640
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Just in case you need more proxies to support TrafficBot here are the latest....

    114.30.47.10:80
    118.98.168.18:3128
    118.98.212.250:3128
    118.98.212.250:8080
    119.70.40.101:8080
    119.70.40.108:8080
    119.70.40.109:8080
    119.70.40.110:8080
    121.73.87.133:9090
    124.106.77.200:3128
    124.217.198.4:8080
    124.51.57.196:3128
    125.16.148.51:80
    125.165.169.3:8080
    125.46.23.82:3128
    128.2.223.65:3127
    128.223.8.112:3128
    128.59.20.227:3124
    129.10.120.194:3124
    129.170.214.192:3124
    129.69.210.96:3127
    129.69.210.96:3128
    130.49.221.41:3128
    130.75.87.84:3124
    131.188.44.101:3124
    131.188.44.101:3127
    131.246.191.42:3128
    131.247.2.242:3128
    132.187.230.1:3124
    132.187.230.1:3127
    132.187.230.1:3128
    132.187.230.2:3124
    132.187.230.2:3127
    132.187.230.2:3128
    132.239.17.224:3127
    132.252.152.193:3124
    132.252.152.193:3128
    132.252.152.194:3124
    132.252.152.194:3127
    132.252.152.194:3128
    133.1.16.171:3124
    133.1.16.171:3128
    133.1.16.172:3128
    133.1.74.162:3127
    133.11.240.56:3128
    133.11.240.57:3127
    134.2.172.253:3124
    134.2.172.253:3127
    134.34.246.4:3124
    134.34.246.5:3124
    134.76.81.91:3124
    134.76.81.92:3124
    137.226.138.154:3124
    137.226.138.154:3127
    137.226.138.154:3128
    137.226.138.156:3124
    137.226.138.156:3127
    137.226.138.156:3128
    137.99.11.86:3127
    137.99.11.86:3128
    138.232.66.194:3124
    138.232.66.195:3124
    138.238.250.157:3124
    138.238.250.157:3127
    138.238.250.157:3128
    138.246.99.249:3124
    138.246.99.249:3127
    138.246.99.249:3128
    140.109.17.180:3127
    140.109.17.180:3128
    141.13.16.201:3124
    141.13.16.202:3124
    141.24.249.130:3127
    141.24.249.130:3128
    141.24.33.192:3124
    141.76.45.17:3124
    141.76.45.17:3128
    141.76.45.18:3124
    143.107.111.195:3124
    143.107.111.195:3127
    143.215.129.115:3124
    143.215.129.116:3124
    143.215.129.116:3128
    147.102.3.101:3127
    155.246.12.163:3128
    156.17.10.52:3124
    156.17.10.52:3127
    159.148.82.3:3128
    164.107.127.12:3128
    164.73.47.242:3127
    164.73.47.244:3124
    189.30.134.178:3128
    189.31.182.178:80
    189.31.182.186:80
    189.60.193.62:3128
    190.144.41.196:3128
    192.33.210.17:3127
    192.33.90.69:3124
    192.33.90.69:3128
    192.42.43.23:3124
    193.136.191.25:3124
    193.136.191.26:3128
    193.136.227.163:3128
    193.136.227.164:3128
    193.147.162.166:3124
    193.167.182.132:3124
    193.167.182.132:3127
    193.167.182.132:3128
    193.167.187.187:3124
    193.167.187.187:3127
    193.167.187.187:3128
    193.167.187.188:3124
    193.167.187.188:3128
    193.174.67.186:3124
    193.174.67.186:3127
    193.174.67.186:3128
    193.174.67.187:3124
    193.174.67.187:3127
    193.174.67.187:3128
    193.27.245.251:80
    194.117.20.214:3127
    194.117.20.214:3128
    194.36.10.154:3127
    194.42.17.123:3124
    194.42.17.123:3127
    194.42.17.123:3128
    194.42.17.124:3124
    194.42.17.124:3127
    194.42.17.124:3128
    195.113.161.82:3124
    195.113.161.82:3127
    195.113.161.82:3128
    195.113.161.83:3124
    195.113.161.83:3127
    195.113.161.83:3128
    195.130.121.205:3124
    195.130.121.205:3127
    195.130.121.205:3128
    195.135.236.215:8080
    195.78.225.174:8080
    196.43.90.10:8080
    200.129.22.242:80
    200.142.126.126:3128
    200.178.211.16:8080
    200.215.23.5:3128
    200.226.137.10:80
    200.226.137.11:80
    200.226.137.11:8080
    200.30.101.70:8080
    200.64.191.50:3128
    201.116.70.1:8080
    201.2.57.107:80
    201.24.134.42:3128
    201.24.134.42:80
    201.254.122.57:3128
    201.45.59.3:3128
    201.6.3.241:80
    202.132.19.44:3128
    202.143.139.102:8080
    202.143.140.250:8080
    202.143.147.186:8080
    202.151.5.239:80
    202.152.6.58:3128
    202.78.225.1:8090
    203.151.233.143:80
    203.153.38.116:3128
    203.178.133.002:3127
    203.178.133.2:3124
    203.178.133.2:3128
    203.252.226.215:8001
    204.56.0.137:3124
    204.56.0.137:3127
    204.85.191.11:3128
    208.70.218.117:80
    210.241.28.12:8080
    210.51.14.197:80
    210.71.187.122:8080
    211.115.185.41:8080
    211.115.185.42:8080
    211.115.185.43:8080
    211.115.185.44:8080
    211.115.185.45:8080
    211.115.185.47:8080
    212.100.132.148:3128
    212.116.219.190:8083
    212.241.180.24:81
    212.93.193.82:443
    212.93.193.82:8082
    212.93.193.82:8083
    216.165.109.79:3124
    217.119.90.36:3128
    217.147.30.24:8080
    218.194.80.230:808
    218.207.138.74:3128
    220.225.28.138:3128
    221.12.147.80:808
    221.130.191.147:80
    221.130.191.153:80
    221.2.145.10:3128
    221.203.154.26:8080
    221.238.19.3:80
    221.238.249.100:80
    221.238.249.99:80
    222.135.178.62:8080
    24.232.133.87:8080
    41.211.232.39:8080
    60.240.117.1:3128
    60.250.210.62:3128
    60.251.54.208:3128
    61.128.162.208:808
    61.129.70.65:80
    61.143.150.124:80
    61.17.193.11:3128
    61.186.94.152:3128
    61.219.11.146:3128
    62.150.81.35:80
    64.66.192.61:32080
    66.198.41.11:3128
    67.69.254.245:80
    67.69.254.246:80
    67.69.254.249:80
    67.69.254.251:80
    67.69.254.252:80
    68.57.189.59:9090
    70.125.100.7:9090
    75.3.202.23:9090
    75.71.42.32:8080
    78.108.104.34:8080
    80.86.200.172:6649
    81.177.3.10:80
    81.31.149.102:6654
    82.213.5.231:3128
    83.218.164.193:8080
    83.239.15.126:8080
    83.242.158.2:3128
    85.21.138.217:3128
    85.214.46.151:6654
    85.92.130.179:3128
    85.92.130.180:3128
    87.118.99.9:6654
    89.132.77.124:8080
    89.234.27.15:80
    92.243.16.202:3128
     
    azlanhussain, Nov 13, 2008 IP
  4. Kwaku

    Kwaku Well-Known Member

    Messages:
    1,217
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    140
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Thanks; cool stuff :)
     
    Kwaku, Nov 13, 2008 IP
  5. azlanhussain

    azlanhussain Active Member

    Messages:
    640
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Thanks .. hope you'll gain some benefits from it.. :)
     
    azlanhussain, Nov 14, 2008 IP
  6. arnoldp

    arnoldp Guest

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Already joined.. hope to get all soon :)
    BTW thanks. +ve rep given
     
    arnoldp, Nov 15, 2008 IP
  7. azlanhussain

    azlanhussain Active Member

    Messages:
    640
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Ever thought of creating lots & lots of Gmail with ease. Think no more. This is a script in PHP that will get it done. The original creator is credited accordingly..

    Kindly give +ve iTrade if you think this is useful.. ;)

    gmail-signup.php - main file

    <?php
    
    /*
    
    ##  Title:  gMail Signup Script V00.00.01
    
    ##  Author(s): Jack Ketch
    
    ##  Last Update: 06-14-2008
    
    ##
    
    ##   Semi-automatic script to generate free GMail accounts,
    
    ##
    
    ##  Modified: Anand (netmktg / netmktg7)
    
    ##  Last Update: Oct-12-2008
    
    ##  This script is an extensively modified version of the original script
    
    ##
    
    */
    
    require_once('opendb.php');
    
    require_once('mailsignup-functions.php');
    
    error_reporting(E_ALL ^ E_NOTICE);
    
    $tmpdir = 'tmp/';
    
    $tmpdir_abs = dirname($_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME']) .'/refererx/'. $tmpdir;
    
    $submitted = isset($_POST['Create_Account']);
    
    if ($submitted) {
    
     unlink($_POST['captcha_tmpfile']);
    
     $formLocation = urldecode($_POST['formlocation']);
    
     $firstname = $_POST['firstname']; 
    
     $lastname = $_POST['lastname']; 
    
     $username = $_POST['username']; 
    
     $password = $_POST['password']; 
    
     $alt_email = $_POST['alt_email']; 
    
     $captcha = $_POST['captcha'];
    
     $postQuery = $_POST['params'];
    
     $ref = $_POST['ref'];
    
     
    
     // $write_to_file = $_POST['write_to_file'];
    
     // if (empty($write_to_file)) { $write_to_file = 'new-gmails.txt'; }
    
     // the CAPTCHA is placed in the parameters, and then all the parameters are placed //
    
     // in a single string, each one separated by '&' //
    
     $captcha_array_key = array_search('newaccountcaptcha=',$postQuery);
    
     $postQuery [$captcha_array_key] .= $captcha;
    
     $query = $postQuery[0];
    
     for ($x = 1; $x < count($postQuery); $x++) { $query .= "&" . $postQuery[$x]; }
    
     $ch = curl_init();
    
     $cookiefile = $tmpdir_abs . '_cookie.txt';
    
     curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
    
     curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
    
     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14");
    
     curl_setopt($ch, CURLOPT_HEADER, 1);
    
     curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
    
     curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
    
     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    
     $headers[] = "Cookie: X=abc; GoogleAccountsLocale_session=en; TZ=-330";
    
     $headers[] = "Content-Type: application/x-www-form-urlencoded";
    
     curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    
     curl_setopt($ch, CURLOPT_URL, $formLocation);
    
       curl_setopt($ch, CURLOPT_REFERER, $ref);
    
     curl_setopt($ch, CURLOPT_POST, 1);
    
     curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
    
     $page = curl_exec($ch);
    
     if ( strpos($page, 'but the following usernames are') ) {
    
      print '<font color="#0000FF"><b>Gmail User NOT Available</b></font>';
    
      return;
    
     }
    
     if ( strpos($page, 'characters you entered didn') ) { $captcha_msg = '<font color="#FF0000"><b>WRONG Captcha</b></font><br>'; }
    
     if ( strpos($page, 'enter the letters as they are shown in the new image') ) { $captcha_msg = '<font color="#0000FF"><b>ADDITIONAL Captcha</b></font><br>'; }
    
     
    
     $chk_pos = strpos($page, '<form id="createaccount"');
    
     if ($chk_pos > 0)
    
     {
    
      // Gmail wants us to enter Addtional Captcha
    
      $page = substr($page, $chk_pos);
    
     
    
      $ref = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
    
      $parameters = parse_gmail_fields($page, $username, $password, $firstname, $lastname, $alt_email);
    
      $formLocation = array_pop($parameters);
    
      $captchatoken = array_pop($parameters);
    
      $captcha_tmpfile = save_captcha($ch, $captchatoken, $tmpdir, $tmpdir_abs);
    
      curl_close($ch);
    
      // Display CAPTCHA to solve
    
      $currentUrl = $PHP_SELF;
    
      $hidden = '';
    
      foreach($parameters as $param){
    
       $hidden .= "<input type='hidden' name='params[]' value='$param'>\n"; 
    
      }
    
      $form = <<<INPUT_MYTEXT
    
     <center> <table> <tr> <td>
    
     <form method='post' action='$currentUrl'>
    
     
    
      $hidden
    
      <input type='hidden' name='ref' value='$ref'>
    
      <input type='hidden' name='firstname' value='$firstname'>
    
      <input type='hidden' name='lastname' value='$lastname'> 
    
      <input type='hidden' name='username' value='$username'> 
    
      <input type='hidden' name='password' value='$password'> 
    
      <input type='hidden' name='alt_email' value='$alt_email'> 
    
      <input type='hidden' name='formlocation' value='$formLocation'> 
    
      <input type='hidden' name='captcha_tmpfile' value='$tmpdir_abs$captcha_tmpfile'> 
    
      <table>
    
      <tr>
    
       <td align="center" colspan="2">$captcha_msg</td>
    
      </tr>
    
      <tr> <td align="center" colspan="2">&nbsp;</td> </tr>
    
      <tr>
    
       <td>Username:</td>
    
       <td><b>$username</b>@gmail.com</td>
    
      </tr>
    
      <tr>
    
       <td>Password:</td>
    
       <td><b>$password</b></td>
    
      </tr>
    
      <tr>
    
       <td>Name:</td>
    
       <td><b>$firstname $lastname</b></td>
    
      </tr>
    
      <tr>
    
       <td>&nbsp;</td>
    
       <td><img src="$tmpdir$captcha_tmpfile"></td>
    
      </tr>
    
      <tr>
    
       <td>Captcha:</td>
    
       <td><input type="text" name="captcha" id="captcha"></td>
    
      </tr>
    
      <tr>
    
       <td align="center" colspan="2"><input type="submit" name="Create_Account" value="Create Account"></td>
    
      </tr>
    
      </table>
    
     </form>
    
     </td> </tr> </table> </center>
    
     <script type="text/javascript">
    
      document.getElementById('captcha').focus()
    
     </script>
    
    INPUT_MYTEXT;
    
      echo $form;
    
      return;
    
     }
    
     
    
     if ( strpos($page, '<meta http-equiv') ) {
    
      // Follow the Meta redirect
    
      $google_meta_regex = '/\<meta http-equiv.+?refresh.+?(http:\/\/[^\'^\"^\>]+?)('){0,1}(\"){0,1}\>/i';
    
      preg_match($google_meta_regex,$page,$m);
    
      $curl_url = $m[1];
    
      $curl_url = str_replace('&amp;', '&', $curl_url);
    
      $headers[] = "Cookie: X=abc; GoogleAccountsLocale_session=en; TZ=-330";
    
      $headers[] = "Content-Type: application/x-www-form-urlencoded";
    
      curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    
             curl_setopt($ch, CURLOPT_URL, $curl_url);
    
      curl_setopt($ch, CURLOPT_POST, 0);
    
             $page = curl_exec($ch);
    
     }
    
     curl_close($ch);
    
     $succeeded = stripos($page, "Congratulations!");
    
     if ($succeeded) {
    
      @ unlink($cookiefile);
    
      $info = <<<INPUT_MYTEXT
    
       <center> <table>
    
       <tr>
    
        <td>Username:</td>
    
        <td><input type='text' id='username' name='username' value='$username@gmail.com' onClick="javascript:x = document.getElementById('username');x.focus();x.select();"></td>
    
       </tr>
    
       <tr>
    
        <td>Password:</td>
    
        <td><input type='text' id='password' name='password' value='$password' onClick="javascript:x = document.getElementById('password');x.focus();x.select();"></td>
    
       </tr>
    
       <tr>
    
        <td>Name:</td>
    
        <td><input type='text' id='name' name='name' value='$firstname $lastname' onClick="javascript:x = document.getElementById('password');x.focus();x.select();"></td>
    
       </tr>
    
       <tr>
    
        <td align="center" colspan="2"><font color="#00CC00"><b>••••&nbsp; GMail SUCCESS &nbsp;••••</b></font></td>
    
       </tr>
    
       <tr> <td align="center" colspan="2">&nbsp;</td> </tr>
    
       <tr> <td align="center" colspan="2">&nbsp;</td> </tr>
    
       </table>
    
     
    
       </center>
    
    INPUT_MYTEXT;
    
      echo $info;
    
      //$sqlquery  = "INSERT IGNORE INTO emails (email,email_password,email_name) VALUES ('$username@gmail.com', '$password', '$firstname $lastname')";
    
      //mysql_query($sqlquery);
    
     
    
      // Write Signup data to existing file; on error use new filename
    
      $write_str = "$username@gmail.com,$password,$firstName $lastName\n";
    
      $fh = false;
    
      @ $fh = fopen($write_to_file, 'a');
    
      if (!$fh) {
    
       $write_to_file = 'new-gmails_' . rand(1000,100000) . '.txt';
    
       $fh = fopen($write_to_file, 'a');
    
      }
    
      fwrite($fh, $write_str);
    
      fclose($fh);
    
      print "</br>Written Login Data to $write_to_file</br></br>\n";
    
     
    
     }
    
     else {
    
      print '</br></br><font color="#FF0000"><b>Signup process FAILED</b></font>';
    
      print $page;
    
      return;
    
     }
    
    }
    
     
    
    $ch = curl_init();
    
    $cookiefile = $tmpdir_abs . '_cookie.txt';
    
    curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
    
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
    
    curl_setopt($ch, CURLOPT_COOKIESESSION, 1);
    
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14");
    
    curl_setopt($ch, CURLOPT_HEADER, 1);
    
    curl_setopt($ch, CURLINFO_HEADER_OUT, 1);
    
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    
    curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
    
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    
    $url = 'http://mail.google.com/mail/signup';
    
    curl_setopt($ch, CURLOPT_URL, $url);
    
    curl_setopt($ch, CURLOPT_POST, 0);
    
    $page = curl_exec($ch);
    
    // Get the Last effective Url to set Referer in subsequent Curl operations
    
    $ref = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
    
    // Generates random user profile for email signup
    
    $gProfile = new profile();
    
    $gProfile->__construct();
    
    $firstname = $gProfile->getName("f");
    
    $lastname = $gProfile->getName("l");
    
    $username = $gProfile->getUsername();
    
    $password = $gProfile->getPassword();
    
    $alt_email = $gProfile->getAlternateEmail();
    
    $parameters = parse_gmail_fields($page, $username, $password, $firstname, $lastname, $alt_email);
    
    $formLocation = array_pop($parameters);
    
    $captchatoken = array_pop($parameters);
    
    $captcha_tmpfile = save_captcha($ch, $captchatoken, $tmpdir, $tmpdir_abs);
    
    curl_close($ch);
    
      // Display CAPTCHA to solve
    
      $currentUrl = $PHP_SELF;
    
      $hidden = '';
    
      foreach($parameters as $param){
    
     $hidden .= "<input type='hidden' name='params[]' value='$param'>\n"; 
    
      }
    
      $form = <<<INPUT_MYTEXT
    
     <center> <table> <tr> <td>
    
     <form method='post' action='$currentUrl'>
    
      $hidden
    
      <input type='hidden' name='ref' value='$ref'>
    
      <input type='hidden' name='firstname' value='$firstname'>
    
      <input type='hidden' name='lastname' value='$lastname'> 
    
      <input type='hidden' name='username' value='$username'> 
    
      <input type='hidden' name='password' value='$password'> 
    
      <input type='hidden' name='alt_email' value='$alt_email'> 
    
      <input type='hidden' name='formlocation' value='$formLocation'> 
    
      <input type='hidden' name='captcha_tmpfile' value='$tmpdir_abs$captcha_tmpfile'> 
    
      <table>
    
      <tr>
    
       <td>Username:</td>
    
       <td><b>$username</b>@gmail.com</td>
    
      </tr>
    
      <tr>
    
       <td>Password:</td>
    
       <td><b>$password</b></td>
    
      </tr>
    
      <tr>
    
       <td>Name:</td>
    
       <td><b>$firstname $lastname</b></td>
    
      </tr>
    
      <tr>
    
       <td>&nbsp;</td>
    
       <td><img src="$tmpdir$captcha_tmpfile"></td>
    
      </tr>
    
      <tr>
    
       <td>Captcha:</td>
    
       <td><input type="text" name="captcha" id="captcha"></td>
    
      </tr>
    
      <tr>
    
       <td align="center" colspan="2"><input type="submit" name="Create_Account" value="Create Account"></td>
    
      </tr>
    
      </table>
    
     </form>
    
     </td> </tr> </table> </center>
    
     <script type="text/javascript">
    
      document.getElementById('captcha').focus()
    
     </script>
    
    INPUT_MYTEXT;
    
    echo $form;
    
     
    
    //  ###  End Main Routine  ###
    
     
    
    function parse_gmail_fields($page, $username, $password, $firstname, $lastname, $alt_email)
    
    {
    
      // removes new lines, and multiple spaces to for proper Regex matching
    
      $page = clean_whitespace($page);
    
      preg_match("/<form id=\"createaccount\" name=\"createaccount\" action='(.+?)'/", $page, $m);
    
      $formLocation = urlencode($m[1]);
    
      preg_match("/<input type=\"hidden\" name=\"type\" id=\"type\" value=\"(.+?)\"/", $page, $m);
    
      $parameters[] = "type=" . $m[1];
    
      $parameters[] = "loc=US";
    
      preg_match("/<input type=\"hidden\" name=\"dsh\" id=\"dsh\" value=\"(.+?)\"/", $page, $m);
    
      $parameters[] = "dsh=" . $m[1];
    
      $parameters[] = "ktl=";
    
      $parameters[] = "ktf=";
    
      $parameters[] = "FirstName=" . $firstname;
    
      $parameters[] = "LastName=" . $lastname;
    
      $parameters[] = "UsernameSelector=header";
    
      $parameters[] = "Email=" . $username;
    
      preg_match("/<input type=\"hidden\" id='edk' name='edk' value='(.+?)'/", $page, $m);
    
      $parameters[] = "edk=" . $m[1];
    
      $parameters[] = "Passwd=" . $password;
    
      $parameters[] = "PasswdAgain=" . $password;
    
      $parameters[] = "rmShown=1";
    
      $parameters[] = "nshk=1";
    
      $parameters[] = "selection=" . urlencode("What was your first teacher's name");
    
      $parameters[] = "ownquestion=";
    
      $parameters[] = "IdentityAnswer=" . $firstname;
    
      $parameters[] = "SecondaryEmail=" . urlencode($alt_email);
    
      $parameters[] = "loc=US";
    
      // get CAPTCHA token
    
      preg_match("/<input type=\"hidden\" name=\"newaccounttoken\" id=\"newaccounttoken\" value=\"(.+?)\"/", $page, $m);
    
      $captchatoken = $m[1];
    
      $parameters[] = "newaccounttoken=" . urlencode($captchatoken);
    
      // get CAPTCHA url
    
      preg_match("/<input type=\"hidden\" name=\"newaccounturl\" id=\"newaccounturl\" value=\"(.+?)\"/", $page, $m);
    
      $parameters[] = "newaccounturl=" . urlencode($m[1]);
    
      // get Audio CAPTCHA token
    
      preg_match("/<input type=\"hidden\" name=\"newaccounttoken_audio\" id=\"newaccounttoken_audio\" value=\"(.+?)\"/", $page, $m);
    
      $parameters[] = "newaccounttoken_audio=" . urlencode($m[1]);
    
      // get Audio CAPTCHA url
    
      preg_match("/<input type=\"hidden\" name=\"newaccounturl_audio\" id=\"newaccounturl_audio\" value=\"(.+?)\"/", $page, $m);
    
      $parameters[] = "newaccounturl_audio=" . urlencode($m[1]);
    
      $parameters[] = "newaccountcaptcha=";
    
      $parameters[] = "program_policy_url=http%3A%2F%2Fmail.google.com%2Fmail%2Fhelp%2Fprogram_policies.html";
    
      $parameters[] = "privacy_policy_url=http%3A%2F%2Fwww.google.com%2Fintl%2Fen%2Fprivacy.html";
    
      $parameters[] = "requested_tos_location=US";
    
      $parameters[] = "requested_tos_language=en";
    
      preg_match('/<input type=\"hidden\" id=\'served_tos_location\' name=\'served_tos_location\' value=\'(.+?)\'/', $page, $m);
    
      $parameters[] = "served_tos_location=" . $m[1];
    
      $parameters[] = "served_tos_language=en";
    
      $parameters[] = "submitbutton=" . urlencode('I accept. Create my account.');
    
      $parameters[] = $captchatoken;
    
      $parameters[] = $formLocation;
    
      return $parameters;
    
    }
    
     
    
    function save_captcha($ch, $captchatoken, $tmpdir, $tmpdir_abs)
    
    {
    
      // Save Captcha image
    
      $url = "https://www.google.com/accounts/Captcha?ctoken=$captchatoken";
    
      curl_setopt($ch, CURLOPT_HEADER, 0);
    
      curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
    
      curl_setopt($ch, CURLOPT_URL, $url);
    
      curl_setopt($ch, CURLOPT_POST, 0);
    
      $page = curl_exec($ch);
    
      $captcha_tmpfile = 'captcha-' . rand(1000,10000) . '.jpg';
    
      $fp = fopen($tmpdir_abs . $captcha_tmpfile,'w');
    
      fwrite($fp, $page);
    
      fclose($fp);
    
     
    
      return $captcha_tmpfile;
    
    }
    
     
    
    ?>
    
    
    Code (markup):
    mailsignup-functions.php - supporting file

    <?php
    
    /*
    
    ## Title:  Random Stirng Function V01.00.00
    
    ## Author(s): Jack Ketch
    
    ##
    
    ##  Return a random stirng of lower case characters.
    
    ## Parameter(s):
    
    ##   $min, $max - minimum/maximum length of string
    
    ##   $useNumbers - sets the use of numbers (TRUE or FALSE, default = FALSE)
    
    ##   $useUpper - sets the use of upper case characters (TRUE or FALSE, default = FALSE)
    
    ##
    
    ##
    
    ## Modified: Anand (netmktg)
    
    ## Last Update: Oct-12-2008
    
    ##
    
    */
    
    // If PHP doesnt have stripos function
    
    if(!function_exists('stripos'))
    
    {
    
       function stripos($haystack,$needle,$offset = 0)
    
       {
    
         return(strpos(strtolower($haystack),strtolower($needle),$offset));
    
       }
    
    }
    
    function randomString($min, $max, $useNumbers = FALSE, $useUpper = FALSE)
    
    {
    
     $charSet = "abcdefghijklmnopqrstuvwxyz";
    
     if ($useNumbers) { $charSet .= "0123456789"; }
    
     if ($useUpper) { $charSet .= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; }
    
     
    
     ## checks if the min and max are reversed. ##
    
     if ($min > $max) { $length = mt_rand($max, $min); }
    
     else { $length = mt_rand($min, $max); }
    
     $randStr = '';
    
     $setLength = strlen($charSet) - 1;
    
     for ($i = 0; $i < $length; $i++) { $randStr .= $charSet[mt_rand(0, $setLength)]; }
    
     return $randStr;
    
    }
    
     
    
    function clean_whitespace($input_str, $repl_arr = array(" ", "\n", "\r", "\t"))
    
    {
    
     $input_str = str_replace($repl_arr, ' ', $input_str);
    
     $input_str = preg_replace('/ +/', ' ', $input_str);
    
     return $input_str;
    
    }
    
     
    
    /*
    
    ##
    
    ## Title: Profile Class V01.00.00
    
    ## Author: Jack Ketch
    
    ##
    
    ## Generate random data to be use for automatic registrations of websites.
    
    ##
    
    ##
    
    ## Modified: Anand (netmktg)
    
    ## Last Update: Oct-12-2008
    
    ##
    
    */
    
    class profile {
    
     var $_gender;
    
     var $_firstName;
    
     var $_lastName;
    
     var $_username;
    
     var $_password;
    
     var $_alternateEmail;
    
     var $_securityQuestion = "Where did you meet your spouse";
    
     var $_answer = "College";
    
     
    
     var $_usernameMinLength = 5;
    
     var $_usernameMaxLength = 14;
    
     var $_randomStringLength = 4;
    
     // separates the name from the random characters
    
     var $_separator = '';
    
     
    
     function __construct() {
    
      $gender = mt_rand(0, 1);
    
      $surnames = explode("\n", file_get_contents("names_last.txt"));
    
      if ($gender == 0) {
    
       $this->_gender = "m";
    
       $names = explode("\n", file_get_contents("names_male.txt"));
    
      }
    
      else {
    
       $this->_gender = "f";
    
       $names = explode("\n", file_get_contents("names_female.txt"));
    
      }
    
      $this->_lastName = trim(ucfirst($surnames[array_rand($surnames)]));
    
     
    
      $minNameLength = $this->_usernameMinLength - $this->_randomStringLength - strlen($this->_separator);
    
      $maxNameLength = $this->_usernameMaxLength - $this->_randomStringLength - strlen($this->_separator);  
    
      do {
    
       $this->_firstName = trim(ucfirst($names[array_rand($names)]));
    
      } while ( (strlen($this->_firstName) <= $minNameLength) || (strlen($this->_firstName) >= $maxNameLength) );
    
     
    
      $this->_username = strtolower($this->_firstName) . $this->_separator . randomString($this->_randomStringLength, $this->_randomStringLength, TRUE);
    
      $this->_password = randomString(8, 10);
    
     
    
      $this->_alternateEmail = randomString(6,8) . "@" . randomString(6,9) . ".com";
    
     }
    
     
    
     function getGender() {
    
      return $this->_gender;
    
     }
    
     
    
     function getName($type) {
    
      if ($type == "f") {
    
       return $this->_firstName;
    
      }
    
      else if ($type == "l") {
    
       return $this->_lastName;
    
      }
    
     }
    
     
    
     function getUsername() {
    
      return $this->_username;
    
     }
    
     function getPassword() {
    
      return $this->_password;
    
     }
    
     
    
     function getAlternateEmail() {
    
      return $this->_alternateEmail;
    
     }
    
     
    
     function getSecurityQuestion($type = "q") {
    
      if ($type == "q") {
    
       return $this->_securityQuestion;
    
      }
    
      else if ($type == "a") {
    
       return $this->_answer;
    
      }
    
     }
    
    }
    
    ?>
    
    
    Code (markup):
     
    azlanhussain, Nov 20, 2008 IP
  8. studentMA

    studentMA Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Hello azlanhussain,
    i have a problem to save cookies file "curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile)".
    Also, a $cookiefile file remains empty.

    sincerly
    StudentMA
     
    studentMA, Apr 30, 2009 IP
  9. studentMA

    studentMA Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #9
    azlanhussain are you here!!
     
    studentMA, Apr 30, 2009 IP
Thread Status:
Not open for further replies.