mirror of
https://github.com/Z4nzu/hackingtool
synced 2026-05-24 09:28:43 +00:00
Mark bash-script and apt-dependent tools as linux-only so they are hidden automatically on macOS via _active_tools() filter in core.py: - phishing_attack.py: 14 tools (all bash-script based) - ddos.py: all 6 tools (Linux network stack required) - post_exploitation.py: Vegile, ChromeKeyLogger - payload_creator.py: all 7 tools (bash setup scripts) - exploit_frameworks.py: WebSploit (bash install) - reverse_engineering.py: Apk2Gold (bash build) - xss_attack.py: RVuln (Rust + apt deps)
65 lines
2.1 KiB
Python
65 lines
2.1 KiB
Python
import subprocess
|
|
|
|
from core import HackingTool, HackingToolsCollection, console
|
|
|
|
from rich.panel import Panel
|
|
from rich.prompt import Prompt
|
|
|
|
|
|
class AndroGuard(HackingTool):
|
|
TITLE = "Androguard"
|
|
DESCRIPTION = "Androguard is a Reverse engineering, Malware and goodware " \
|
|
"analysis of Android applications and more"
|
|
INSTALL_COMMANDS = ["sudo pip3 install -U androguard"]
|
|
PROJECT_URL = "https://github.com/androguard/androguard "
|
|
|
|
def __init__(self):
|
|
super().__init__(runnable=False)
|
|
|
|
|
|
class Apk2Gold(HackingTool):
|
|
TITLE = "Apk2Gold"
|
|
SUPPORTED_OS = ["linux"]
|
|
DESCRIPTION = "Apk2Gold is a CLI tool for decompiling Android apps to Java"
|
|
INSTALL_COMMANDS = [
|
|
"git clone https://github.com/lxdvs/apk2gold.git",
|
|
"cd apk2gold;sudo bash make.sh"
|
|
]
|
|
PROJECT_URL = "https://github.com/lxdvs/apk2gold "
|
|
|
|
def run(self):
|
|
uinput = input("Enter (.apk) File >> ")
|
|
subprocess.run(["sudo", "apk2gold", uinput])
|
|
|
|
|
|
class Jadx(HackingTool):
|
|
TITLE = "JadX"
|
|
DESCRIPTION = "Jadx is Dex to Java decompiler.\n" \
|
|
"[*] decompile Dalvik bytecode to java classes from APK, dex," \
|
|
" aar and zip files\n" \
|
|
"[*] decode AndroidManifest.xml and other resources from " \
|
|
"resources.arsc"
|
|
INSTALL_COMMANDS = [
|
|
"git clone https://github.com/skylot/jadx.git",
|
|
# Bug 30 fix: gradlew dist requires Java — check first
|
|
"java -version 2>&1 | grep -q 'version' && cd jadx && ./gradlew dist || echo '[ERROR] Java not found. Install: sudo apt install default-jdk'",
|
|
]
|
|
PROJECT_URL = "https://github.com/skylot/jadx"
|
|
REQUIRES_JAVA = True
|
|
|
|
def __init__(self):
|
|
# Py3-4 fix: super(Jadx, self) → super()
|
|
super().__init__(runnable=False)
|
|
|
|
|
|
class ReverseEngineeringTools(HackingToolsCollection):
|
|
TITLE = "Reverse engineering tools"
|
|
TOOLS = [
|
|
AndroGuard(),
|
|
Apk2Gold(),
|
|
Jadx()
|
|
]
|
|
|
|
if __name__ == "__main__":
|
|
tools = ReverseEngineeringTools()
|
|
tools.show_options()
|