Linux section won't have much details compared to windows.

Nfs share mounting

mount -t nfs /mnt/myfolder -o nolock

Generating shadow hash

Generating sha-512 hashes with python

python3 -c 'import crypt;print(crypt.crypt("Password123!", "$6$foobar$"))'

Using openssl

openssl passwd -6 -salt foobar password123

Modifying shadow entry


Weird SSH Connections

ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss morph3@ -p22000

Port scanning with nc

nc -z -v 1-65000 2>&1 | grep succeeded

for i in {1..65535}; do echo $i; done | xargs -I% -P 50 sh -c 'nc -z  -w 1 %|grep succeeded'

cat ports.txt | xargs -I% -P 50 sh -c 'nc -z  -w 1 %|grep succeeded'

Last updated