Update Cheat Sheet.md

This commit is contained in:
ARZ 2021-03-23 21:11:17 +05:00 committed by GitHub
parent 2fe0bcf0cd
commit 727d6cea05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,19 @@ echo "" > --checkpoint=1
If there is a certain command running in a binary example `date` so we can create our own binary and add `/bin/bash` to and path so it gets executed<br/>
`export PATH=<path_where_binary_is>/:$PATH`
### VNC
If there's a port 5901 or 5900 open it's likely that it's for VNC , if you see `.remote_secret` or `.secret` it's the password for connecting for vnc
`vncviewer -passwd remote_secret <ip>::<port>`
#### Decrpyting vnc password
We can also decrypt the password for vnc using `https://github.com/jeroennijhof/vncpwd`
`./vncpwd remote_secret `
### Enumration
* cat /etc/*release
@ -204,6 +217,9 @@ If there is a certain command running in a binary example `date` so we can creat
* lsb_release -a
* Running Linpeas
* ss -tulpn (for ports that are open on the machine)
* netstat -tulpn
* ps -ef --forest
# Windows
### Adding User