Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

UnboundLocalError: local variable 'lmsid' referenced before assignment #32

Open
galaris opened this issue Jun 1, 2018 · 2 comments
Open

Comments

@galaris
Copy link

galaris commented Jun 1, 2018

C:\Python>python.exe windows-exploit-suggester.py -i systeminfo_result.txt -d 2018-06-01-mssb.xls
[] initiating winsploit version 3.3...
[
] database file detected as xls or xlsx based on extension
[] attempting to read from the systeminfo input file
[+] systeminfo input file read successfully (utf-8)
[
] querying database file for potential vulnerabilities
[] comparing the 203 hotfix(es) against the 266 potential bulletins(s) with a database of 137 known exploits
[
] there are now 111 remaining vulns
[+] [E] exploitdb PoC, [M] Metasploit module, [] missing bulletin
[+] windows version identified as 'Windows 2012 R2 64-bit'
[
]
Traceback (most recent call last):
File "windows-exploit-suggester.py", line 1639, in
main()
File "windows-exploit-suggester.py", line 451, in main
elif ARGS.systeminfo or ARGS.ostext: run(database)
File "windows-exploit-suggester.py", line 847, in run
if not ARGS.duplicates: alerted.add(lmsid)
UnboundLocalError: local variable 'lmsid' referenced before assignment

@sammbertram
Copy link
Contributor

Do you mind posting a redacted version of the systeminfo output? I just ran it against the 2018-06-02 database and it works fine for me.

@nightmare-wolf
Copy link

I am just using this python script and I am having the same issue.
Any help please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants