Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error FileNotFoundError: [Errno 2] No such file or directory: '/root/.das/db/main.json' #4

Closed
neginsadeghi opened this issue Jun 12, 2022 · 1 comment

Comments

@neginsadeghi
Copy link

I just cloned the repo and run the following commands :

/tmp/DivideAndScan# alias das='docker run -it --rm --name das -v ~/.das:/root/.das -v pwd:/app divideandscan:latest'

/tmp/DivideAndScan# das scan -hosts 185.165.116.100-185.165.116.200 -oA report1

and here is the error that I faced :

Traceback (most recent call last):
File "/usr/local/bin/das", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/das/divideandscan.py", line 158, in main
sr = ScanRun(str(P), args.hosts, args.ports)
File "/usr/local/lib/python3.9/dist-packages/das/scan.py", line 35, in init
self.db = TinyDB(db_path)
File "/usr/local/lib/python3.9/dist-packages/tinydb/database.py", line 94, in init
self._storage: Storage = storage(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/tinydb/storages.py", line 102, in init
touch(path, create_dirs=create_dirs)
File "/usr/local/lib/python3.9/dist-packages/tinydb/storages.py", line 31, in touch
with open(path, 'a'):
FileNotFoundError: [Errno 2] No such file or directory: '/root/.das/db/main.json'

@snovvcrash
Copy link
Owner

Please, read the How to Use section of README. You have to fill the DB with add module before proceeding to scan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants