Skip to content

Commit bcfc82f

Browse files
committed
exit(255) if exec fails
1 parent 9b24716 commit bcfc82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hackshell.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ _memexec() {
17471747
17481748
_hs_dep perl || return
17491749
shift
1750-
perl '-e$^F=255;for(319,279,385,4314,4354){($f=syscall$_,$",1)>0&&last};open($o,">&=".$f);print$o(<STDIN>);exec{"/proc/$$/fd/$f"}"'"${name:-/usr/bin/python3}"'",@ARGV' -- "$@"
1750+
perl '-e$^F=255;for(319,279,385,4314,4354){($f=syscall$_,$",0)>0&&last};open($o,">&=".$f);print$o(<STDIN>);exec{"/proc/$$/fd/$f"}"'"${name:-/usr/bin/python3}"'",@ARGV;exit 255' -- "$@"
17511751
return $?
17521752
}
17531753

0 commit comments

Comments
 (0)