Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.venv
6 changes: 3 additions & 3 deletions Zydra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
py-term==0.6
pyfiglet==0.8.post1
rarfile==4.0
termcolor==1.1.0
12 changes: 5 additions & 7 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/