Skip to content

springkill/sqlmap_tcp_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sqlmap_tcp_proxy

Overview

sqlmap_tcp_proxy is a tcp proxy for sqlmap. Since sqlmap only supports http requests, this proxy is used to convert the parameters of sqlmap into tcp messages to be sent.

Adding the tcp response back in the web page can theoretically help sqlmap to get valid information, but the actual use is recommended to redirect the tcp output to the file to view it by itself.

How to use?

python3 sqlproxy.py ip port Start_position End_position Initial_hexadecimal_message

sqlmap_tcp_proxy takes a total of five parameters: ip: The IP of the server to receive the tcp request port: The server port that will accept the tcp request Start_position: Start position of the replacement message End_position: End position of the replacement message Initial_hexadecimal_message: Initial_hexadecimal_message

Testing http://your_ip:28888/?a=with sqlmap The value of 'a' will be spliced into the tcp message

Example

python3 sqlproxy.py 127.0.0.1 29999 1 3 '11 22 33 44 55'

After running this command, the value of a will replace the first 11 and end with the third 33, for example, if the value of 'a' is 1, it will produce 31 44 55 (The hexadecimal value of '1' is '31',if you want to replace one bit, you can make the Start_position and End_position as the same)```.

Demo

demo

demo

About

sqlmap can use this proxy to test the tcp protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages