IMPORTANT: Please read our Guide To Quality Writing before you begin posting!

Dismiss Notice
Please note that we are only approving writers from the US, UK and Canada at this time.

Ask.fm Spammer - Php

Discussion in 'Programming' started by fabiof00, Jun 15, 2015.

  1. fabiof00

    fabiof00 New Member

    Joined:
    Jun 15, 2015
    Posts:
    0
    Likes Received:
    0
    Gender:
    Male
    Obviously not made by me, I take no credit for it. I figured I'd share it with you guys if ya'll want to write your own version in different languages.

    Code:
    <?php
    /*
    2013 - Metts - da.metts@hotmail.com - rootsite.hu
    ASK.fm spammer
    url - http://ask.fm/M3ttsz/questions/create
    data - authenticity_token=OmUZurUKiVQXNsGtlQlW98E2U1HcxEK9sAtmq4HYq8o=&
    question[question_text]=teszt?&
    authenticity_token=OmUZurUKiVQXNsGtlQlW98E2U1HcxEK9sAtmq4HYq8o=
    */
    
    $username = "me";
    $msg = "alma_";
    $agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)";
    $proxy = '127.0.0.1:8888';
    
    
    // innentol dont touch
    $url ='http://ask.fm/'.$username.'/questions/create';
    $post = array (
    'authenticity_token' => 'OmUZurUKiVQXNsGtlQlW98E2U1HcxEK9sAtmq4HYq8o=',
    'question[question_text]' => urlencode($msg),
    'authenticity_token' => 'OmUZurUKiVQXNsGtlQlW98E2U1HcxEK9sAtmq4HYq8o='
    );
    echo '<meta http-equiv="refresh" content="5">';
    
    $post = http_build_query($post);
    $cookie=dirname(__FILE__) .'/cookie.txt';
    
    $options = array(
    CURLOPT_URL => $url,
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_CONNECTTIMEOUT => 10 ,
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_REFERER => $url,
    CURLOPT_PROXY, $proxy,
    CURLOPT_FOLLOWLOCATION => TRUE,
    CURLOPT_POST => 1,
    CURLOPT_POSTFIELDS => $post,
    CURLOPT_USERAGENT => $agent,
    CURLOPT_HEADER => FALSE,
    CURLOPT_COOKIEJAR => $cookie,
    CURLOPT_COOKIEFILE => $cookie,
    CURLOPT_SSL_VERIFYPEER => FALSE,
    CURLOPT_SSL_VERIFYHOST => 2
    );
    for($i = 1; $i < 5; $i++) {
    $ch = curl_init();
    curl_setopt_array($ch, $options);
    $result = curl_exec($ch);
    echo curl_error($ch);
    }
    /*
    Host: ask.fm
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
    Accept: text/javascript
    Accept-Language: hu-hu,hu;q=0.8,en-us;q=0.5,en;q=0.3
    Accept-Encoding: gzip, deflate
    Connection: keep-alive
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    X-Requested-With: XMLHttpRequest
    Referer: http://ask.fm/M3ttsz
    Content-Length: 171
    Cookie: mobile_view=false; country_id=48; country_code=FR; language_id=26; _ask.fm_session=BAh7CzoPc2Vzc2lvbl9pZCIlYThlNGI3YmZhZWM5ODdmZWRmNzUxMTAyMWZmYTcxM2M6FHNlcnZpY2VzX3RhcmdldDoKbG9naW4iC3J0b2tlbiIubHE3bzVGdnNNalhTYkF3Ujd3ZktSOEllR3NRRGNyc3MxQWdDa094NWciDHJzZWNyZXQiLmllTXFja3ZlT1hBQ2dISXVmUWZEYjRtNktSZjFya3p0TEJtVWxTT3RzOhBvbGRfZ2V0X3VybCIML00zdHRzejoQX2NzcmZfdG9rZW4iMU9tVVp1clVLaVZRWE5zR3RsUWxXOThFMlUxSGN4RUs5c0F0bXE0SFlxOG89--669c59eeae38e108538316a47d9b4d40ee90a5d5
    Pragma: no-cache
    Cache-Control: no-cache
    */
    ?>
    
     

Share This Page