forked from ProgrammerAndHacker/lcyscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlcy.py
35 lines (35 loc) · 1.03 KB
/
lcy.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Lcy
# @Date: 2016-09-20 10:01:26
# @Last Modified by: Lcy
# @Last Modified time: 2016-09-21 11:34:31
from lib.Color import *
from lib.framework import *
import os
lcy = framework()
lcy.lbanner()
if __name__=='__main__':
try:
while True:
color.cprint("lcy",GREY,0)
cmd=raw_input('>')
cmds = lcy.formatCmd(cmd)
if(len(cmds) == 0):
continue
if cmds[0] == 'exit':
lcy.lexit()
if cmds[0] == 'banner':
lcy.lbanner()
elif cmds[0] == 'show':
lcy.lshow(cmds[1:])
elif cmds[0] == 'set':
lcy.lset(cmds[1:])
elif cmds[0] == 'exploit':
lcy.lexploit(cmds[1:])
else:
os.system(cmd)
except KeyboardInterrupt:
exit()
except Exception,e:
print e