mirror of
https://github.com/Z4nzu/hackingtool
synced 2024-11-14 11:53:01 +00:00
Minor fixes
This commit is contained in:
parent
4dcfd331fc
commit
e885d19f8a
2
.github/workflows/lint_python.yml
vendored
2
.github/workflows/lint_python.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
--statistics --target-version=py37 . | grep "\[\*\]"
|
--statistics --target-version=py37 . | grep "\[\*\]"
|
||||||
- run: pip install black codespell mypy pytest safety
|
- run: pip install black codespell mypy pytest safety
|
||||||
- run: black --check . || true
|
- run: black --check . || true
|
||||||
- run: codespell # --ignore-words-list="" --skip="*.css,*.js,*.lock"
|
- run: codespell
|
||||||
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
|
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
|
||||||
- run: mkdir --parents --verbose .mypy_cache
|
- run: mkdir --parents --verbose .mypy_cache
|
||||||
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
|
- run: mypy --ignore-missing-imports --install-types --non-interactive . || true
|
||||||
|
17
core.py
17
core.py
@ -1,4 +1,3 @@
|
|||||||
# coding=utf-8
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import webbrowser
|
import webbrowser
|
||||||
@ -69,13 +68,13 @@ class HackingTool(object):
|
|||||||
if self.PROJECT_URL:
|
if self.PROJECT_URL:
|
||||||
print(f"[{98}] Open project page")
|
print(f"[{98}] Open project page")
|
||||||
print(f"[{99}] Back to {parent.TITLE if parent is not None else 'Exit'}")
|
print(f"[{99}] Back to {parent.TITLE if parent is not None else 'Exit'}")
|
||||||
option_index = input("Select an option : ")
|
option_index = input("Select an option : ").strip()
|
||||||
try:
|
try:
|
||||||
option_index = int(option_index)
|
option_index = int(option_index)
|
||||||
if option_index - 1 in range(len(self.OPTIONS)):
|
if option_index - 1 in range(len(self.OPTIONS)):
|
||||||
ret_code = self.OPTIONS[option_index - 1][1]()
|
ret_code = self.OPTIONS[option_index - 1][1]()
|
||||||
if ret_code != 99:
|
if ret_code != 99:
|
||||||
input("\n\nPress ENTER to continue:")
|
input("\n\nPress ENTER to continue:").strip()
|
||||||
elif option_index == 98:
|
elif option_index == 98:
|
||||||
self.show_project_page()
|
self.show_project_page()
|
||||||
elif option_index == 99:
|
elif option_index == 99:
|
||||||
@ -84,10 +83,10 @@ class HackingTool(object):
|
|||||||
return 99
|
return 99
|
||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
print("Please enter a valid option")
|
print("Please enter a valid option")
|
||||||
input("\n\nPress ENTER to continue:")
|
input("\n\nPress ENTER to continue:").strip()
|
||||||
except Exception:
|
except Exception:
|
||||||
print_exc()
|
print_exc()
|
||||||
input("\n\nPress ENTER to continue:")
|
input("\n\nPress ENTER to continue:").strip()
|
||||||
return self.show_options(parent = parent)
|
return self.show_options(parent = parent)
|
||||||
|
|
||||||
def before_install(self):
|
def before_install(self):
|
||||||
@ -157,21 +156,21 @@ class HackingToolsCollection(object):
|
|||||||
for index, tool in enumerate(self.TOOLS):
|
for index, tool in enumerate(self.TOOLS):
|
||||||
print(f"[{index} {tool.TITLE}")
|
print(f"[{index} {tool.TITLE}")
|
||||||
print(f"[{99}] Back to {parent.TITLE if parent is not None else 'Exit'}")
|
print(f"[{99}] Back to {parent.TITLE if parent is not None else 'Exit'}")
|
||||||
tool_index = input("Choose a tool to proceed: ")
|
tool_index = input("Choose a tool to proceed: ").strip()
|
||||||
try:
|
try:
|
||||||
tool_index = int(tool_index)
|
tool_index = int(tool_index)
|
||||||
if tool_index in range(len(self.TOOLS)):
|
if tool_index in range(len(self.TOOLS)):
|
||||||
ret_code = self.TOOLS[tool_index].show_options(parent = self)
|
ret_code = self.TOOLS[tool_index].show_options(parent = self)
|
||||||
if ret_code != 99:
|
if ret_code != 99:
|
||||||
input("\n\nPress ENTER to continue:")
|
input("\n\nPress ENTER to continue:").strip()
|
||||||
elif tool_index == 99:
|
elif tool_index == 99:
|
||||||
if parent is None:
|
if parent is None:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
return 99
|
return 99
|
||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
print("Please enter a valid option")
|
print("Please enter a valid option")
|
||||||
input("\n\nPress ENTER to continue:")
|
input("\n\nPress ENTER to continue:").strip()
|
||||||
except Exception:
|
except Exception:
|
||||||
print_exc()
|
print_exc()
|
||||||
input("\n\nPress ENTER to continue:")
|
input("\n\nPress ENTER to continue:").strip()
|
||||||
return self.show_options(parent = parent)
|
return self.show_options(parent = parent)
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# coding=utf-8
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from core import HackingTool
|
from core import HackingTool
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
##!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: UTF-8 -*-
|
|
||||||
# Version 1.1.0
|
# Version 1.1.0
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import webbrowser
|
import webbrowser
|
||||||
from platform import system
|
from platform import system
|
||||||
from time import sleep
|
from time import sleep
|
||||||
@ -83,10 +83,10 @@ if __name__ == "__main__":
|
|||||||
[1] Manual
|
[1] Manual
|
||||||
[2] Default
|
[2] Default
|
||||||
""")
|
""")
|
||||||
choice = input("Z4nzu =>> ")
|
choice = input("Z4nzu =>> ").strip()
|
||||||
|
|
||||||
if choice == "1":
|
if choice == "1":
|
||||||
inpath = input("Enter Path (with Directory Name) >> ")
|
inpath = input("Enter Path (with Directory Name) >> ").strip()
|
||||||
with open(fpath, "w") as f:
|
with open(fpath, "w") as f:
|
||||||
f.write(inpath)
|
f.write(inpath)
|
||||||
print("Successfully Set Path to: {}".format(inpath))
|
print("Successfully Set Path to: {}".format(inpath))
|
||||||
@ -98,7 +98,7 @@ if __name__ == "__main__":
|
|||||||
sleep(3)
|
sleep(3)
|
||||||
else:
|
else:
|
||||||
print("Try Again..!!")
|
print("Try Again..!!")
|
||||||
exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
with open(fpath) as f:
|
with open(fpath) as f:
|
||||||
archive = f.readline()
|
archive = f.readline()
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# coding=utf-8
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from core import HackingTool
|
from core import HackingTool
|
||||||
@ -49,7 +48,7 @@ class Brutal(HackingTool):
|
|||||||
>> Arduino Software (I used v1.6.7)
|
>> Arduino Software (I used v1.6.7)
|
||||||
>> TeensyDuino
|
>> TeensyDuino
|
||||||
>> Linux udev rules
|
>> Linux udev rules
|
||||||
>> Copy and paste the PaensyLib folder inside your Arduino\libraries
|
>> Copy and paste the PaensyLib folder inside your Arduino libraries
|
||||||
|
|
||||||
[!] Kindly Visit below link for Installation for Arduino
|
[!] Kindly Visit below link for Installation for Arduino
|
||||||
>> https://github.com/Screetsec/Brutal/wiki/Install-Requirements
|
>> https://github.com/Screetsec/Brutal/wiki/Install-Requirements
|
||||||
|
Loading…
Reference in New Issue
Block a user