Random Bits
stop output of errors in cmd
COMMAND 2> /dev/null
web servers
SSH
Rev shell
ssh.exe -R 48172 -N
Output to null
Ssh -o "UserKnownHostsFile=/dev/null" -N -o "StrictHostKeyChecking no" -i "c:/Software/key"
ssh -oKexAlgorithms=XXX -oHostKeyAlgorithms=XXX
File upload
Apache
On kali – put inside /var/www/html/, create a uploads folder and chown it to www-data, then start apache:
On windows :
Apache James
Change password to users using root:root against port 4555, then check mailboxes for info. Can use the following:
Pop3
NFS
Enumerations:
Showmout -e 10.11.1.72
Mount:
Mount -t nfs -o vers=2 -o nolock 10.11.1.72:/home /nfs
** if unreadable file – change owndership to the value of the file 😉 ***
Docker
useful commands:
socket write privesc:
one line scanners
Ping:
Windows:
Linux:
Netcat
TCP:
nc -nvv -w 1 -z 10.11.1.220 3388-3390
UDP:
nc -nv -u -z -w 1 10.11.1.115 160-162
Last updated