-
Notifications
You must be signed in to change notification settings - Fork 19
/
MalAnalyzer.py
44 lines (27 loc) · 1005 Bytes
/
MalAnalyzer.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
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Malcode Analysis System
# version = 0.1
from optparse import OptionParser
from core.basic_analyze import BasicAnalyzer
from core.static_analyze import StaticAnalyzer
from core.dynamic_analyze import DynamicAnalyzer
from core.logger import Logger
#from core.output import
def analyze(filepath):
basic_analyzer = BasicAnalyzer()
static_analyzer = StaticAnalyzer()
dynamic_analyzer = DynamicAnalyzer()
#outputter = Outputter()
def main():
usage = "usage: %prog [options] filepath"
parser = OptionParser(version = "%prog 1.0")
parser.add_option("-f", "--file", dest="filepath", help="Malcode filepath")
#parser.add_option("-m", "--mode", dest="mode", help="Malcode Analyze mode: basic/static/dynamic/all",default='all')
(options, args) = parser.parse_args()
if options.filepath:
filepath = options.filepath
if options.mode:
mode = options.mode
if __name__ == '__main__':
main()