I'm trying to detect SQL injection in my course of Pattern Recognition. My algorithm would be as follows:-
1) Encode URL feeded by user (this step is feature detection)
2) Compare the URL with the dataset of false URL.
3) Accordingly, classify whether URL is vulnerable or otherwise.
Please help me in writing code for above-stated steps. Prompt assistance is requested