Skip to content

Commit

Permalink
reptr limit
Browse files Browse the repository at this point in the history
  • Loading branch information
rootTHC committed Aug 31, 2024
1 parent 4a00c9c commit e04f317
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions hackshell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,17 @@ lootlight() {
unset str
if command -v pgrep >/dev/null && pgrep --help 2>/dev/null | grep -qFm1 -- --list-full ; then
str="$(pgrep -x 'ssh' -a)"
if [[ "$UID" -eq 0 ]]; then
str="$(pgrep -x 'ssh' --list-full)"
else
str="$(pgrep -x 'ssh' --list-full --euid "$UID")"
fi
elif command -v ps >/dev/null; then
str="$(ps alx | grep "ssh " | grep -v grep)"
if [[ "$UID" -eq 0 ]]; then
str="$(ps alx | grep "ssh " | grep -v grep)"
else
str="$(ps lx | grep "ssh " | grep -v grep)"
fi
fi
[ -n "$str" ] && {
echo -e "${CB}SSH-Hijack (reptyr)${CDY}${CF}"
Expand Down

0 comments on commit e04f317

Please sign in to comment.