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

UnboundLocalError: local variable 'links' referenced before assignment #6

Open
Darkcast opened this issue Mar 28, 2022 · 1 comment

Comments

@Darkcast
Copy link

running on Linux kali 5.16.0-kali5-amd64 #1 SMP PREEMPT Debian 5.16.14-1kali1 (2022-03-15) x86_64 GNU/Linux

ran it against a local vuln app and i got this error

        ___ ____         __       

___ ___ / () ()__ / / ____
(
-</ _ `/ / / / / _ / _ / -) /
/
/_, /////////_,/_//
/_/ ~ by @americo v1.0

Traceback (most recent call last):
File "/home/kali/Downloads/sqlifinder/sqlifinder.py", line 93, in
main()
File "/home/kali/Downloads/sqlifinder/sqlifinder.py", line 61, in main
crawled_urls = crawler.spider(f"http://{args.domain}", 10)
File "/home/kali/Downloads/sqlifinder/core/crawler.py", line 39, in spider
return links
UnboundLocalError: local variable 'links' referenced before assignment

@rafay-ah
Copy link

rafay-ah commented Sep 5, 2022

Hi, Darkcast,
The error is encountered when you enter complete URL. For example: https://github.com/rafay_ah
Whereas the code is written to work with domain names. So correct input for --domain argument will be 'github.com/rafay_ah ' instead of https://github.com/rafay_ah.

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