From ab8712b07f1ac0317342cfdd837a4f4ef6c42e56 Mon Sep 17 00:00:00 2001 From: merces Date: Wed, 27 Nov 2024 19:36:07 -0300 Subject: [PATCH] Cosmetic changes --- src/crypto/bh_strxor.sh | 2 +- src/filesystem/bh_bkp.sh | 2 +- src/filesystem/bh_md5rename.sh | 2 +- src/filesystem/bh_secretfile.sh | 3 +-- src/filesystem/bh_zipmal.sh | 3 ++- src/internal/bashacks.sh | 4 ++-- src/misc/bh_epoch.sh | 4 ++-- src/net/bh_bin2ip.sh | 2 +- src/net/bh_hostcalc.sh | 2 +- src/net/bh_ip2bin.sh | 2 +- src/programming/bh_skel_yara.sh | 2 +- src/reversing/bh_asmgrep.sh | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/crypto/bh_strxor.sh b/src/crypto/bh_strxor.sh index 4495a26..7e89aba 100644 --- a/src/crypto/bh_strxor.sh +++ b/src/crypto/bh_strxor.sh @@ -13,4 +13,4 @@ bh_strxor() { echo -n "$(bh_dec2asc $xored)" done echo -} \ No newline at end of file +} diff --git a/src/filesystem/bh_bkp.sh b/src/filesystem/bh_bkp.sh index a853fe9..98c5bcf 100644 --- a/src/filesystem/bh_bkp.sh +++ b/src/filesystem/bh_bkp.sh @@ -1,4 +1,4 @@ bh_bkp() { (( $# < 1 )) && return 1 cp -vi "$1"{,.$(date +%Y%m%d)} -} \ No newline at end of file +} diff --git a/src/filesystem/bh_md5rename.sh b/src/filesystem/bh_md5rename.sh index 7e7eb82..7019d7d 100644 --- a/src/filesystem/bh_md5rename.sh +++ b/src/filesystem/bh_md5rename.sh @@ -8,4 +8,4 @@ bh_md5rename() { md5_hash=$(bh_cmd_md5 "$i" | cut -d" " -f1) [[ $md5_hash ]] && mv -v "$i" $(dirname "$i")/$md5_hash done -} \ No newline at end of file +} diff --git a/src/filesystem/bh_secretfile.sh b/src/filesystem/bh_secretfile.sh index 412af6a..27f7bb6 100644 --- a/src/filesystem/bh_secretfile.sh +++ b/src/filesystem/bh_secretfile.sh @@ -4,7 +4,6 @@ bh_secretfile(){ local pw=$(tr -dc "a-zA-Z0-9_#@.-" < /dev/urandom | head -c 20) local filename=$RANDOM.zip zip -P "$pw" "$filename" "$1" - bh_sharefile "$filename" - echo "$pw" + echo "password: $pw" rm -f "$filename" } diff --git a/src/filesystem/bh_zipmal.sh b/src/filesystem/bh_zipmal.sh index 524a780..3f5e0d3 100644 --- a/src/filesystem/bh_zipmal.sh +++ b/src/filesystem/bh_zipmal.sh @@ -4,4 +4,5 @@ bh_zipmal() { local name=${1%\.*}.zip zip --encrypt -P infected "$name" $@ ls -lh "$name" -} \ No newline at end of file + echo "password: infected" +} diff --git a/src/internal/bashacks.sh b/src/internal/bashacks.sh index 8d2767e..7dac84e 100644 --- a/src/internal/bashacks.sh +++ b/src/internal/bashacks.sh @@ -1,3 +1,3 @@ bashacks() { - echo -e "Type bh_ and press TAB." -} \ No newline at end of file + echo -e "This is not how you use it. Type bh_ and press instead." +} diff --git a/src/misc/bh_epoch.sh b/src/misc/bh_epoch.sh index 3f553e2..8de6b2c 100644 --- a/src/misc/bh_epoch.sh +++ b/src/misc/bh_epoch.sh @@ -2,6 +2,6 @@ bh_epoch() { (( $# == 0 )) && ( date +%s; return; ) if [[ $1 =~ ^[0-9]+$ ]]; then - [[ $BASHACKS_OS == Darwin ]] && date -ur $1 || date -d @$1 + [[ $bashacks_os == Darwin ]] && date -ur $1 || date -d @$1 fi -} \ No newline at end of file +} diff --git a/src/net/bh_bin2ip.sh b/src/net/bh_bin2ip.sh index fe4ce5d..86d9f4f 100644 --- a/src/net/bh_bin2ip.sh +++ b/src/net/bh_bin2ip.sh @@ -5,4 +5,4 @@ bh_bin2ip() { IFS=. read a b c d <<< "$1" echo $((2#$a)).$((2#$b)).$((2#$c)).$((2#$d)) -} \ No newline at end of file +} diff --git a/src/net/bh_hostcalc.sh b/src/net/bh_hostcalc.sh index b628b32..f63a12c 100644 --- a/src/net/bh_hostcalc.sh +++ b/src/net/bh_hostcalc.sh @@ -2,4 +2,4 @@ bh_hostcalc() { (( $# < 1 )) && return 1 echo $((2**(32-$1) - 2)) -} \ No newline at end of file +} diff --git a/src/net/bh_ip2bin.sh b/src/net/bh_ip2bin.sh index 471885b..dfdb382 100644 --- a/src/net/bh_ip2bin.sh +++ b/src/net/bh_ip2bin.sh @@ -6,4 +6,4 @@ bh_ip2bin() { printf "%.8d." $(bh_dec2bin $i) done | sed "s/.$//" echo -} \ No newline at end of file +} diff --git a/src/programming/bh_skel_yara.sh b/src/programming/bh_skel_yara.sh index 195db0d..dc0c824 100644 --- a/src/programming/bh_skel_yara.sh +++ b/src/programming/bh_skel_yara.sh @@ -14,4 +14,4 @@ bh_skel_yara() { condition: all of them }" -} \ No newline at end of file +} diff --git a/src/reversing/bh_asmgrep.sh b/src/reversing/bh_asmgrep.sh index 9b4642b..b570122 100644 --- a/src/reversing/bh_asmgrep.sh +++ b/src/reversing/bh_asmgrep.sh @@ -2,4 +2,4 @@ bh_asmgrep() { (( $# < 2 )) && return 1 bh_cmd_disasm "$2" | grep --color -EC4 "$1" -} \ No newline at end of file +}