Closed bash-c closed 3 years ago
Both bind_shell and reverse_shell will execute /bin/sh for an interactive shell, however, sh in some cases will drop privilege.
/bin/sh
sh
Add the following snippet will fix this
if geteuid() == 0: setresuid(0, 0, 0); setresgid(0, 0, 0); spawn /bin/sh and others
BTW, there is a typo. the word spwan should be spawn
spwan
spawn
@bash-c Done. Please ddw.
Both bind_shell and reverse_shell will execute
/bin/sh
for an interactive shell, however,sh
in some cases will drop privilege.Add the following snippet will fix this