![]() |
|
[PHP] The Alchemist's SQLi Vulnerability Scanner - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] The Alchemist's SQLi Vulnerability Scanner (/showthread.php?tid=3032803) |
The Alchemist's SQLi Vulnerability Scanner - The Alchemist16 - Nov 19, 2012 The Alchemist's SQLi Vulnerability Scanner Hello Hackforums, I've come up with a new script. I'd like to share this cool script with you. This script checks if the entered URL is vulnerable to SQL Injection(GET) or not... Advantage of using this script : I've given a textbox to enter the URLs. You can enter more than one URL to be checked. Very often you come across huge lists of URLs and people say that they are all Vulnerable to SQLi. Well, this is what you'll need then... Enter all the URLs and Scan for SQLi Vulnerability. The URLs need to be entered in the textbox in this way : Code www.example1.com/index.php?id=1One URL in one line. Here's the script : PHP Code Thats all.. Enjoy..🤝 PLEASE GIVE FEEDBACK!!! * - Swish - Nov 19, 2012 Nice release, going to try this out! * - The Alchemist16 - Nov 19, 2012 Yani Wrote:What if the application doesn't return errors?Application? Where do you see an application here that'll return errors? If you mean to say that the page in the URL does not return errors, then the URL is not vulnerable to SQLi. RoguexD Wrote:Nice release, going to try this out!Thanks... Do give feedback after trying out... * - The Alchemist16 - Nov 19, 2012 Yani Wrote:That's a web-application and if it doesn't return errors it can still be vulnerable to blind SQL injection.Oh. Sorry mate, I misunderstood you. The script that I made only checks for GET UNION based SQLi Vulnerability.. For checking blind SQLi vulnerability, this script won't work... And I don't think it'll be easy to make a script that checks for blind SQLi because you need to manually type things like this 0'or'0'='0 and click the submit button.. In my script, if the URL ending with ' does not return an error, the URL is not vulnerable to UNION based GET SQLi.... * - JoinSeventh - Nov 19, 2012 (Nov 19, 2012 08:47 AM)The Alchemist16 Wrote: Oh. Sorry mate, I misunderstood you. It can still be vulnerable to Union Based SQL Injection even though the app doesn't give you an error. Very often the indication if a webapp is vulnerable could be something like that images or text dissapears or you can even get redirected. A test you could do in addition to checking for SQL Errors could be something like the following (Pseudo-code): PHP Code Ofcourse this test would not be accurate if the website dynamically changes, in that case you could use something like pattern matching to determine if website content disappears or changes. * - The Alchemist16 - Nov 21, 2012 Alright.... Thanks for the snippet... And the feedback ofcourse... * - ShitTaker99 - Nov 21, 2012 (Nov 19, 2012 09:11 AM)JoinSeventh Wrote: A test you could do in addition to checking for SQL Errors could be something like the following (Pseudo-code): what happens if it gives a 404 page? * - The Alchemist16 - Nov 23, 2012 It wont give 404 error... Chances are very less... |