(la suite)
for ( i = 0; i < len; i++ ) {
if ( val.substring(i,i+1).charCodeAt(0) < 255 ) {
// hack to eliminate the rest of unicode from this
if (isUnsafe(val.substring(i,i+1)) == false)
newStr = newStr + val.substring(i,i+1);
else
newStr = newStr + convert(val.substring(i,i+1));
} else {
// woopsie! restore.
//alert ("Found a non-ISO-8859-1 character at position: " + (i+1) + ",\nPlease eliminate before continuing.");
newStr = original;
// short-circuit the loop and exit
i = len;
}
}
return newStr;
}
function checkForm(){
with ( document.forms[0] ){
var temp = password.value;
if (temp.length < 1){
alert (aye_msg(password_input_str));
return 0;
}
else{
//password.value = encodeUrl(password.value);
Set_Cookie( 'username', username.value, '1', '/');
Set_Cookie( 'timeout', passwdInfo[0].timeout, '1', '/');
if(captchaEnbl == '1') {
var loc= 'login.cgi?cli=' + 'access login encrypted ' + hex_md5('username '+username.value+' passwor
d '+password.value)+' authcode '+ authcode.value + '$';
}else{
var loc= 'login.cgi?cli=' + 'access login encrypted ' + hex_md5('username '+username.value+' passwor
d '+password.value) + '$';
}
var code = 'location=\'' + loc + '\'';
ayeSubmit(code);
}
}
}
function btnRegenerate()
{
with ( document.forms[0] ){
document.getElementById("captcha").src = "images/captcha.bmp?" + regen_count++;
}
}
function stEnter(evt){
var keynum
if(window.event) // IE
keynum = evt.keyCode
else if(evt.which) // Netscape/Firefox/Opera
keynum = evt.which
if (keynum==13){
checkForm();
}
}
// -->
</script>
</head>
<BODY onload=frmLoad()>
<body onload="javascript:document.frmLogin.password.focus();">
<BLOCKQUOTE>
<form focus="password" name="frmLogin" method="POST" action="login.cgi">
<style>
div.overflow
{
overflow: auto;
width: 660px;
}
</style>
<DIV align="center" style="display: hidden" id="tblmain">
<TABLE cellSpacing=0 width="800">
<TR>
<TD>
<TABLE id=header_container width="800">
<TR>
<script language="javascript">
document.writeln("<TD align=left width=\"200\">" + aye_msg(product_str) + ModemVer + "</TD>");
document.writeln("<TD align=right width=\"50\"></TD>");
document.writeln("<TD align=right width=\"550\">" + aye_msg(firmware_version_str) + FirmwareVer + "</TD>");
document.writeln("</TR></TABLE>");
</script>
<TABLE cellSpacing=0 width="800">
<TR>
<TD id=masthead_container width="800"><IMG alt="" src="images/img_masthead.gif"></TD>
</TR></TABLE>
<TABLE cellSpacing=0 summary="" border=0 width="100%" style="background-color:white" height=300>
<TR>
<TD align=center >
<DIV id=maincontent style="width:600" align="center">
<table id=box_header border=0 cellSpacing=0>
<tr>
<td class=topheader>
<script>aye_txt(login_str);</script>
</td>
</tr>
<tr>
<td class=content>
<p> <script>aye_txt(login_desc_str);</script></p>
<table class=formarea border="0" cellspacing="0" cellpadding="0" width=100% align="cent
er">
<tr>
<td class=form_label ><b><script>aye_txt(username_str);</script></b></td>
<script language="javascript">
if(POL == '1') {
document.writeln("<td><input type=\"username\" maxlength=\"16\" size=\"18\" name=\"username\" va
lue='Multimedia' readonly></td>");
}
else
{
document.writeln("<td><input type=\"username\" maxlength=\"16\" size=\"18\" name=\"username\" va
lue='admin' readonly></td>");
}
</script>
</tr>
<tr>
<td class=form_label><b><script>aye_txt(password_str);</script></b></td>
<td><input type="password" maxlength="16" size="18" id="password" name="passwor
d" onKeyPress=" return stEnter(event)">
</td>
</tr>
<script language="javascript">
if(captchaEnbl == '1') {
document.writeln("<tr>");
document.writeln("<td class=form_label></td>");
document.writeln("<td><b>" + aye_msg(password_correct_str) + "</b></td>");
document.writeln("</tr> ");
document.writeln("<tr>");
document.writeln("<td class=form_label></td><td valign=center><IMG src='images/captcha.bmp' id=captcha>
</td>");
document.writeln("</tr> ");
document.writeln("<tr>");
document.writeln("<td class=form_label><b>" + aye_msg(authcode_str) + " :</b></td>");
document.writeln("<td><input type=authcode maxlength=16 size=18 id=authcode name=authcode onkeypress='r
eturn stEnter(event)'> </td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td class=form_label></td>");
document.writeln("<td><input type=button value='" + aye_btn(login_str) + "' onclick='checkForm()'><input
type='button' value='" + aye_btn(regenerate_str) + "' onclick='btnRegenerate()'></td>");
}
else{
document.writeln("<tr>");
document.writeln("<td class=form_label></td>");
document.writeln("<td><input type=button value='" + aye_btn(log_in_str) + "' onclick='checkForm
()'></td>");
}
</script>
</tr>
</table>
</td>
</tr>
</table>
</DIV>
<DIV id=loginerror style="width:600;display:none" >
<table id=box_header border=0 cellSpacing=0>
<tr>
<td class=topheader>
Login
</td>
</tr>
<tr>
<td class=content>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="80%">
<tr>
<td align="center">
<script>aye_txt(authenication_fali_str);</script><br>
<script>aye_txt(incorrect_str);</script>
</td>
</tr>
<tr>
<td align="center">
</td>
</tr>
<tr>
<td align="center">
<INPUT TYPE="button" NAME="tryagain_btn" onClick="returnlogin()">
</td>
</tr>
</table>
</td>
</tr>
</table>
</DIV>
</TD>
</TR></TABLE>
<TABLE id=footer_container cellSpacing=0 border=0><TR><TD id=leftimage>
<IMG height=35 alt="" src="images/img_bottom.gif" width=114></TD>
<TD> </TD></TR></TABLE>
</TD></TR></TABLE><DIV id=copyright>
<script>
if(typeof(AYECOM_GENERIC) == 'undefined')
aye_txt(copyright_str);
</script>
</DIV></DIV>
</TR></TD></TABLE>
</DIV>
</form>
</BLOCKQUOTE>
</body>
</html>
Et la dernière :
# python -c "import requests; print(requests.get('http://duniter.youpeek.net/.well-known/acme-challenge/toto'))"
<Response [200]>
Pour ce qui est du chat, je ferai ça ce soir après 19h, là c’est déjà limite, je suis au taf, je profite bassement du fait que les gens partent en courant quand ils voient un écran en ligne de commande