mirror of
https://github.com/sslab-gatech/winnie
synced 2026-06-08 17:35:47 +00:00
More foolproofing for gen_csrss_offsets
This commit is contained in:
@@ -4,6 +4,15 @@
|
||||
# Run with python2, NOT PYTHON3!
|
||||
|
||||
import sys, os
|
||||
|
||||
if not (sys.maxsize > 2**32) and os.name == 'nt':
|
||||
print('Sorry, 32-bit python is not supported because of WOW64 redirection. Please use 64-bit python')
|
||||
raise ValueError('Unsupported python version')
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
print("Sorry, python3 isn't supported")
|
||||
raise ValueError('Unsupported python version')
|
||||
|
||||
import os.path
|
||||
from pefile import PE
|
||||
from shutil import copyfileobj
|
||||
@@ -20,6 +29,7 @@ except ImportError:
|
||||
from urllib2 import urlopen, Request, HTTPError, build_opener
|
||||
from urllib import FancyURLopener
|
||||
|
||||
|
||||
#SYM_URL = 'http://symbols.mozilla.org/firefox'
|
||||
SYM_URLS = ['http://msdl.microsoft.com/download/symbols']
|
||||
USER_AGENT = "Microsoft-Symbol-Server/6.11.0001.404"
|
||||
|
||||
Reference in New Issue
Block a user