diff --git a/hackshell.sh b/hackshell.sh index 9853495..f66fc29 100755 --- a/hackshell.sh +++ b/hackshell.sh @@ -338,6 +338,8 @@ xor() { perl -e 'while(<>){foreach $c (split //){print $c^chr('"${1:-0xfa}"');}}' } +xorpipe() { xor | sed 's/\r/\n/g'; } + # HS_TRANSFER_PROVIDER="transfer.sh" HS_TRANSFER_PROVIDER="oshi.at" @@ -1042,7 +1044,7 @@ _warn_rk() { [ -n "$tainted" ] && { echo -e "${CR}Non standard LKM detected${CF} (/proc/sys/kernel/tainted=$n)" - while read -r m; do + cat "/proc/modules" 2>/dev/null | while read -r m; do m="${m%% *}" str="$(modinfo "$m")" { [[ "$str" != *"Build time autogenerated kernel"* ]] || [[ "$str" != *"intree: Y"* ]]; } && { @@ -1050,7 +1052,7 @@ _warn_rk() { modinfo "$m" | grep --color=never -E '(^filename|^author)' continue } - done