Results 1 to 4 of 4
  1. #1
    Zebra's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    5
    My Mood
    Brooding

    My PHP cURL ************* bot.

    This PHP Script will automatically post a thread on any ************* forum. :]
    If you want to use it, just change this fields:
    Code:
    $fields['username'] = 'Your Account';
    $fields['password'] = 'Your Password';
    $fields2['subject'] = 'Thread Subject';
    $fields2['message'] = 'Thread Mesage';
    Script:
    [PHP]
    <?php
    $url = 'https://padclan.dark bb.com/post.forum?mode=newtopic&f=2';
    //Making a temporary file for the cookies
    $ckfile = tempnam ("/tmp", "CURLCOOKIE");
    //Here is all the fields to login
    $fields = array();
    $fields['username'] = 'test';
    $fields['password'] = '123098';
    $fields['login'] = 'Log in';
    //urlencoding the fields
    $post = '';
    foreach($fields as $key=>$val) {
    $post .= $key . '=' .urlencode($val).'&';
    }
    $post = substr($post, 0, -1);
    //HEre is all the fields for submiting the thread
    $fields2 = array();
    $fields2['subject'] = 'cURL Spammer ';
    $fields2['message'] = 'You got ownd by my spam.';
    $fields2['post'] = 'Send';
    $post2 = '';
    //urlencoding the fields
    foreach($fields2 as $key=>$val) {
    $post2 .= $key.'='.urlencode($val).'&';
    }
    $post2 = substr($post2, 0, -1);
    //Start the curl session
    $ch = curl_init();
    //Set up the remote URL
    curl_setopt($ch, CURLOPT_URL, 'https://padclan.dark bb.com/login.forum?connexion' );
    //We Instruct curl curl to a regualer HTTP Post
    curl_setopt($ch, CURLOPT_POST, TRUE);
    //Now we tell it which data to send in the HTTP POST
    curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
    //Faking user agent
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5");
    //Saving the cookies in the temporary file
    curl_setopt ($ch, CURLOPT_COOKIEJAR, $ckfile);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    $results = curl_exec($ch);

    //Start the curl session in the second time, with the cookies of the first curl session
    $ch = curl_init ($url);
    curl_setopt ($ch, CURLOPT_COOKIEFILE, $ckfile);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch,CURLOPT_POST, TRUE);
    curl_setopt($ch,CURLOPT_POSTFIELDS,$post2);
    $output = curl_exec($ch);
    //Closing curl session
    curl_close($ch);
    //outputs the result(HTML)
    echo $output;
    ?>
    [/PHP]

    If you want to use it for another forum just PM me and il make you the script.
    -Zebra

  2. #2
    KallOfKolby's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    4
    My Mood
    Tired
    Yughio Card Maker if you have the time, and could you teach me to make a spam bot too?
    (I really hate YCM now)

    Sorry if I bothered you because I know I'm only a Choob.

  3. #3
    Zebra's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    5
    My Mood
    Brooding
    Hmm can you explain more...
    Like what is Yughio Card Maker?

  4. #4
    Ugleh's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    House, Where you live?
    Posts
    276
    Reputation
    17
    Thanks
    221
    My Mood
    Blah
    He wants to make a thing that will help make a yugioh card using your own picture and own like name of the card, exc. This could be used using an upload form, and a Post feature, and connecting it to a GD image.

Similar Threads

  1. Replies: 31
    Last Post: 01-13-2011, 08:49 PM
  2. Need help with PHP [Theres no other forum to post this...]
    By mikelmao11 in forum Programming Tutorials
    Replies: 0
    Last Post: 08-16-2009, 08:37 PM
  3. Tibia hacks . Botting Forum .
    By Benozia in forum Hack Requests
    Replies: 0
    Last Post: 05-21-2009, 10:44 AM
  4. [PHP]DDoS Bot
    By Token in forum General Hacking
    Replies: 0
    Last Post: 10-13-2008, 10:04 PM
  5. aim bots
    By nutter in forum General Game Hacking
    Replies: 6
    Last Post: 12-27-2005, 11:56 AM

Tags for this Thread