Random Bits

stop output of errors in cmd

COMMAND 2> /dev/null

web servers

# php
php -S 0.0.0.0:8000
# ruby
ruby -run -e httpd . -p 9000
# busybox
busybox httpd -f -p 10000

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