
उच्च-प्रदर्शन वेब पथ खोज और निर्देशिका ब्रूट-फोर्सिंग टूल। अनुकूलन योग्य वर्डलिस्ट, फ़िल्टर और पेनेट्रेशन टेस्टिंग के लिए रिकर्सिव स्कैनिंग का उपयोग करके छिपी हुई फ़ाइलों, निर्देशिकाओं और एंडपॉइंट्स की खोज करता है।
वर्तमान रिलीज़: v1.4 (20222.09.03)
वेब सर्वर में निर्देशिकाओं और फ़ाइलों को ब्रूट फोर्स करने के लिए डिज़ाइन किया गया एक उन्नत कमांड-लाइन टूल, उर्फ वेब पथ स्कैनर
विचार @maurosoria और @shelld3v द्वारा
Developement-2022 को @nu11secur1ty द्वारा सक्रिय रूप से विकसित किया जा रहा है
आवश्यकता: python 3.10.5 या उच्चतर
इन स्थापना विकल्पों में से एक चुनें:
git clone https://github.com/nu11secur1ty/insect.git --depth 1 (अनुशंसित)docker build -t "insect:latest" . (अधिक जानकारी यहाँ पाई जा सकती है)pip3 install dirsearchsudo apt-get install dirsearch (अप्रचलित)सारांश:
%EXT% कीवर्ड को -e फ़्लैग के एक्सटेंशन से प्रतिस्थापित करते हैं।%EXT% वाली वर्डलिस्टों के लिए (जैसे SecLists), -f | --force-extensions स्विच की आवश्यकता होती है ताकि वर्डलिस्ट के प्रत्येक शब्द के साथ ही / में भी एक्सटेंशन जोड़े जा सकें।wordlist1.txt,wordlist2.txt।उदाहरण:
**asp** और **aspx** को एक्सटेंशन के रूप में पास करने पर निम्नलिखित शब्दकोश उत्पन्न होगा:```
index
index.asp
index.aspx
**php** और **html** को **-f**/**--force-extensions** फ़्लैग के साथ एक्सटेंशन के रूप में पास करने पर निम्नलिखित डिक्शनरी उत्पन्न होगी:```
admin
admin.php
admin.html
admin/
**jsp** और **jspa** को **-O**/**--overwrite-extensions** फ़्लैग के साथ एक्सटेंशन के रूप में पास करने से निम्नलिखित डिक्शनरी उत्पन्न होगी:```
login.html
login.jsp
login.jspa
विकल्प -------``` Usage: insect.py [-u|--url] target [-e|--extensions] extensions [options]
Options: --version show program's version number and exit -h, --help show this help message and exit
Mandatory:
-u URL, --url=URL Target URL(s), support multiple flags
-l PATH, --url-file=PATH
URL list file
--stdin Read URL(s) from STDIN
--cidr=CIDR Target CIDR
--raw=PATH Load raw HTTP request from file (use --scheme flag
to set the scheme)
-s SESSION_FILE, --session=SESSION_FILE
Session file
--config=PATH Full path to config file, see 'config.ini' for
example (Default: config.ini)
Dictionary Settings:
-w WORDLISTS, --wordlists=WORDLISTS
Customize wordlists (separated by commas)
-e EXTENSIONS, --extensions=EXTENSIONS
Extension list separated by commas (e.g. php,asp)
-f, --force-extensions
Add extensions to the end of every wordlist entry. By
default insect only replaces the %EXT% keyword with
extensions
-O, --overwrite-extensions
Overwrite other extensions in the wordlist with your
extensions (selected via -e)
--exclude-extensions=EXTENSIONS
Exclude extension list separated by commas (e.g.
asp,jsp)
--remove-extensions
Remove extensions in all paths (e.g. admin.php ->
admin)
--prefixes=PREFIXES
Add custom prefixes to all wordlist entries (separated
by commas)
--suffixes=SUFFIXES
Add custom suffixes to all wordlist entries, ignore
directories (separated by commas)
-U, --uppercase Uppercase wordlist
-L, --lowercase Lowercase wordlist
-C, --capital Capital wordlist
General Settings: -t THREADS, --threads=THREADS Number of threads -r, --recursive Brute-force recursively --deep-recursive Perform recursive scan on every directory depth (e.g. api/users -> api/) --force-recursive Do recursive brute-force for every found path, not only directories -R DEPTH, --max-recursion-depth=DEPTH Maximum recursion depth --recursion-status=CODES Valid status codes to perform recursive scan, support ranges (separated by commas) --subdirs=SUBDIRS Scan sub-directories of the given URL[s] (separated by commas) --exclude-subdirs=SUBDIRS Exclude the following subdirectories during recursive scan (separated by commas) -i CODES, --include-status=CODES Include status codes, separated by commas, support ranges (e.g. 200,300-399) -x CODES, --exclude-status=CODES Exclude status codes, separated by commas, support ranges (e.g. 301,500-599) --exclude-sizes=SIZES Exclude responses by sizes, separated by commas (e.g. 0B,4KB) --exclude-texts=TEXTS Exclude responses by texts, separated by commas (e.g. 'Not found', 'Error') --exclude-regex=REGEX Exclude responses by regex (e.g. '^Error$') --exclude-redirect=STRING Exclude responses if this regex (or text) matches redirect URL (e.g. '/index.html') --exclude-response=PATH Exclude responses similar to response of this page, path as input (e.g. 404.html) --skip-on-status=CODES Skip target whenever hit one of these status codes, separated by commas, support ranges --min-response-size=LENGTH Minimum response length --max-response-size=LENGTH Maximum response length --max-time=SECONDS Maximum runtime for the scan
Request Settings: -m METHOD, --http-method=METHOD HTTP method (default: GET) -d DATA, --data=DATA HTTP request data --data-file=PATH File contains HTTP request data -H HEADERS, --header=HEADERS HTTP request header, support multiple flags --header-file=PATH File contains HTTP request headers -F, --follow-redirects Follow HTTP redirects --random-agent Choose a random User-Agent for each request --auth=CREDENTIAL Authentication credential (e.g. user:password or bearer token) --auth-type=TYPE Authentication type (basic, digest, bearer, ntlm, jwt, oauth2) --cert-file=PATH File contains client-side certificate --key-file=PATH File contains client-side certificate private key (unencrypted) --user-agent=USERAGENT --cookie=COOKIE
Connection Settings: --timeout=TIMEOUT Connection timeout --delay=DELAY Delay between requests --proxy=PROXY Proxy URL, support HTTP and SOCKS proxies (e.g. localhost:8080, socks5://localhost:8088) --proxy-file=PATH File contains proxy servers --proxy-auth=CREDENTIAL Proxy authentication credential --replay-proxy=PROXY Proxy to replay with found paths --tor Use Tor network as proxy --scheme=SCHEME Scheme for raw request or if there is no scheme in the URL (Default: auto-detect) --max-rate=RATE Max requests per second --retries=RETRIES Number of retries for failed requests --ip=IP Server IP address --exit-on-error Exit whenever an error occurs
Advanced Settings: --crawl Crawl for new paths in responses
View Settings: --full-url Full URLs in the output (enabled automatically in quiet mode) --redirects-history Show redirects history --no-color No colored output -q, --quiet-mode Quiet mode
Output Settings: -o PATH, --output=PATH Output file --format=FORMAT Report format (Available: simple, plain, json, xml, md, csv, html, sqlite) --log=PATH Log file
कॉन्फ़िगरेशन
---------------
dirsearch और insect फ़्लैग्स के डिफ़ॉल्ट मान कॉन्फ़िगरेशन फ़ाइल में संपादित किए जा सकते हैं, डिफ़ॉल्ट रूप से `config.ini` है, लेकिन आप `--config` फ़्लैग के साथ कोई अन्य फ़ाइल चुन सकते हैं```ini
# If you want to edit dirsearch or insect default configurations, you can
# edit values in this file. Everything after `#` is a comment
# and won't be applied
[general]
threads = 25
recursive = False
deep-recursive = False
force-recursive = False
recursion-status = 200-399,401,403
max-recursion-depth = 0
exclude-subdirs = %%ff/,.;/,..;/,;/,./,../,%%2e/,%%2e%%2e/
random-user-agents = False
max-time = 0
# subdirs = /,api/
# include-status = 200-299,401
# exclude-status = 400,500-999
# exclude-sizes = 0b,123gb
# exclude-texts = "Not found"
# exclude-regex = "^403$"
# exclude-redirect = "*/error.html"
# exclude-response = 404.html
# skip-on-status = 429,999
[dictionary]
default-extensions = php,aspx,jsp,html,js
force-extensions = False
overwrite-extensions = False
lowercase = False
uppercase = False
capitalization = False
# exclude-extensions = old,log
# prefixes = .,admin
# suffixes = ~,.bak
# wordlists = /path/to/wordlist1.txt,/path/to/wordlist2.txt
[request]
httpmethod = get
follow-redirects = False
# headers-file = /path/to/headers.txt
# user-agent = MyUserAgent
# cookie = SESSIONID=123
[connection]
timeout = 7.5
delay = 0
max-rate = 0
max-retries = 1
exit-on-error = False
## By disabling `scheme` variable, insect will automatically identify the URI scheme
# scheme = http
# proxy = localhost:8080
# proxy-file = /path/to/proxies.txt
# replay-proxy = localhost:8000
[advanced]
crawl = False
[view]
full-url = False
quiet-mode = False
color = True
show-redirects-history = False
[output]
## Support: plain, simple, json, xml, md, csv, html, sqlite
report-format = plain
autosave-report = True
# log-file = /path/to/insect.log
# report-output-folder = /path/to/reports

dirsearch और insect का उपयोग करने के कुछ उदाहरण - ये सबसे सामान्य तर्क हैं। यदि आपको सभी चाहिए, तो केवल -h तर्क का उपयोग करें।
python3 insect.py -u https://target
chown -R bitwardenrs:bitwardenrs /opt/bitwarden
bwdata `/opt/bitwarden` पर स्थित होना चाहिए।<br>
bitwarden_rs एक्ज़ीक्यूटेबल `/opt/bitwarden/bitwarden_rs` पर स्थित होगा। इसका एक सिमलिंक `/usr/bin` में रखा जाएगा।<br>
आप पहले सिमलिंक हटाकर और फिर नवीनतम संस्करण बनाकर नए रिलीज़ पर अपग्रेड कर सकते हैं:<br>
```shell
sudo rm /usr/bin/bitwarden_rs
sudo cargo install bitwarden_rs --root /opt/bitwarden
sudo chown -R bitwardenrs:bitwardenrs /opt/bitwarden
python3 insect.py -e php,html,js -u https://target
### 🛰️ नेटवर्क रिकॉनिसेंस और OSINT
- **नेटवर्क स्कैनिंग**: [Nmap](https://nmap.org), [Masscan](https://github.com/robertdavidgraham/masscan), [RustScan](https://github.com/RustScan/RustScan), [Naabu](https://github.com/projectdiscovery/naabu)
- **सबडोमेन एन्यूमरेशन**: [Subfinder](https://github.com/projectdiscovery/subfinder), [Amass](https://github.com/owasp-amass/amass), [AssetFinder](https://github.com/tomnomnom/assetfinder), [Findomain](https://github.com/Findomain/Findomain)
- **HTTP प्रोबिंग**: [httpx](https://github.com/projectdiscovery/httpx), [httprobe](https://github.com/tomnomnom/httprobe)
- **विज़ुअल निरीक्षण**: [Aquatone](https://github.com/michenriksen/aquatone), [EyeWitness](https://github.com/FortyNorthSecurity/EyeWitness)
- **OSINT फ्रेमवर्क्स**: [theHarvester](https://github.com/laramies/theHarvester), [Recon-ng](https://github.com/lanmaster53/recon-ng), [SpiderFoot](https://github.com/smicallef/spiderfoot), [Maltego](https://github.com/paterva/maltego)```
python3 insect.py -e php,html,js -u https://target -w /path/to/wordlist
dirsearch और insect आपको CTRL+C के साथ स्कैनिंग प्रगति को रोकने की अनुमति देते हैं, यहाँ से आप प्रगति को सहेज सकते हैं (और बाद में जारी रख सकते हैं), वर्तमान लक्ष्य को छोड़ सकते हैं, या वर्तमान उप-निर्देशिका को छोड़ सकते हैं।
admin/ मिलता है, तो यह admin/* पर ब्रूट-फोर्स करेगा (* वह स्थान है जहाँ यह ब्रूट-फोर्स करता है)। इस सुविधा को सक्षम करने के लिए, -r (या --recursive) फ़्लैग का उपयोग करें।```
python3 insect.py -e php,html,js -u https://target -r- आप अधिकतम रिकर्शन गहराई को **--recursion-depth** के साथ सेट कर सकते हैं, और रिकर्शन करने के लिए स्टेटस कोड को **--recursion-status** के साथ सेट कर सकते हैं।```
python3 insect.py -e php,html,js -u https://target -r --recursion-depth 3 --recursion-status 200-399
दो और विकल्प हैं: --force-recursive और --deep-recursive
/ पर समाप्त होते हैंa/b/c => a/, a/b/ जोड़ें)यदि कुछ उप-निर्देशिकाएँ (sub-directories) हैं जिन्हें आप पुनरावर्ती रूप से ब्रूट-फोर्स नहीं करना चाहते हैं, तो --exclude-subdirs का उपयोग करें```
python3 insect.py -e php,html,js -u https://target -r --exclude-subdirs image/,media/,css/
### थ्रेड्स
थ्रेड संख्या (**-t | --threads**) अलग-अलग ब्रूट फोर्स प्रक्रियाओं की संख्या को दर्शाती है। और इसलिए थ्रेड संख्या जितनी बड़ी होगी, dirsearch या insect उतनी ही तेज़ चलेगा। डिफ़ॉल्ट रूप से, थ्रेड्स की संख्या 25 है, लेकिन यदि आप प्रगति को तेज़ करना चाहते हैं तो आप इसे बढ़ा सकते हैं।
इसके बावजूद, गति अभी भी सर्वर की प्रतिक्रिया समय पर बहुत अधिक निर्भर करती है। और एक चेतावनी के रूप में, हम आपको सलाह देते हैं कि थ्रेड्स की संख्या बहुत बड़ी न रखें क्योंकि यह DoS (Denial of Service) का कारण बन सकती है।```
python3 insect.py -e php,htm,js,bak,zip,tgz,txt -u https://target -t 20
शब्द सूची:```
tools
उपसर्गों के साथ उत्पन्न:``` tools .tools admintools _tools
- **--suffixes**: सभी प्रविष्टियों में कस्टम प्रत्यय जोड़ें```
python3 insect.py -e php -u https://target --suffixes ~
शब्दसूची:``` index.php internal
प्रत्ययों के साथ उत्पन्न:```
index.php
internal
index.php~
internal~
db/ फ़ोल्डर के अंदर, कई "ब्लैकलिस्ट फ़ाइलें" हैं। यदि उन फ़ाइलों में मौजूद पथों की स्थिति फ़ाइलनाम में उल्लिखित स्थिति के समान होती है, तो उन्हें स्कैन परिणाम से फ़िल्टर कर दिया जाएगा।
उदाहरण: यदि आप admin.php को db/403_blacklist.txt में जोड़ते हैं, तो जब भी आप ऐसा स्कैन करते हैं जिसमें admin.php 403 लौटाता है, तो इसे परिणाम से फ़िल्टर कर दिया जाएगा।
अनुमत और गैर-अनुमत प्रतिक्रिया स्थिति-कोड चुनने के लिए -i | --include-status और -x | --exclude-status का उपयोग करें।
अधिक उन्नत फ़िल्टर के लिए: --exclude-sizes, --exclude-texts, --exclude-regexps, --exclude-redirects और --exclude-response``` python3 insect.py -e php,html,js -u https://target --exclude-sizes 1B,243KB
## मुख्य विशेषताएँ
## मुख्य विशेषताएँ```
python3 insect.py -e php,html,js -u https://target --exclude-texts "403 Forbidden"
The input chunk is empty — no content was provided to translate. Please supply the actual chunk 47 text so I can translate it.``` python3 insect.py -e php,html,js -u https://target --exclude-regexps "^Error$"
- उपयोगकर्ता-मित्रता: खोज इंटरफ़ेस सहज और उपयोग में आसान बनाया गया है, जिसमें स्कैन शुरू करने और प्रबंधित करने के लिए स्पष्ट नियंत्रण हैं।
- व्यापकता: खोजों को विभिन्न प्रकार के प्रौद्योगिकी स्टैक की तलाश के लिए कॉन्फ़िगर किया जा सकता है, जिसमें कंटेनर, SSL प्रमाणपत्र और दस्तावेज़ भंडारण शामिल हैं, जिससे स्रोत कोड का गहन स्कैन संभव होता है।
- गहन विश्लेषण: एक बार खोज पूरी हो जाने पर, परिणाम स्पष्ट और विस्तृत तरीके से प्रदर्शित होते हैं, जिससे संवेदनशील जानकारी की आसान पहचान होती है।
- गोपनीयता: सभी ऑपरेशन स्थानीय रूप से किए जाते हैं, जिससे यह सुनिश्चित होता है कि संवेदनशील डेटा कभी भी उपयोगकर्ता के डिवाइस से बाहर नहीं जाता।
## Disclaimer
Trufflehog सुरक्षा अनुसंधान और एथिकल हैकिंग के लिए एक उपकरण है। Do के डेवलपर्स```
python3 insect.py -e php,html,js -u https://target --exclude-redirects "https://(.*).okta.com/*"
I don't see any content to translate. The input section is empty. Please provide the Markdown content for chunk 51 of 91.``` python3 insect.py -e php,html,js -u https://target --exclude-response /error.html
----
### कच्चा अनुरोध
dirsearch या insect आपको किसी फ़ाइल से कच्चा अनुरोध आयात करने की अनुमति देते हैं। सामग्री कुछ इस प्रकार दिखेगी:```http
GET /admin HTTP/1.1
Host: admin.example.com
Cache-Control: max-age=0
Accept: */*
चूँकि dirsearch या insect के लिए यह जानने का कोई तरीका नहीं है कि URI स्कीम क्या है, आपको इसे --scheme फ़्लैग का उपयोग करके सेट करना होगा। डिफ़ॉल्ट रूप से, dirsearch और insect स्वचालित रूप से स्कीम का पता लगाते हैं।
समर्थित वर्डलिस्ट प्रारूप: अपरकेस, लोअरकेस, कैपिटलाइज़ेशन
admin index.html
#### अपरकेस:```
ADMIN
INDEX.HTML
Admin Index.html
### एक्सटेंशन बहिष्कृत करें
**-X | --exclude-extensions** का उपयोग एक एक्सटेंशन सूची के साथ करने पर वर्डलिस्ट में मौजूद उन सभी पथों को हटा देगा जिनमें दिए गए एक्सटेंशन शामिल हैं।
`python3 insect.py -u https://target -X jsp`
वर्डलिस्ट:```
admin.php
test.jsp
कोई इनपुट सामग्री प्रदान नहीं की गई है, इसलिए अनुवाद के लिए कुछ नहीं है।``` admin.php
### उप-निर्देशिकाएँ स्कैन करें
- किसी URL से, आप **--subdirs** के साथ उप-निर्देशिकाओं की सूची स्कैन कर सकते हैं।```
python3 insect.py -e php,html,js -u https://target --subdirs /,admin/,folder/
dirsearch और insect SOCKS और HTTP प्रॉक्सी का समर्थन करते हैं, जिसमें दो विकल्प होते हैं: एक प्रॉक्सी सर्वर या प्रॉक्सी सर्वरों की सूची।``` python3 insect.py -e php,html,js -u https://target --proxy 127.0.0.1:8080
The input content is empty — no text was provided to translate. Please provide the Markdown content for chunk 69/91.```
python3 insect.py -e php,html,js -u https://target --proxy socks5://10.10.0.1:8080
No input content was provided in the "INPUT:" section, so there is nothing to translate.``` python3 insect.py -e php,html,js -u https://target --proxylist proxyservers.txt
----
### रिपोर्ट्स
समर्थित रिपोर्ट प्रारूप: **simple**, **plain**, **json**, **xml**, **md**, **csv**, **html**, **sqlite**```
python3 insect.py -e php -l URLs.txt --format plain -o report.txt
इनपुट चंक खाली है — अनुवाद करने हेतु कोई सामग्री प्रदान नहीं की गई है।``` python3 insect.py -e php -u https://target --format html -o target.json
----
### अधिक उदाहरण कमांड```
cat urls.txt | python3 insect.py --stdin
.``` python3 insect.py -u https://target --max-time 360
और डेटा फ़ील्ड में डेटा:
{"collectionID":"h_sensor","deviceID":"h_sensor","timestamp":"2024-02-04T11:41:30+01:00","data":"{\"temperature\":17.149999618530273,\"humidity\":77.30000305175781}"}
एक बार जब हम ``weblogin`` रूट का अनुरोध करते हैं, तो हम ईमेल और पासवर्ड भेज सकते हैं:```
python3 insect.py -u https://target --auth admin:pass --auth-type basic
python3 insect.py -u https://target --header-list rate-limit-bypasses.txt
**और भी बहुत कुछ खोजने को है, इसे स्वयं आज़माएँ!**
Docker समर्थन
---------------
### Docker Linux इंस्टॉल करें
Docker इंस्टॉल करें```sh
curl -fsSL https://get.docker.com | bash
डॉकर का उपयोग करने के लिए आपको सुपरयूज़र अधिकार की आवश्यकता है
इमेज बनाने के लिए```sh docker build -t "dirsearch:v0.4.2" . docker build -t "insect:latest" .
> **dirsearch** इमेज का नाम है और **v0.4.2** संस्करण है
> **insect** इमेज का नाम है और **latest** संस्करण है
### dirsearch या insect का उपयोग करना
उपयोग के लिए```sh
docker run -it --rm "insect:latest" -u target -e php,html,js,zip
--proxy-list के साथ प्रॉक्सी को रैंडमाइज़ करके इसे बायपास करने में संकोच न करें।--suffixes ~ और --prefixes . आज़माएँ।--remove-extensions और --suffixes / को क्यों न संयोजित करें!--cidr, -F, -q का मिश्रण CIDR के साथ ब्रूट-फोर्स करते समय अधिकांश शोर और गलत नकारात्मक परिणामों को कम करेगा।--skip-on-status 429 उसे छोड़ने में आपकी मदद करेगा।GET के बजाय HEAD HTTP विधि का उपयोग करना चाहें।--timeout 3 --retries 1हमें इस उपकरण को बेहतर बनाने के लिए दुनिया भर के कई लोगों से बहुत सहायता मिल रही है। अब तक हमारी मदद करने वाले सभी लोगों को बहुत धन्यवाद! वे कौन हैं, यह जानने के लिए CONTRIBUTORS.md देखें।
Copyright (C) Mauro Soria ([email protected])
Development for 2022 (C) nu11secur1ty (https://nu11secur1ty.com/)
License: GNU General Public License, version 2