
सरल पायथन स्क्रिप्ट, BurpBouty profile के साथ समर्थित, जो आपको 14 payloads के साथ कई अनुरोध भेजकर और विभिन्न डेटाबेस के लिए 152 regex patterns की जांच करके SQL injection "Error based" का पता लगाने में मदद करती है।
एक सरल Python स्क्रिप्ट जो BurpBounty प्रोफ़ाइल के साथ समर्थित है, जो आपको 14 पेलोड के साथ कई अनुरोध भेजकर और विभिन्न डेटाबेस के लिए 152 regex पैटर्न की जांच करके SQL इंजेक्शन "Error based" का पता लगाने में मदद करती है।
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
| S|Q|L|i| |D|e|t|e|c|t|o|r|
| Coded By: Eslam Akl @eslam3kll & Khaled Nassar @knassar702
| Version: 1.0.0
| Blog: eslam3kl.medium.com
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

टूल का मुख्य विचार विभिन्न पेलोड का उपयोग करके Error Based SQL Injection को स्कैन करना है, जैसे:
'123
''123
`123
")123
"))123
`)123
`))123
'))123
')123"123
[]123
""123
'"123
"'123
\123
और विभिन्न डेटाबेस के लिए 152 error regex पैटर्न से मिलान करें।
स्रोत: https://github.com/sqlmapproject/sqlmap/blob/master/data/xml/errors.xml
यह बहुत सरल है, बस अपने चरणों को निम्नानुसार व्यवस्थित करें:
URLs का अंतिम schema जो आप टूल को पास करेंगे, इस प्रकार होना चाहिए:
https://aykalam.com?x=test&y=fortest
http://test.com?parameter=ayhaga
आवश्यक लाइब्रेरीज़ को स्थापित करने के लिए बस निम्नलिखित कमांड चलाएँ:
~/eslam3kl/SQLiDetector# pip3 install -r requirements.txt
टूल को चलाने के लिए:
# cat urls.txt
http://testphp.vulnweb.com/artists.php?artist=1
# python3 sqlidetector.py -h
usage: sqlidetector.py [-h] -f FILE [-w WORKERS] [-p PROXY] [-t TIMEOUT] [-o OUTPUT]
A simple tool to detect SQL errors
optional arguments:
-h, --help show this help message and exit]
-f FILE, --file FILE [File of the urls]
-w WORKERS, --workers [WORKERS Number of threads]
-p PROXY, --proxy [PROXY Proxy host]
-t TIMEOUT, --timeout [TIMEOUT Connection timeout]
-o OUTPUT, --output [OUTPUT [Output file]
# python3 sqlidetector.py -f urls.txt -w 50 -o output.txt -t 10
मैंने एक burpbounty प्रोफ़ाइल बनाई है जो समान पेलोड का उपयोग करती है और उन्हें कई स्थानों पर इंजेक्ट करती है जैसे:
मुझे लगता है कि यह अधिक प्रभावी है और POST अनुरोधों के लिए उपयोगी होगी जिन्हें आप Python स्क्रिप्ट का उपयोग करके परीक्षण नहीं कर सकते।


इस टूल और किसी अन्य टूल में क्या अंतर है?
यदि हमारे पास इस तरह का एक लिंक है https://example.com?file=aykalam&username=eslam3kl तो हमारे पास 2 पैरामीटर हैं। यह 2 संभावित कमजोर URLs बनाता है।
https://example.com?file=123'&username=eslam3kl
https://example.com?file=aykalam&username=123'
यदि आप योगदान देना चाहते हैं, तो बेझिझक ऐसा करें। आपका स्वागत है :)
मोहम्मद अल-खयात और ओरवा को धन्यवाद उनके अद्भुत पेलोड और विचारों के लिए। उन्हें फॉलो करें और आप और अधिक सीखेंगे:
https://twitter.com/Mohamed87Khayat
https://twitter.com/GodfatherOrwa