More Updating

This commit is contained in:
Phil 2021-12-23 21:43:47 +00:00
parent 8c6744fe75
commit bbb7faf082

View File

@ -84,7 +84,7 @@ masscan IP -p 1-65535 --rate 100 -oX masscan.xml
``` ```
## Stage 2 - Foothold ## Stage 2 - F
### Get a Shell ### Get a Shell
@ -107,48 +107,17 @@ This is the most popular method for spawning a tty shell. The target server shou
``` ```
python -c "import pty;pty.spawn('/bin/bash')" python -c "import pty;pty.spawn('/bin/bash')"
``` ```
``` |Methord | Command |
* Echo: |----------|-----------|
|* Echo: | echo 'os.system('/bin/bash')'|
echo 'os.system('/bin/bash')' | * sh: | /bin/sh -i|
``` | * Bash: | /bin/bash -i|
``` | * Perl: | perl -e 'exec "/bin/sh";'|
* sh: | * Ruby: | ruby: exec "/bin/sh"|
| * Lua: | lua: os.execute('/bin/sh')|
/bin/sh -i | * From within vi: | :!bash , :set shell=/bin/bash:shell |
``` | * From within nmap: | !sh |
* Bash:
```
/bin/bash -i
```
* Perl:
```
perl -e 'exec "/bin/sh";'
```
* Ruby:
```
ruby: exec "/bin/sh"
```
* Lua:
```
lua: os.execute('/bin/sh')
```
* From within vi:
```
:!bash
:set shell=/bin/bash:shell
```
* From within nmap:
```
!sh
```