forked from kim-do-hyeon/volatility-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
111 lines (87 loc) · 2.54 KB
/
index.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
from flask import Flask
from flask import render_template
app = Flask(__name__)
import sqlite3
conn = sqlite3.connect("analyze.db")
cur = conn.cursor()
cur.execute('select * from pslist')
pslist = cur.fetchall()
cur.execute('select * from pstree')
pstree = cur.fetchall()
cur.execute('select * from psscan')
psscan = cur.fetchall()
cur.execute('select * from dlllist')
dlllist = cur.fetchall()
cur.execute('select * from dlldump')
dlldump = cur.fetchall()
cur.execute('select * from handles')
handles = cur.fetchall()
cur.execute('select * from registry_certificates')
certificates = cur.fetchall()
cur.execute('select * from registry_printkey')
printkey = cur.fetchall()
cur.execute('select * from registry_userassist')
userassist = cur.fetchall()
conn.close()
@app.route('/')
def index():
return render_template(
'index.html',
pslist = pslist
)
@app.route('/pslist')
def process_list():
return render_template(
'/plugin/pslist.html',
pslist = pslist
)
@app.route('/psscan')
def process_scan():
return render_template(
'/plugin/psscan.html',
psscan = psscan
)
@app.route('/pstree')
def process_tree():
return render_template(
'/plugin/pstree.html',
pstree = pstree
)
@app.route('/dlllist')
def dll_list():
return render_template(
'/plugin/dlllist.html',
dlllist = dlllist
)
@app.route('/dlldump')
def dll_dump():
return render_template(
'/plugin/dlldump.html',
dlldump = dlldump
)
@app.route('/handles')
def handles_info():
return render_template(
'/plugin/handles.html',
handles = handles
)
@app.route('/registry_certificates')
def certificates_info():
return render_template(
'/plugin/registry_certificates.html',
certificates = certificates
)
@app.route('/registry_printkey')
def printkey_info():
return render_template(
'/plugin/registry_printkey.html',
printkey = printkey
)
@app.route('/registry_userassist')
def userassist_info():
return render_template(
'/plugin/registry_userassist.html',
userassist = userassist
)
if __name__ == '__main__':
app.run(host='0.0.0.0')