From 9167595ab9d7a2ff62803f295048da0f9e3dc397 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 2 Apr 2026 17:44:44 +0200 Subject: [PATCH] unzip_bruteforce beak if founded --- usr/bin/aaa | 25 ------------------------- usr/bin/unzip_bruteforce | 1 + 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100755 usr/bin/aaa diff --git a/usr/bin/aaa b/usr/bin/aaa deleted file mode 100755 index c5db6d6..0000000 --- a/usr/bin/aaa +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/bash - -if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then - echo "Usage: $0 arg1 [arg2] [arg3]" - exit 1 -fi - -# interactive session check -if [ -t 0 ]; then - echo -n "Delete existing output files? [y/N]: " - read ans - case "$ans" in - y|Y) rm -f *.school ;; - *) echo "Aborted"; exit 0 ;; - esac -fi - -# process input file -while IFS= read -r line; do - new_f="${line%.*}.school" - f > "$new_f" -done < "$FILE" - -exit 0 - diff --git a/usr/bin/unzip_bruteforce b/usr/bin/unzip_bruteforce index 0bf551a..e7c81eb 100755 --- a/usr/bin/unzip_bruteforce +++ b/usr/bin/unzip_bruteforce @@ -13,6 +13,7 @@ while IFS= read -r line; do echo try: $line if unzip -p $line $FILE ; then echo FOUND : $line + break ; fi done < "$LIST"