
Nginxpwner सामान्य Nginx मिसकॉन्फ़िगरेशन और कमजोरियों की खोज के लिए एक सरल टूल है।

Nginxpwner एक सरल उपकरण है जो सामान्य Nginx गलत कॉन्फ़िगरेशन और कमजोरियों की जाँच करता है।
cd /opt
git clone https://github.com/stark0de/nginxpwner
cd nginxpwner
chmod +x install.sh
./install.sh
git clone https://github.com/stark0de/nginxpwner
cd nginxpwner
sudo docker build -t nginxpwner:latest .
इमेज चलाएँ
sudo docker run -it nginxpwner:latest /bin/bash
Target tab in Burp, select host, right click, copy all URLs in this host, copy to a file
cat urllist | unfurl paths | cut -d"/" -f2-3 | sort -u > /tmp/pathlist
Or get the list of paths you already discovered in the application in some other way. Note: the paths should not start with /
Finally:
python3 nginxpwner.py https://example.com /tmp/pathlist
टूल कुछ परीक्षण करने के लिए प्रतिक्रिया में Server हेडर का उपयोग करता है। कुछ अन्य CMS आदि हैं जो Nginx पर बने हैं जैसे Centminmod, OpenResty, Pantheon या Tengine, जो वह हेडर नहीं लौटाते। उस स्थिति में कृपया nginx-pwner-no-server-header.py का उपयोग उसी पैरामीटर के साथ करें जैसे दूसरी स्क्रिप्ट।
इसके अलावा, एक्सप्लॉइट खोज को सही ढंग से चलाने के लिए आपको समय-समय पर Kali में searchsploit -u करना चाहिए।
टूल वेब कैश पॉइज़निंग/डिसेप्शन कमजोरियों या रिक्वेस्ट स्मगलिंग की जाँच नहीं करता है, आपको उन कमजोरियों के लिए विशिष्ट उपकरणों से परीक्षण करना चाहिए। NginxPwner मुख्य रूप से उन गलत कॉन्फ़िगरेशन पर केंद्रित है जो डेवलपर्स ने अनजाने में nginx.conf में पेश किए हों।
shibli2700 को उनके शानदार टूल Kyubi https://github.com/shibli2700/Kyubi के लिए और gobuster के सभी योगदानकर्ताओं को श्रेय। Detectify को भी श्रेय (जिसने वास्तव में NGINX में इनमें से कई गलत कॉन्फ़िगरेशन की खोज की)।