
Professional extension of sqlmap project
sqlmap-nu11secur1ty) - Kali LinuxAuthor: nu11secur1ty
Description: Generate Metasploit auxiliary modules from Burp Suite requests and run sqlmap-nu11secur1ty automatically.
Important: Only for lab/authorized testing.
This generator allows you to create a Metasploit module (.rb) from any HTTP request captured in Burp Suite.
The module will:
exploit.txt.sqlmap-nu11secur1ty automatically for SQLi testing.msfconsole.sqlmap-nu11secur1ty/
├── sqlmap.py # SQLi testing engine
├── MSF/
│ ├── msf_rb_generator.py # Python generator
│ ├── YourModule.rb # Generated Metasploit module
│ └── exploit.txt # Saved HTTP request
Ensure
sqlmap.pyis in the parent folder ofMSF/.
Open a terminal in the MSF/ folder:
cd sqlmap-nu11secur1ty/MSF/
python3 msf_rb_generator.py
You will be prompted to enter:
Output filename (e.g., MyModule.rb)
Module name (e.g., SQLi-Test)
Author name
Module description
Paste the Burp request → End with a single line END
Example:
POST /login HTTP/1.1
Host: example.com
Content-Type: application/x-www-form-urlencoded
username=admin&password=admin
END
create folder, e.g., MSF/ inside auxiliary
Manually copying:
sudo cp /path/to/MyModule.rb /usr/share/metasploit-framework/modules/auxiliary/MSF/
sudo cp /path/to/exploit.txt /usr/share/metasploit-framework/modules/auxiliary/MSF/
Follow the Generator...
sudo chmod 644 /usr/share/metasploit-framework/modules/auxiliary/MSF/MyModule.rb
After running, two files will be generated:
.rb Metasploit module (MyModule.rb)
exploit.txt containing the saved request
Step 3 — Load Module in Metasploit
msfconsole
use auxiliary/MSF/MyModule.rb
set RAW_REQUEST `cat exploit.txt`
run
python3 /home/kali/sqlmap-nu11secur1ty/sqlmap.py -r exploit.txt --no-cast --no-escape --dbms=mysql --time-sec=11 --random-agent --level=5 --risk=3 --batch --flush-session --technique=TBEUSQ --union-char=UCHAR --answers="crack=Y,dict=Y,continue=Y,quit=N" --dump-all
Saves the HTTP request to exploit.txt.
Executes sqlmap.py -r exploit.txt --batch --level=1 automatically.
Output from SQLmap will be printed in the console.
SQL injection vulnerabilities detected by sqlmap-nu11secur1ty will appear in the console output.
Any extracted data will be handled by SQLmap in the usual manner.
Always test in authorized labs.
exploit.txt will be overwritten each run.
Works with any HTTP request captured from Burp Suite.
sqlmap.py must reside in the parent folder of MSF/.
You can modify the generated .rb module for advanced payloads or custom SQLmap options.
sqlmap_cmd = "python3 #{sqlmap_path} -r #{request_file} --batch --level=3 --risk=2"