From 09d85f55de3a24f246b6d401c531ef193d54ecb7 Mon Sep 17 00:00:00 2001 From: fenix-soft Date: Mon, 31 Oct 2016 15:52:05 +0100 Subject: [PATCH] Add files via upload --- unlock-zip.sh | 20 ++++++++++++++++++++ unlock_rar.sh | 18 ++++++++++++++++++ version.txt | 3 +++ 3 files changed, 41 insertions(+) create mode 100644 unlock-zip.sh create mode 100644 unlock_rar.sh create mode 100644 version.txt diff --git a/unlock-zip.sh b/unlock-zip.sh new file mode 100644 index 0000000..8cbbef2 --- /dev/null +++ b/unlock-zip.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# unlock archive zip without password, the script use the dictionary attack (use file dic-pass.txt), the script find all zip file in the directory to run and check it all, and if possible extract the archive file.# +#Copyright (c) 2014 fenix-soft + + +checkpass() { +for i in `cat dic-pass.txt` +do a="`7za x -y -p$i $j | grep 'Everything is Ok'`" +if [ "$a" = "Everything is Ok" ] +then echo; echo; echo "file: $j pass trovata: $i"; echo ; echo "ho estratto i file...con sucesso."; echo +return 0 +fi +done } + +for j in `ls *.zip` +do echo; echo; echo "archivio $j" + +checkpass; done + diff --git a/unlock_rar.sh b/unlock_rar.sh new file mode 100644 index 0000000..292479c --- /dev/null +++ b/unlock_rar.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# unlock archive rar without password, the script use the dictionary attack (use file dic-pass.txt), the script find all rar file in the directory to run and check it all, and if possible extract the archive file. +#Copyright (c) 2014 fenix-soft + +checkpass() { +for i in `cat dic-pass.txt` +do a="`unrar x -p$i $j | grep 'All OK'`" +if [ "$a" = "All OK" ] +then echo +clear +echo "file: $j pass trovata: $i"; echo ; echo "ho estratto i file...con sucesso."; echo +return 0 +fi +done } + +for j in `ls *.rar`; do echo; echo; echo "archivio $j" +checkpass; done diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..7694dd9 --- /dev/null +++ b/version.txt @@ -0,0 +1,3 @@ +Unlock archiver V:2.0 + +dic-pass.txt V:2.0 \ No newline at end of file