Sublist3r 报错处理

博客内容涉及一个编程错误,具体是由于Virustotal更改了其API导致请求被阻止。解决方案是更新Sublist3r源代码中的URL。错误详细信息包括DeprecationWarning和NameError,提示应当使用新的DNS查询方法并定义'unicode'。最终,通过调整URL,程序成功运行并找到42个唯一子域名。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、 Error: Virustotal probably now is blocking our requests
完成错误详情

/root/infoscaner-master/./Sublist3r-master/sublist3r.py:614: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead
  ip = Resolver.query(host, 'A')[0].to_text()
Process GoogleEnum-4:
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/root/infoscaner-master/./Sublist3r-master/sublist3r.py", line 268, in run
    domain_list = self.enumerate()
  File "/root/infoscaner-master/./Sublist3r-master/sublist3r.py", line 240, in enumerate
    if not self.check_response_errors(resp):
  File "/root/infoscaner-master/./Sublist3r-master/sublist3r.py", line 303, in check_response_errors
    if (type(resp) is str or type(resp) is unicode) and 'Our systems have detected unusual traffic' in resp:
NameError: name 'unicode' is not defined
[-] Saving results to file: ./scan_file/sublist3r.txt
[-] Total Unique Subdomains Found: 42

问题不在于发送请求,似乎virustotal完全改变了网址
https://www.virustotal.com/ui/domains/{domain}/subdomains
这个导致了这个错误
在源文件中把上面地址,改为以下地址即可
https://www.virustotal.com/gui/domain/{{dommain}}/details

评论 18
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值