Shells

Interactive Shells

Notes and commands for Interactive Shells.

2024-02-27
Tags payloadsshellsinteractive-shells

BIN to shell

  • /bin/sh -i

PERL to shell

  • normal:

  • perl —e 'exec "/bin/sh";'

  • directly from a script

  • perl: exec “/bin/sh”;

RUBY to Shell

  • also from script

  • ruby: exec “/bin/sh”

LUA to shell

  • from script

  • lua: os.execute(’/bin/sh')

AWK to shell: (mostly UNIX/Linux)

  • awk 'BEGIN {system("/bin/sh")}'

FIND to shell: (mostly UNIX/Linux)

  • find / -name nameoffile -exec /bin/awk 'BEGIN {system("/bin/sh")}' \;

EXEC to shell

  • find. -exec /bin/sh \; -quit

VIM to shell

  • vim -c ':!/bin/sh'

  • vim

-:set shell=/bin/sh

-:shell