Monitor
hello I am interested in obtaining information from a web page which I try to access with curl
the key is the number zero 0
what parameters should I pass to additional curl to enter the 0 and click ok
The page code is
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=windows-1252">
<meta name="robots" content="noindex">
<title>IB-Lite access verification</title>
<link rel=StyleSheet type="text/css" href="style.css">
<script type="text/javascript" src="md5.js"></script>
<script language="JavaScript">
function DoHash()
{
var psw = document.getElementById('psw_id');
var hpsw = document.getElementById('hpsw_id');
var nonce = hpsw.value;
hpsw.value = MD5(nonce.concat(psw.value));
psw.value = '';
return true;
}
</script>
</head>
<body class=w_b>
<div class="main">
<!-- 0 71 0 16 67 0 19 68 0#--><div class="sb_d">
<table class="sb_t" align="center">
<tr>
<td class="sb_l"><img src="logo.gif"></td>
<td class="sb_1">OT17-59</td>
<td class="sb_2">15:29:20</td>
<td class="sb_3">17/05/18</td>
</tr>
</table>
</div>
<div class="tb_d">
<table class="tb_t" cellspacing="0">
<tr>
<td class="tb_st"><img src="scada.gif"><a href="control.htm" class="tb_sa">Scada</a></td>
<td class="tb_ut"><img src="meas.gif"><a href="values.htm" class="tb_ua">Measurement</a></td>
<td class="tb_ut"><img src="setp.gif"><a href="params.htm" class="tb_ua">Setpoints</a></td>
<td class="tb_ut"><img src="hist.gif"><a href="history.htm" class="tb_ua">History</a></td>
<td class="tb_uit"><a href="settings.htm" class="tb_usa"></a></td>
<td class="tb_uit"><a href="password.htm" class="tb_p0a"></a></td>
<td class="tb_uit"><a href="refresh.htm" class="tb_rea"></a></td>
<td class="tb_uit"><a href="exit.htm" class="tb_exa"></a></td>
</tr>
</table>
</div>
<div class="content">
<form action="CONTROL.HTM" name="" method="post" onSubmit="DoHash();">
<div style="position:absolute;top:40px;left:40px;width:500px;height:140px" class="frame">
<table class="w_tb"><tr><td>
<table width="90%" class="w_t">
<tr class="w_r"><td class="w_n">Access code</td><td width="140" class="w_v"><input id="psw_id" type="password" maxLength="15" size="20" name="q" value=""></td></tr>
<tr class="w_lr"><td class="w_ln"> </td><td></td></tr>
</table>
<table width="90%" class="w_btn">
<tr><td><input type="submit" value="" name="q" class="w_bok"></td></tr>
</table>
</td></tr></table>
<input id="hpsw_id" type="hidden" name="pA" value="4AF846AB45C91F93">
</div>
</form>
</div>
</div>
</body>
</html>
Thanks
|