jorhelp / Ingram

网络摄像头漏洞扫描工具 | Webcam vulnerability scanning tool
GNU General Public License v3.0
1.7k stars 273 forks source link

无法运行,有“ValueError: negative shift count”错误提示 #63

Open hdy99 opened 11 months ago

hdy99 commented 11 months ago

运行错误提示: Exception in thread Thread-1 (_cal_total): Traceback (most recent call last): File "K:\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "K:\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "K:\Ingram\Ingram\data.py", line 54, in _cal_total self.add_total(net.get_ip_seg_len(strip_line)) File "K:\Ingram\Ingram\utils\net.py", line 16, in get_ip_seg_len return IPy.IP(ip_seg, make_net=True).len() File "K:\Python310\lib\site-packages\IPy.py", line 259, in init self.ip = self.ip & _prefixlenToNetmask(self._prefixlen, self._ipversion) File "K:\Python310\lib\site-packages\IPy.py", line 1632, in _prefixlenToNetmask return ((2<<prefixlen-1)-1) << (_ipVersionToLen(version) - prefixlen) ValueError: negative shift count error occurred, see the log.txt for more information.

newplaydan commented 11 months ago

我有同样的错误显示,IP无法跑完,烦请修复

a5613273 commented 1 week ago

一样,我也是这样报错