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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
<html>
<head>
<script language="JavaScript">
function random_cookie()
{
Random_value=Math.floor(Math.random()*1000000000000000);
document.cookie="AGID" + "=" + Random_value
CookieValue=document.cookie
start=CookieValue.indexOf("=",0)
endof=CookieValue.length
CookieValue=CookieValue.substring(start+1,endof)
if (CookieValue.length!=15)
{
random_cookie();
}
else
{
document.login_form.f_CookieValue.value=CookieValue;//get cookie
}
}
function check(flag)
{
pwd = 'admin';
name = 'admin';
document.CSViewer1.SetID(name);
document.CSViewer1.SetPwd(pwd);
document.login_form.f_LOGIN.value=document.CSViewer1.encode();
random_cookie();
// document.login_form.submit();
// return;
}
function GetCookieValue()
{
var CookieValue,startof,endof;
CookieValue=document.cookie;
startof=CookieValue.indexOf("=",0);
endof=CookieValue.length;
CookieValue=CookieValue.substring(startof+1,endof) + "f";
return CookieValue;
}
function start(ddns,pppoe,control,stream)
{
check(1);
//document.CSViewer1.SetID('admin');
//document.CSViewer1.SetPwd('admin');
document.CSViewer1.SetBasePortNumber(5000);
document.CSViewer1.SetStreamPortNumber(5001);
document.CSViewer1.SetHttpPortNumber(80);
document.CSViewer1.SetRemoteIP('192.168.1.10');
CookieValue=GetCookieValue();
CookieValue=CookieValue.substring(0,CookieValue.length-1);
document.CSViewer1.SetClientCookie(CookieValue);
// str = form1.version.value.substr(0,14);
document.CSViewer1.SetFirmwareVer('1.71.0104.2007');
document.CSViewer1.SetModelID('1200')
document.CSViewer1.ViewerOpen();
// document.CSViewer1.ZoomInStop();
// document.CSViewer1.AudioStart();
}
function leave()
{
document.CSViewer1.ViewerClose();
}
// function AVIPath()
// {
// var str;
// str = document.CSViewer1.GetAVIPath();
// I4.document.form.file_path.value = str;
// }
</script>
</head>
<body style="background-color: rgb(198, 203, 207);" leftmargin="0"
topmargin="0" onload="javascript:start();"
onunload="javascript:leave();">
<br>
<object classid="clsid:EFFDEEEC-F9E1-4461-91D2-DAEB8CC595F1"
id="CSViewer1"
codebase="http://192.168.1.10:80/CSViewer.cab#version=2,13,1219,2006"
height="240" width="320"> </object>
<form method="post" action="/goform/formLogin" target="_top"
name="login_form"><input name="f_CookieValue" size="23" type="hidden"><input
name="f_LOGIN" size="34" type="hidden"></form>
<br>
<br>
</body>
</html> |
Partager