Also der Anmeldescren bei meinem Router ist ein solches Fenster mit Benutzer (Admin oder User) und Password
Ungültiges MakroDieses Makro ist nicht verfügbar
wie genau sieht denn dann der Code aus???
curl -u admin:mein-password 192.168.1.1
curl http://192.168.1.1/wan_pppoe.cgi?connect=false
curl http://192.168.1.1/wan_pppoe.cgi?connect=true
der scheint z.B. nicht zu funktionieren ...
Und falls dir der Seitenquelltext mehr aufschluss geben sollte ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"><!-- InstanceBegin template="/Templates/Master_No_Nav.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" rev="stylesheet" href="../style.css" type="text/css" />
<link rel="stylesheet" rev="stylesheet" href="/substyle.css" type="text/css" />
<!-- InstanceBeginEditable name="Page Title" -->
<title>D-LINK SYSTEMS, INC. | WIRELESS ROUTER :
Login
</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="Local Styles" -->
<style type="text/css">
fieldset label.duple {
width: 300px;
}
</style>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="/utils.js"></script>
<script type="text/javascript" src="/ajax.js"></script>
<script type="text/javascript">
//<![CDATA[
var local_debug = ("" == "") ? false : true;
var is_admin = "true" == "true";
var radio_count = 1;
var radio_name = ["Radio 1", "Radio 2"];
var no_reboot_alt_location = "";
function do_reboot()
{
top.location = "/reboot.cgi?reset=false";
}
function no_reboot()
{
if (no_reboot_alt_location) {
top.location = no_reboot_alt_location;
return;
}
document.getElementById("maincontent").style.display = "block";
document.getElementById("rebootcontent").style.display = "none";
}
//
var lang_form;
var i18n_xslt_processor;
var i18n_xml_data_fetcher;
var i18n_is_data_ready = false;
var i18n_is_xslt_ready = false;
var i18n_xml_data; // This will be an XMLDocument
function i18n_xslt_is_ready(xmlDoc)
{
i18n_is_xslt_ready = true;
i18n_refresh_list();
}
function i18n_data_is_ready(xmlDoc)
{
i18n_xml_data = xmlDoc;
i18n_is_data_ready = true;
i18n_refresh_list();
}
function i18n_refresh_list()
{
if (!(i18n_is_xslt_ready && i18n_is_data_ready)) {
return;
}
var parent = document.getElementById("i18n_language_selection");
parent.innerHTML = "";
i18n_xslt_processor.transform(i18n_xml_data, window.document, parent);
i18n_language_selector(lang_form.i18n_language.value);
}
function i18n_language_selector(lang)
{
//lang_form.i18n_language_select.options[lang].selected = true;
var langs = lang_form.i18n_language_select;
langs.value = lang;
}
function i18n_change_language(lang)
{
lang_form.i18n_language.value = lang;
lang_form.submit();
}
//
function template_load()
{
//
lang_form = document.forms.lang_form;
if ("" === "") {
i18n_xslt_processor = new ajax_xslproc("/i18n_language_codes.xsl", i18n_xslt_is_ready);
i18n_xml_data_fetcher = new ajax_xmlhttp("/languages.xml", i18n_data_is_ready, null, null);
i18n_xslt_processor.retrieve_xsl();
i18n_xml_data_fetcher.retrieve_xml();
}
//
global_fw_minor_version = "13";
if (global_fw_minor_version < 10) {
global_fw_minor_version = "0" + global_fw_minor_version;
}
//
var fw_extend_ver = "EU";
//
var fw_minor;
fw_minor = global_fw_minor_version + fw_extend_ver;
document.getElementById("fw_minor_head").innerHTML = fw_minor;
global_fw_minor_version = fw_minor; // save to for device info use
page_load();
document.getElementById("loader_container").style.display = "none";
}
//]]>
</script>
<!-- InstanceBeginEditable name="Scripts" -->
<script type="text/javascript" src="md5.js"></script>
<script type="text/javascript">
//<![CDATA[
function page_load()
{
if (!AJAX_BROWSER_HAS_XMLHTTP) {
alert ("Your web browser is too old to use this web site. Please upgrade your browser.");
return;
}
if (!AJAX_BROWSER_HAS_XSLT) {
alert ("Your web browser is old, some features of this web site may not work. Please upgrade your browser.");
}
if (local_debug) {
hide_all_ssi_tr();
}
document.forms.myform.password.focus();
}
function xml_ready(xml_doc)
{
var status = xml_doc.get_element_data("login");
if (status) {
if (status == "timeout") {
alert("Session timeout, please try again.");
location.replace ('/');
} else if (status == "error") {
alert("Invalid password, please try again.");
location.replace ('/');
} else {
location.replace ('/' + status);
}
}
}
function xml_timeout()
{
alert ("The network connection seems to be down. Press 'Ok' to try again.");
location.reload(true);
}
function send_login()
{
var salt = "737c2546";
var password = document.forms.myform.password.value.substr(0,16);
document.forms.myform.password.value = ""; // Make sure password never gets sent as clear text
for (var i = password.length; i < 16; i++) {
password += String.fromCharCode(1);
}
var input = salt + password;
for (var i = input.length; i < 63; i++) {
input += String.fromCharCode(1);
}
input += (document.forms.myform.username.value == 'user') ? 'U' : String.fromCharCode(1);
var hash = hex_md5(input);
var login_hash = salt.concat(hash);
var xml_loader = new ajax_xmlhttp("/post_login.xml?hash=" + login_hash, xml_ready, xml_timeout);
if (!xml_loader) {
alert ("Your web browser is too old to use this web site. Please upgrade your browser.");
return;
}
xml_loader.retrieve_xml();
}
//]]>
</script>
<!-- InstanceEndEditable -->
</head>
<body onload="template_load();">
<div id="loader_container" onclick="return false;"> </div>
<div id="outside_1col">
<table id="table_shell" cellspacing="0" summary=""><col span="1"/>
<tbody>
<tr>
<td>
<div id="header_container">
<div id="info_bar">
<div class="fwv">Firmware Version:
1.<span id="fw_minor_head">13</span>
</div>
<div class="hwv">Hardware Version:
A2
</div>
<div class="pp">Product Page: <a href="http://support.dlink.com.tw/" onclick="return jump_if();">DIR-855</a></div>
</div>
</div>
<table id="masthead_container" border="0" cellspacing="0" summary="">
<tr>
<td><div id="masthead_image"></div></td>
</tr>
</table>
<table id="content_container" border="0" cellspacing="0" summary="">
<tr>
<td id="sidenav_container"> </td>
<td id="maincontent_container">
<div id="rebootcontent_1col" style="display: none">
<div class="section">
<div class="section_head">
<h2>Reboot needed</h2>
<p>
Your changes have been saved. The router must be rebooted for the changes to take effect. You can reboot now, or you can continue to make other changes and reboot later.
</p>
<input class="button_submit" type="button" value="Reboot Now" onclick="do_reboot()" />
<input class="button_submit" type="button" value="Reboot Later" onclick="no_reboot()" />
</div>
</div> <!-- reboot_warning -->
</div>
<div id="maincontent_1col" style="display: block">
<!-- InstanceBeginEditable name="Main_Content" -->
<div class="section">
<div class="section_head">
<h2>Login</h2>
<noscript>
<p class="warning">WARNING: JavaScript is not enabled for this browser!</p>
</noscript>
<p>Log in to the router:</p>
<form id="myform" action="/" onsubmit="send_login(); return false;">
<fieldset>
<p>
<label class="duple" for="username">User Name :</label>
<select id="username" name="username">
<option value="admin">Admin</option>
<option value="user">User</option>
</select>
</p>
<p>
<label class="duple" for="password">Password :</label>
<input type="password" id="password" maxlength="15" name="password" value="" tabindex="100" />
<input class="button_submit_padleft" type="button" name="Login" value="Log In" onclick="send_login();" />
</p>
</fieldset>
</form>
</div>
</div> <!-- section -->
<!-- InstanceEndEditable -->
</div>
<!-- language selection functions -->
<form id="lang_form" action="#" onsubmit="doSave(); return false;">
<div id="lang_container">
<span id="i18n_language_selection">
<select>
<option value="DE">Deutsch</option>
<option value="EN" selected="selected">English</option>
<option value="ES">Español</option>
<option value="FR">Français</option>
<option value="IT">Italiano</option>
<option value="JA">日本語</option>
<option value="KO">한국어</option>
<option value="PT">Português</option>
<option value="ZH">繁體中文</option>
<option value="CN">简体中文</option>
</select>
</span>
<input type="hidden" id="i18n_language" name="config.i18n_language" value="EN" />
</div>
</form>
</td>
<td id="sidehelp_container"> </td>
</tr>
</table>
<table id="footer_container" border="0" cellspacing="0" summary="">
<tr>
<td><img src="../Images/img_wireless_bottom.gif" width="114" height="35" alt="" /></td>
<td> </td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<div id="copyright">Copyright © 2004-2008 D-Link Systems, Inc.</div>
</div>
</body>
<!-- InstanceEnd --></html>
Gruß kaBOOOM