-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhook.py
More file actions
33 lines (32 loc) · 679 Bytes
/
hook.py
File metadata and controls
33 lines (32 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
__VERSION__ = '2.0'
__REV__ = filter(str.isdigit, '$Revision: 635 $')
__IMM__ = '1.8'
__DEBUGGERAPP__ = ''
arch = 32
win7mode = False
# try:
# import debugger
# except:
# pass
try:
import immlib as dbglib
from immlib import LogBpHook
__DEBUGGERAPP__ = "Immunity Debugger"
except:
try:
import pykd
import windbglib as dbglib
from windbglib import LogBpHook
dbglib.checkVersion()
arch = dbglib.getArchitecture()
__DEBUGGERAPP__ = "WinDBG"
except SystemExit:
print("-Exit.")
import sys
sys.exit(1)
except Exception:
#import traceback
print("Do not run this script outside of a debugger !")
#print traceback.format_exc()
import sys
sys.exit(1)