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

在字典的目录扫不出来,payloads.current_payload是全局变量 #89

Open
timeflykai opened this issue Aug 9, 2024 · 1 comment

Comments

@timeflykai
Copy link

/lib/controller/bruter.py文件中的worker函数存在这一句代码:payloads.current_payload = tasks.all_task.get() ,但是payloads是全局变量,这会导致多个协程在调用work函数发送request请求时的url变量被覆盖,导致很多字典中的路径并没有被检查。
修改方式:
改为局部变量就好
原先的 payloads.current_payload = tasks.all_task.get()
修改后 current_payload=tasks.all_task.get()

同时修改request请求中的url
原先的 response = requests.request(conf.request_method, payloads.current_payload, headers=headers, timeout=conf.request_timeout, verify=False, allow_redirects=conf.redirection_302, proxies=conf.proxy_server)
修改后 response = requests.request(conf.request_method, current_payload, headers=headers, timeout=conf.request_timeout, verify=False, allow_redirects=conf.redirection_302, proxies=conf.proxy_server)

@timeflykai
Copy link
Author

这个问题在设置conf.request_delay时会大幅度出现,没设置这个参数影响不大

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