Unusual Event.eventid Numbers Like -2147481364 In Python Using Win32evtlog From Pywin32
I wrote a python(3.2) script to ban ips on certain events from the event logs on a Windows 2008 server and I was trying to test if it would ban ips from sql brute forcing attempts
Solution 1:
if you check it binary the function works fine, it just added 1 bit (or more, didn't really check it) that you don't need. try to put the answer through "AND" like this:
answer=event.EventID & 0x1FFFFFFF
Post a Comment for "Unusual Event.eventid Numbers Like -2147481364 In Python Using Win32evtlog From Pywin32"