Th0h0 / autossrf

Smart context-based SSRF vulnerability scanner.
Other
346 stars 41 forks source link

Getting FileNotFoundError #2

Open HeshamHBK opened 1 year ago

HeshamHBK commented 1 year ago

Hi guys,

I did all the steps for installation but I still get the following error:

Traceback (most recent call last): File "autossrf.py", line 11, in os.chdir(currentPath) FileNotFoundError: [Errno 2] No such file or directory: ''

Please help!

Th0h0 commented 1 year ago

currentPath consists of autossrf.py's path. It's quite weird that it's not recognized. Could you paste the full error? No such file or directory: "...."?

HeshamHBK commented 1 year ago

what a wrote above is the full error.

I Typed: python3 autossrf.py -h OUTPUT:

Traceback (most recent call last): File "autossrf.py", line 11, in os.chdir(currentPath) FileNotFoundError: [Errno 2] No such file or directory: ''

fernstedt commented 1 year ago

Its been 6 months,

still the same error

rbcrack commented 1 year ago

If you still have problem, do this

`#execPath = os.getcwd()

currentPath = os.path.dirname(file)

os.chdir(currentPath)`

rpelace it with this

`execPath = os.getcwd() currentPath = os.path.dirname(file) if file else None

if currentPath: os.chdir(currentPath)`