-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy pathEasyPen.py
55 lines (45 loc) · 1.75 KB
/
EasyPen.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
#!/bin/env python3
"""
EasyPen is a GUI program which helps pentesters do information gathering, vulnerability scan and exploitation.
It has more than 100 built-in scan scripts written in Python which covers most common vulnerabilities
while at the same time
it provides you some extra exploitation tools.
You can easily write your own python script and init scan for thousands of targets.
Created By: Li JieJie https://github.com/lijiejie/EasyPen
"""
import wx
import lib.config as conf
import wx.lib.mixins.inspection
class ScannerApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
def OnInit(self):
self.InitInspection()
wx.SystemOptions.SetOption("mac.window-plain-transition", 1)
self.SetAppName("EasyPen")
conf.load_config()
conf.init_logging()
if conf.user_agreement_accepted == conf.app_ver:
from ui.frame_loading import LoadingFrame
splash = LoadingFrame()
splash.Show()
else:
from ui.frame_agreement import AgreementFrame
frame = AgreementFrame()
frame.Show()
return True
def InitLocale(self):
# do nothing if wx version is 4.2.0
ver = wx.VERSION
if ver[0] == 4 and ver[1] == 2 and ver[2] == 0 and 'wxMSW' in wx.PlatformInfo:
return
self.ResetLocale()
if 'wxMSW' in wx.PlatformInfo:
import locale
try:
lang, enc = locale.getdefaultlocale()
self._initial_locale = wx.Locale(lang, lang[:2], lang)
locale.setlocale(locale.LC_ALL, lang)
except (ValueError, locale.Error) as ex:
pass
if __name__ == '__main__':
app = ScannerApp(False)
app.MainLoop()