+ Reply to Thread
Results 1 to 2 of 2

Thread: Spam referer

  1. #1
    Junior Member XeuZ's Avatar
    Join Date
    Nov 2009
    Location
    France
    Posts
    23

    Spam referer

    Hello ...

    I just get a good source, but I have a little problem with.
    let me explain:

    I named this script SpamRef is a tool that simulates a visit to its target site (on which you want to do referrer spam).
    Two parameters are required during its execution:

    1) The URL of the site "referer ".
    2) Number of sightseeing to do on the site.

    URLs of sites to "visit" must be stored in a file named URLspam.csv.

    Code:
    <?php
    
    @set_time_limit(0);
    error_reporting(E_ALL | E_STRICT);
    ini_set('display_errors', true);
     
    function CurlSpam($proxy, $proxyprotocol, $referer, $spamsite) 
    {
       $useragent = 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1';
       $header = array(
    				"Accept: text/xml,application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
    				"Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3",
    				"Accept-Charset: ISO-8859-1;q=0.7,*;q=0.7",
    				"Keep-Alive: 300"
                            );
     
        $ch = curl_init();
     
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
        curl_setopt($ch, CURLOPT_HEADER, true);
        curl_setopt($ch, CURLOPT_VERBOSE, true);	
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
        curl_setopt($ch, CURLOPT_TIMEOUT, 15);
        curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookieSpam');
        curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookieSpam');
        curl_setopt($ch, CURLOPT_URL, $spamsite);	
        curl_setopt($ch, CURLOPT_REFERER, $referer);
        curl_setopt($ch, CURLOPT_USERAGENT, $useragent );
        curl_setopt($ch, CURLOPT_HTTPHEADER, $header );
     
        if ( $proxy != '')
        {
    		curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
    		curl_setopt($ch, CURLOPT_PROXY, $proxy);
    		if ( $proxyprotocol == 'socks4') curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS4);
    		else if($proxyprotocol == "socks5") curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
    		     else curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
        }	
     
        $response = curl_exec($ch);
     
        $error = curl_error($ch);
        if ( $error != "" )
        {
                $result = $error;
                return $result;
        }	
        $result = curl_getinfo($ch, CURLINFO_HTTP_CODE);
     
        curl_close($ch);
        unset($ch);
     
        return $result;
    }
     
     
    if ( (isset($_POST['NBrequetes'])) && (is_numeric($_POST['NBrequetes'])) && ($_POST['NBrequetes'] != '') ) 
    	$requetes = strip_tags($_POST['NBrequetes']);
    else 
    	$requetes = 5;
     
    $urlspam = array();
    foreach( file('URLspam.csv') as $val )
         array_push( $urlspam, trim( $val ) );
    $nburlspam = count($urlspam);
     
    if (ob_get_level() == 0) ob_start();
     
    if ( (isset($_POST['referer'])) && ($_POST['referer'] != '') ) 
    {   
      $referer = trim(strip_tags($_POST['referer']));
      $boucle = 0;
      while($boucle < $requetes) 
      {
    	for ($i = 0; $i < $nburlspam; $i++)
    	{
    		echo "Spam referrer " . ($boucle+1) . " : referrer = $referer pour le site $urlspam[$i] en cours ...";	
    		sleep(5);
    		$res = CurlSpam('', '', $referer, $urlspam[$i]);
    		if ( $res != '200') 
    		{
    			echo "<br>Erreur : $res<br>";
    			exit();
    		}
    		ob_flush();
    		flush(); 
    	}
    	$boucle++;
      }
    }
     
    ob_end_flush();
     
    ?>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Spam Referer</title>
    </head>
    <body>
    <h1>Spam Referer</h1>
    <div>
    <form method="POST" action="<?php echo strip_tags($_SERVER['REQUEST_URI']) ;?>">
    <p>URL du site &#224; r&#233;f&#233;rencer :</p>
    <input name="referer" type="text" size="100" value="<?php if (isset($_POST['referer']) ) {echo strip_tags($_POST['referer']);} ?>">
    <p>Nombre de requ&ecirc;tes &agrave; effectuer (5 requ&ecirc;tes par d&#233;faut)&nbsp;:&nbsp;
    <input name="NBrequetes" type="text" size="3" maxlength="3" value="<?php if (isset($_POST['NBrequetes'])) {echo strip_tags($_POST['NBrequetes']);} else {echo '5';} ?>"></p>
    <p><input type="submit" value="Go" name="go">
    <input type='button' value='Annuler' onclick='location.href="<?php echo strip_tags($_SERVER['REQUEST_URI']) ;?>"'></p>
    </form>
    <br />
    </div>
    </body>
    </html>
    I test the script that works properly. but even after a few days, I do not appear in my referrer google analityc, or even in my AWStats.

    However, the HTTP header, therefore, properly trained in my apache access_log

    If someone finds a solution! I'm interested
    for(i=0;i<cerveau.cellules.length>;i++){ smoking("ganja");}

  2. #2
    Junior Member XeuZ's Avatar
    Join Date
    Nov 2009
    Location
    France
    Posts
    23
    Hi rabbit
    It was now two days that I run the spam. I have no returns AWstats (local), Analytic and I use a script handy "slimstats"

    but none of that analysis tools take into account the spam attack.
    My site has more than a year to create.


    But I check the header created by CURL, I do not think there have a problem! (the referrer is present)


    Here is an example of creating head (back of my log)

    Code:
    < HTTP/1.1 200 OK
    
    < Date: Wed, 09 Feb 2011 21:59:10 GMT
    
    < Server: Apache/2.2.3 (CentOS)
    
    < X-Powered-By: PHP/5.2.10
    
    < Expires: Thu, 19 Nov 1981 08:52:00 GMT
    
    < Cache-Control: no-store, no-cache, must-revalidate
    
    < Pragma: no-cache
    
    * Replaced cookie sessid="9puebmn7p2blcr4u3v1ui5p9v2" for domain www.mywebsite.com, path /, expire 1297461550
    < Set-Cookie: sessid=9puebmn7p2blcr4u3v1ui5p9v2; expires=Fri, 11-Feb-2011 21:59:10 GMT; path=/; domain=.www.mywebsite.com
    
    < Connection: close
    
    < Transfer-Encoding: chunked
    
    < Content-Type: text/html; charset=utf-8
    
    < 
    
    * Closing connection #0
    * About to connect() to www.mywebsite.com port 80 (#0)
    *   Trying 82.***.***.**... * connected
    * Connected to www.mywebsite.com (82.***.***.**) port 80 (#0)
    > GET / HTTP/1.1
    
    User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
    
    Host: www.mywebsite.com
    
    Referer: http://site-source-referer.com/
    
    Cookie: sessid=9puebmn7p2blcr4u3v1ui5p9v2
    
    Accept: text/xml,application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    
    Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
    
    Accept-Charset: ISO-8859-1;q=0.7,*;q=0.7
    
    Keep-Alive: 300
    for(i=0;i<cerveau.cellules.length>;i++){ smoking("ganja");}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 26-11-2010, 00:37
  2. Spam Bot
    By ZonTa in forum Malware Discussion and General Help
    Replies: 6
    Last Post: 05-03-2010, 02:39
  3. socks for spam
    By developer in forum General Programming Help
    Replies: 9
    Last Post: 20-02-2010, 15:16
  4. spam howto?
    By developer in forum Off-Topic
    Replies: 6
    Last Post: 08-01-2010, 19:22

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.