codingo / Reconnoitre

A security tool for multithreaded information gathering and service enumeration whilst building directory structures to store results, along with writing out recommendations for further testing.
GNU General Public License v3.0
2.1k stars 457 forks source link

Services scan not working #92

Closed amlamarra closed 5 years ago

amlamarra commented 5 years ago

I'd love to use this tool, but it's simply not working for me. I'm using a current Kali VM, installed Reconnoitre as described, but a services scan won't work. I get the following:

root ~/VulnHub # reconnoitre -t 10.10.1.13 -o /root/VulnHub/ --services
  __
|\"\"\"\-=  RECONNOITRE
(____)      An OSCP scanner by @codingo_

[+] Testing for required utilities on your system.
[#] Performing service scans
[*] Loaded single target: 10.10.1.13
[+] Creating directory structure for 10.10.1.13
   [>] Creating scans directory at: /root/VulnHub/10.10.1.13/scans
   [>] Creating exploit directory at: /root/VulnHub/10.10.1.13/exploit
   [>] Creating loot directory at: /root/VulnHub/10.10.1.13/loot
   [>] Creating proof file at: /root/VulnHub/10.10.1.13/proof.txt
[+] Starting quick nmap scan for 10.10.1.13
[+] Writing findings for 10.10.1.13
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/dist-packages/Reconnoitre-1.0-py2.7.egg/Reconnoitre/lib/service_scan.py", line 25, in nmap_scan
    write_recommendations(quickresults, ip_address, output_directory)
  File "/usr/local/lib/python2.7/dist-packages/Reconnoitre-1.0-py2.7.egg/Reconnoitre/lib/file_helper.py", line 103, in write_recommendations
    with open(os.path.join(__location__, "config.json"), "r") as config:
IOError: [Errno 20] Not a directory: '/usr/local/lib/python2.7/dist-packages/Reconnoitre-1.0-py2.7.egg/Reconnoitre/lib/config.json'

root ~/VulnHub # file /usr/local/lib/python2.7/dist-packages/Reconnoitre-1.0-py2.7.egg 
/usr/local/lib/python2.7/dist-packages/Reconnoitre-1.0-py2.7.egg: Zip archive data, at least v2.0 to extract
codingo commented 5 years ago

It will be a few days until I can get to this, but just touching base to let you know it won't be ignored.

amlamarra commented 5 years ago

No worries. I was just checking out your tool since I'm starting OSCP soon.

codingo commented 5 years ago

Could you update to the latest version and test this again? I believe this was due to an earlier but I resolved with the way the package was installed.