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

ValueError: invalid literal for int() with base 10: 'aiautosumm01' #2

Closed
moonmistake opened this issue May 21, 2021 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@moonmistake
Copy link

2021-05-21 17:35:06,100 - root - INFO - ------翻译完成
2021-05-21 17:35:06,106 - root - INFO - 开始生成漏洞排序报告
2021-05-21 17:35:06,106 - root - INFO - ---开始处理数据
Traceback (most recent call last):
File "D:\tools\NessusToReport\main.py", line 46, in
h.run()
File "D:\tools\NessusToReport\modle\handle.py", line 95, in run
func_type_runself.docxtype
File "D:\tools\NessusToReport\modle\handle.py", line 75, in run_loops
DataLoops(self.LOOPHOLES).run()
File "D:\tools\NessusToReport\modle\data\loops.py", line 101, in run
self._sort_and_gen_date()
File "D:\tools\NessusToReport\modle\data\loops.py", line 89, in _sort_and_gen_date
loop_host_ports[plugin_id] = dict(sorted(host_ports.items(), key=key))
File "D:\tools\NessusToReport\modle\data\loops.py", line 76, in
return lambda x: IP(x[0]).int()
File "D:\tools\Python39\lib\site-packages\IPy.py", line 249, in init
(self.ip, parsedVersion) = parseAddress(ip, ipversion)
File "D:\tools\Python39\lib\site-packages\IPy.py", line 1422, in parseAddress
bytes = [int(x) for x in bytes]
File "D:\tools\Python39\lib\site-packages\IPy.py", line 1422, in
bytes = [int(x) for x in bytes]
ValueError: invalid literal for int() with base 10: 'aiautosumm01'

@Hypdncy
Copy link
Owner

Hypdncy commented May 21, 2021

loop_host_ports[plugin_id] = dict(sorted(host_ports.items(), key=key)) =>
loop_host_ports[plugin_id] = dict(sorted(host_ports.items(), key=lambda x: x[0]))

@moonmistake
Copy link
Author

神速,可以了... @Hypdncy
另外,能否增加各种列表以及饼图等功能?

@Hypdncy
Copy link
Owner

Hypdncy commented May 21, 2021

之前考虑过柱状图,饼图的实现,也有解决方案,但是目前项目上没有这种需求,你可以简单提下需求,我有时间开发下

@moonmistake
Copy link
Author

moonmistake commented May 21, 2021

简单考虑一下:
只需要生成excel表,需求2类:
按照系统名称的表头:IP,系统名称,漏洞级别,漏洞名称
按照系漏洞的表头:漏洞名称 ,IP+系统名称列表,漏洞级别
柱状图,饼图这些根据以上数据,自己生成即可,不需要程序单独写个功能
多谢

@Hypdncy Hypdncy added the bug Something isn't working label May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants