AutoPentest-DRL icon indicating copy to clipboard operation
AutoPentest-DRL copied to clipboard

FileNotFoundError: top_info_1.json

Open ManojiLogaraj opened this issue 2 years ago • 2 comments

Hi,

When I run this AutoPentest-DRL its pointing an error on topo_proc.py code which is trying to open the top_info_1.json file.

When I check the AutoPentest-DRL.py, its triggering the topo_proc.py using os.system('python3 topo_proc.py -c ../topo-gen-config -o top_info') methods.

As per my understanding once this topo_proc.py executed, the expected output from that file is top_info. So I am not understanding how this top_info_1.json is generated.

Please help me with this.

Error: Traceback (most recent call last): File "/home/parrot/Workspace/AutoPentest-DRL/Topology_generator/topo_proc.py", line 86, in deJsonTop() File "/home/parrot/Workspace/AutoPentest-DRL/Topology_generator/topo_proc.py", line 34, in deJsonTop with open('./topology-generator/top_info_1.json', 'r') as top_file: FileNotFoundError: [Errno 2] No such file or directory: './topology-generator/c'

image

Thanks, Manoji

ManojiLogaraj avatar Aug 01 '23 17:08 ManojiLogaraj

hello,

  • how did you manage to run the previous command python2 topo-gen.py -c ../topo-gen-config -o top_info as i cannot find the topo-gen.py inside this repository? its result is then consumed by python3 topo_proc.py.
  • also the folder topology-generator is not present too and its not created i edited the code to check if its present and if not create it prior of running topo-gen.py -c ../topo-gen-config -o top_info and python3 topo_proc.py

MRColorR avatar Nov 13 '23 17:11 MRColorR

Hi @MRColorR ,

There is a repository for generating tropology.

Repo link : https://github.com/crond-jaist/topology-generator.

Thanks, Manoji

ManojiLogaraj avatar Nov 13 '23 17:11 ManojiLogaraj