AlphaWolf commited on
Commit
4b5c6a0
·
0 Parent(s):

Ultra Speed SLMP Deployment

Browse files
Files changed (3) hide show
  1. app.py +36 -0
  2. packages.txt +3 -0
  3. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import subprocess
3
+ import os
4
+
5
+ def run_sqlmap(url, threads, level, risk, tamper, techn):
6
+ cmd = ["python3", "sqlmap-dev/sqlmap.py", "-u", url, "--batch", "--threads", str(threads), "--level", str(level), "--risk", str(risk)]
7
+ if tamper:
8
+ cmd += ["--tamper", tamper]
9
+ if techn:
10
+ cmd += ["--technique", techn]
11
+
12
+ process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
13
+ output = ""
14
+ for line in process.stdout:
15
+ output += line
16
+ yield output
17
+
18
+ iface = gr.Interface(
19
+ fn=run_sqlmap,
20
+ inputs=[
21
+ gr.Textbox(label="Target URL"),
22
+ gr.Slider(minimum=1, maximum=10, step=1, value=5, label="Threads"),
23
+ gr.Slider(minimum=1, maximum=5, step=1, value=1, label="Level"),
24
+ gr.Slider(minimum=1, maximum=3, step=1, value=1, label="Risk"),
25
+ gr.Textbox(label="Tampers (comma separated)"),
26
+ gr.Textbox(label="Technique (e.g. U for UNION)")
27
+ ],
28
+ outputs=gr.Code(label="SQLMAP Output"),
29
+ title="SLMP Cloud Runner - Ultra Speed",
30
+ description="Deploy SQLMAP in the cloud for maximum bandwidth and IP masking."
31
+ )
32
+
33
+ if __name__ == "__main__":
34
+ if not os.path.exists("sqlmap-dev"):
35
+ subprocess.run(["git", "clone", "--depth", "1", "https://github.com/sqlmapproject/sqlmap.git", "sqlmap-dev"])
36
+ iface.queue().launch()
packages.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ python3
2
+ python3-pip
3
+ git
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio
2
+ subprocess.run