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

resources/sids.txt Path is Not Relative #64

Open
lpinilla opened this issue Oct 1, 2023 · 0 comments
Open

resources/sids.txt Path is Not Relative #64

lpinilla opened this issue Oct 1, 2023 · 0 comments

Comments

@lpinilla
Copy link

lpinilla commented Oct 1, 2023

Hi!

I was testing out the tool and found a bug. I cloned the tool on a separate folder and then when accessing it from another directory by running /opt/odat/odat.py all -s $IP I get the following error:

[+] Checking if target $IP:1521 is well configured for a connection...
[+] According to a test, the TNS listener $IP:1521 is well configured. Continue...

[1] ($IP:1521): Is it vulnerable to TNS poisoning (CVE-2012-1675)?
[+] Impossible to know if target is vulnerable to a remote TNS poisoning because SID is not given.

[2] ($IP:1521): Searching valid SIDs
[2.1] Searching valid SIDs thanks to a well known SID list on the $IP:1521 server
Traceback (most recent call last):
  File "/opt/odat/odat.py", line 798, in <module>
    main()
  File "/opt/odat/odat.py", line 793, in main
    arguments.func(args)
  File "/opt/odat/odat.py", line 136, in runAllModulesOnEachHost
    runAllModules(args)
  File "/opt/odat/odat.py", line 185, in runAllModules
    validSIDsList = runSIDGuesserModule(args)
  File "/opt/odat/SIDGuesser.py", line 137, in runSIDGuesserModule
    sIDGuesser.searchKnownSIDs()
  File "/opt/odat/SIDGuesser.py", line 89, in searchKnownSIDs
    self.sids += self.__loadSIDsFromFile__()
  File "/opt/odat/SIDGuesser.py", line 52, in __loadSIDsFromFile__
    f = open(self.SIDFile)
FileNotFoundError: [Errno 2] No such file or directory: 'resources/sids.txt'

When running the script on the base folder of the repo, it works. Given that the file resources/sids.txt actually exist on the base folder, it makes me think that this path is not relative to the base folder but to the current dir of where the script is launched (pwd)

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

1 participant