BSQLinjector 使用盲注方法从 SQL 数据库中检索数据。 我建议使用 "--test" 开关,以便在实际发送请求前清晰地查看配置后的 payload 样式。
--file Mandatory - File containing valid HTTP request and SQL injection point (SQLINJECT). (--file=/tmp/req.txt)
--pattern Mandatory - Pattern to look for when query is true. (--pattern=truestatement)
--prepend Mandatory - Main payload. (--prepend="abcd'and'a'='b'+union+select+'truestatement'+from+table+where+col%3d'value'+and+substr(password,"
--append How to end our payload. For example comment out rest of SQL statement. (--append='#)
--schar Character placed around chars. This character is not used while in hex mode. (--schar="'")
--2ndfile File containing valid HTTP request used in second order exploitation. (--2ndfile=/tmp/2ndreq.txt)
--mode Blind mode to use - (between - b (generates less requests), moreless - a (generates less requests by using "<", ">", "=" characters), like - l (complete bruteforce), equals - e (complete bruteforce)). (--mode=l)
--postgres Use postgres "for" in substring function (e.g. from 1 for 1).
--hex Use hex to compare instead of characters.
--case Case sensitivity.
--ssl Use SSL.
--proxy Proxy to use. (--proxy=127.0.0.1:8080)
--test Enable test mode. Do not send request, just show full payload.
--special Include all special characters in enumeration.
--start Start enumeration from specified character. (--start=10)
--max Maximum characters to enumerate. (--max=10)
--timeout Timeout in waiting for responses. (--timeout=20)
--only-final Stop showing each enumerated letter.
--comma Encode comma.
--bracket Add brackets to the end of substring function. --bracket="))"
--hexspace Use space instead of brackets to split hex values.
--verbose Show verbose messages.
ruby ./BSQLinjector.rb --pattern=truestatement --file=/tmp/req.txt --schar="'" --prepend="abcd'and'a'='b'+union+select+'truestatement'+from+table+where+col%3d'value'+and+substr(password," --append="'#" --ssl
免责声明
本仓库包含的工具仅供教育目的。任何将工具用于非法活动的行为均被严格禁止。
法律声明
了解并遵守所有与网络安全和道德黑客相关的当地法律法规非常重要。未经授权访问计算机系统、网络或数据是非法的,并将受到法律制裁。本仓库的开发者不对任何滥用其中工具的行为负责。
使用本仓库中的工具,即表示您同意以负责任和道德的方式使用它们。在测试或尝试访问不属于您的任何网络、系统或数据之前,请务必获得明确许可。