4elta / recon

automate the boring stuff!
GNU General Public License v3.0
7 stars 3 forks source link

[new analyzer]: recon error on file read #13

Closed ikstream closed 1 year ago

ikstream commented 1 year ago

I wanted to try the new analyzer and therefore run recon from the according branch. I have used the same venv i've been using with the "old" recon. the directory recon2 is empty so far. The same error occurs when the path to the config file is provided with -c config/recon.toml. The full Error output is appended below.

recon.py -i ../../test/logs/service_scan.xml  -o ../../test/logs/recon2
Traceback (most recent call last):
  File "/home/ikstream/tools/recon/recon.py", line 544, in <module>
    main()
  File "/home/ikstream/tools/recon/recon.py", line 537, in main
    asyncio.run(
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/ikstream/tools/recon/recon.py", line 476, in process
    SERVICES_CONFIG = toml.load(f)
                      ^^^^^^^^^^^^
  File "/home/ikstream/tools/recon/venv/lib/python3.11/site-packages/toml/decoder.py", line 156, in load
    return loads(f.read(), _dict, decoder)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ikstream/tools/recon/venv/lib/python3.11/site-packages/toml/decoder.py", line 478, in loads
    raise TomlDecodeError("What? " + group +
toml.decoder.TomlDecodeError: What? sslscan already exists?{'sslscan': {'command': '#sslscan --show-certificate --ocsp --show-sigs --xml="{result_file}.xml" {hostname}:{port} 2>&1 | tee "{result_file}.log"'}, 'sslyze': {'command': '#sslyze --json_out "{result_file}.json" {hostname}:{port} 2>&1 | tee "{result_file}.log"'}, 'testssl': {'command': 'testssl --ip one --nodns min --mapping no-openssl --warnings off --connect-timeout 60 --openssl-timeout 60 --logfile "{result_file}.log" --jsonfile "{result_file}.json" {hostname}:{port}'}} (line 232 column 1 char 9186)
4elta commented 1 year ago

thanks for bringing this up :raised_hands: