本帖最后由 xyhqqaa 于 2012-3-13 14:02 编辑
登陆一内部HTTPS网页进入控制台。。。新手。。刚看到关于介绍使用POST,get来获取信息。就想照别人的方法按部就班看能不能成功。。可是在登陆就遇到个问题。。。。按别人的方法去看头信息(Request-Line) POST /cgi-bin/login.cgi HTTP/1.1
Accept image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, */*
Accept-Encoding gzip, deflate
Accept-Language zh-cn
Cache-Control no-cache
Connection Keep-Alive
Content-Length 570
Content-Type application/x-www-form-urlencoded
Cookie sinfor_session_id=1328767988
Host 192.168.0.252
Referer https://192.168.0.252/cgi-bin/login.cgi?ui=web&opr=show
User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET4.0C)
post数据信息如下in 3
password ******** 17
pwd d31b394c8d0709b2ef2a53a3dd2747092 37
opr in 6
ver M5100--AC-1.7.0-Mline<br>fwserver AC-1.70<br>contchk AC-1.70<br>sslctl AC-1.70<br>authd AC-1.70<br>httpd AC-1.70<br>mailproxy AC-1.70<br>arpguardctl AC-1.70<br>flux AC-1.70<br>Dlan 2.52<br>Build 2007-11-12<br>ReBuild 2007.12.26<br>Updated 09.11.04-21:53:31<br>SP1 build:2007-11-26/11:50:28<br>FLUX 080110:2008-01-21/10:53:44<br> 479
user usermanager 16
ui web 6
按别人的写法改了下$xmlhttp=ObjCreate("Microsoft.XMLHTTP")
$poststr="user=usermanager&pwd=d31b394c8d0709b2ef2a53a3dd2747092";这边不知道怎么查看。。看了几个大哥的帖子。。有点迷茫
$xmlhttp.open("post","https://192.168.0.252/cgi-bin/login.cgi?ui=web&opr=show",false)
$xmlhttp.setRequestHeader("Cache-Control", "no-cache")
$xmlhttp.setRequestHeader("Connection", "Keep-Alive")
$xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
$xmlhttp.setRequestHeader("Referer","https://192.168.0.252/cgi-bin/login.cgi?ui=web&opr=show")
$xmlhttp.setRequestHeader("Cookie","sinfor_session_id=1328767988")
$xmlhttp.send($poststr)
ShellExecute("https://192.168.0.252")
由于对POST跟get的使用处于最低级。。所以求解。。。。现在只会照别人的方法按部就班。。。但不知道我的想法是错还是对 |