More Updating
This commit is contained in:
parent
8c6744fe75
commit
bbb7faf082
55
README.md
55
README.md
@ -84,7 +84,7 @@ masscan IP -p 1-65535 --rate 100 -oX masscan.xml
|
||||
```
|
||||
|
||||
|
||||
## Stage 2 - Foothold
|
||||
## Stage 2 - F
|
||||
|
||||
### 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')"
|
||||
```
|
||||
```
|
||||
* Echo:
|
||||
|
||||
echo 'os.system('/bin/bash')'
|
||||
```
|
||||
```
|
||||
* sh:
|
||||
|
||||
/bin/sh -i
|
||||
```
|
||||
|
||||
* 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
|
||||
```
|
||||
|Methord | Command |
|
||||
|----------|-----------|
|
||||
|* Echo: | echo 'os.system('/bin/bash')'|
|
||||
| * sh: | /bin/sh -i|
|
||||
| * 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 |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user