(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)
What does this implement/fix? Explain your changes.
This fixes an issue with resolving IPs to hostnames using the conf.socket.gethostbyname(full_host) snippet.
Albeit i feel this task is not necessary as most hardened environments (like in OSCP & CTFs) purposely do not allow DNS resolving, users within a VPN environment would still experience this issue.
Owing to this i would like to make the following changes
1. In the input for asset to scan users should enter only IP Address or Hostname without http://
2. Comment out full_ip = conf.socket.gethostbyname(full_host) in fullscan.py
3. Change nmap {full_ip} to {full_host}
4. For nikto and dirsearch before {full_host} include http:// just to be http://{full_host}
…
Does this close any currently open issues?
Yes
…
Any relevant logs, error output, etc?
Traceback (most recent call last): File "/usr/local/bin/webmap", line 56, in <module> main() File "/usr/local/bin/webmap", line 48, in main conf.call_def(conf.full_scan) File "/home/kali/Desktop/TOOLS/WEB ATTACK/WebMap/conf/conf.py", line 80, in call_def func() File "/home/kali/Desktop/TOOLS/WEB ATTACK/WebMap/modules/fullscan.py", line 31, in full_scan full_ip = conf.socket.gethostbyname(full_host) socket.gaierror: [Errno -2] Name or service not known
…
Any other comments?
…
Where has this been tested?
Operating System: kali Linux …
Platform:Kali Linux Python 3 …
Target Platform: Ubuntu …
Python Version: Python 3 …