diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d17dae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv diff --git a/Zydra.py b/Zydra.py index 830b48e..761395a 100644 --- a/Zydra.py +++ b/Zydra.py @@ -584,7 +584,7 @@ def banner(self): # sudo wget http://www.figlet.org/fonts/epic.flf -O /usr/share/figlet/epic.flf bannerfont = "epic" if os.path.exists('/usr/share/figlet/epic.flf') else "banner" banner = pyfiglet.figlet_format("ZYDRA", font=bannerfont).replace("\n", "\n\t\t", 7) - + cprint("\r\n\t" + "@" * 61, "blue", end="") cprint("\n\t\t" + banner + "\t\tAuthor : Hamed Hosseini", "blue", attrs=['bold']) cprint("\t" + "@" * 61 + "\n", "blue") @@ -623,8 +623,8 @@ def main(self): parser.add_option("-d", dest="dictfile", type='string', help="Specifies dictionary file") parser.add_option("-f", dest="file", type='string', help="Specifies the file") parser.add_option("-b", dest="chartype", type='string', help="Specifies the character type") - parser.add_option("-m", dest="minlength", type='string', help="Specifies minimum length of password") - parser.add_option("-x", dest="maxlength", type='string', help="Specifies maximum length of password") + parser.add_option("-m", dest="minlength", type='int', help="Specifies minimum length of password") + parser.add_option("-x", dest="maxlength", type='int', help="Specifies maximum length of password") (options, args) = parser.parse_args() try: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..169b8f5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +py-term==0.6 +pyfiglet==0.8.post1 +rarfile==4.0 +termcolor==1.1.0 diff --git a/script.sh b/script.sh index 416abce..a26b556 100644 --- a/script.sh +++ b/script.sh @@ -10,14 +10,12 @@ DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" - sudo apt-get install qpdf -y sudo apt-get install unrar -y -sudo apt-get install python3.7 -y +sudo apt-get install python3.7 -y sudo apt-get install python3-pip -y pip3 --version -pip3 install zipfile -pip3 install rarfile -pip3 install pyfiglet -pip3 install py-term -pip3 install termcolor - +python -m venv .venv +source .venv/bin/activate +pip install pip --upgrade +pip install -r requirements.txt cd /vagrant/