Autor Beitrag
zacki
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 30.07.05 12:15 
Hallo Leute!

Um zu überpfrüfen, mit welchen Benutzerdaten mein Router ins Internet geht würde ich gerne diese Information aus dem Webinterface des Routers auslesen.

Dummerweise habe ich leider nur wenig Ahnung von html und Delphi auch erst seit einem Schuljahr in der Schule :(

Mein größtes problem ist also, mich erst einmal in den Router einzuloggen.

Hier einmal die Seiteninformationen der Login Seite aus Firefox:
user defined image

Und hier der html Quelltext:
ausblenden volle Höhe Quelltext
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:
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>LOGIN</title>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.tF.pws.focus();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <!--<tr>
    <td>
      <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="164" height="70">
      <param name=movie value="flash/f1.swf">
      <param name=quality value=high>
      <embed src="flash/f1.swf" quality=high type="application/x-shockwave-flash" width="164" height="70"></embed> 
      </object>
      </p>
    </td>
  </tr>-->
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="80%">
  <tr>
  <td valign="middle"> 
    <form action="login.htm" method="post" name="tF">

    <input type="hidden" name="page" value="login">
    <div align="center">
    <table border="0" cellspacing="1" cellpadding="5" bgcolor="#336699" width="250">
      <tr>
      <td bgcolor="#336699"><b><font color="#FFFFFF">
        <center>LOGIN PASSWORD</center></font></b>
      </td>
      </tr>

      <tr>
      <td height="2" bgcolor="#B3C9DF"> 
        <table border="0" cellspacing="0" cellpadding="5"> 
        <tr> 
          <td><b><font color="#336699" face="Arial, Helvetica, sans-serif" size="3">Password:</font></b></td>
          <td><input type="password" maxLength=12 size=20 name="pws"></td>
        </tr>
        <tr> 
          <td> </td>
          <td>

            <input type="submit" value="LOGIN">
            <input name="Close" onClick="self.close();return false" type="button" value="CANCEL">
          </td>
        </tr>
        </table>
      </td>
      </tr>
    </table>
    </div>

    </form>
  </td>
  </tr>
</table>
</body>
</html>


Kann mir jemand helfen?

Thx schonmal!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 30.07.05 12:20 
Moin!

user profile iconzacki hat folgendes geschrieben:
Um zu überpfrüfen, mit welchen Benutzerdaten mein Router ins Internet geht würde ich gerne diese Information aus dem Webinterface des Routers auslesen.

An das Passwort wirst du (so) nicht herankommen, und das ist auch gut so. Fazit: Das wird nix.

cu
Narses
zacki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 30.07.05 12:30 
Ne, das war ein Mißverständnis :D

Das Passwort zum einloggen ins Webinterface hab ich, das zum einloggen ins Internet und den Benutzernamen dafür auch.

Was ich möchte, ist KONTROLLIEREN ob der Router die richtigen Daten benutzt, da wir nach einem Stromausfall bis gestern 20 Tage (!!!) mit T-Online byCall online waren.

Sinn des Programmes soll es sein, das möglichst schnell und einfach überprüfen zu können, auch für meine Mutter, die das übers Webinterface nicht hinkriegt.
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Sa 30.07.05 12:35 
Mit
ip des routers/login.htm?login=$loginname&pws=$password
müsstest du dich direkt anmelden können.
(versuch es einfach mal im Firefox)

Ansonsten solltest du mal schreiben, was für einen router du hast.

Es ist aber wirklich schwierig.

Arne
zacki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 30.07.05 13:00 
Ne, das hat leider nicht funktioniert...

Habs auf verschiedene Arten probiert, wobei mir

192.168.1.1/login.htm?pws=sagichnich

am wahrscheinlichsten schien (ich versteh davon nix *gg*), aber auch nicht funktioniert hat.

Was für ein Router das ist... das wüsste ich auch gerne. Ist ein über eBay gekaufter NoName Router, der anscheinend zu 100% darauf ausgelegt ist, nicht zu verraten wer ihn gemacht hat. Weder im Webinterface, noch in der Anleitung findet sich da was zu. Das einzige was drauf steht ist "SOHO Homer or Office Router" wobei SOHO das zweite ja schon sagt :?
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Sa 30.07.05 13:18 
Also:

162.168.1.1/login.htm?pws=sagstdunicht&page=login

müsste es sein.

Ich hatte mich eben verlesen :wink:

Es kann allerdings sein, dass der router nur Post daten annimmt.

Sonst:

ausblenden volle Höhe Quelltext
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:
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>LOGIN</title>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="document.tF.pws.focus();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <!--<tr>
    <td>
      <p>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="164" height="70">
      <param name=movie value="flash/f1.swf">
      <param name=quality value=high>
      <embed src="flash/f1.swf" quality=high type="application/x-shockwave-flash" width="164" height="70"></embed> 
      </object>
      </p>
    </td>
  </tr>-->
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="80%">
  <tr>
  <td valign="middle"> 
    <form action="login.htm" method="post" name="tF">

    <input type="hidden" name="page" value="login">
    <div align="center">
    <table border="0" cellspacing="1" cellpadding="5" bgcolor="#336699" width="250">
      <tr>
      <td bgcolor="#336699"><b><font color="#FFFFFF">
        <center>LOGIN PASSWORD</center></font></b>
      </td>
      </tr>

      <tr>
      <td height="2" bgcolor="#B3C9DF"> 
        <table border="0" cellspacing="0" cellpadding="5"> 
        <tr> 
          <td><b><font color="#336699" face="Arial, Helvetica, sans-serif" size="3">Password:</font></b></td>
          <td><input type="password" maxLength=12 size=20 name="pws" value="deinpwd"></td>
        </tr>
        <tr> 
          <td> </td>
          <td>

            <input type="submit" value="LOGIN">
            <input name="Close" onClick="self.close();return false" type="button" value="CANCEL">
          </td>
        </tr>
        </table>
      </td>
      </tr>
    </table>
    </div>

    </form>
  </td>
  </tr>
</table>
</body>
</html>
zacki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 30.07.05 13:45 
Das funktioniert!

Klasse, vielen Dank!

Damit kann ich erstmal arbeiten, aber ich lass den Thread mal offen, wenn sich noch weitere Probleme ergeben.
blaueled
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 133

Win XP
D5
BeitragVerfasst: Sa 30.07.05 14:01 
Schön, das war ja nur der Anfang ...

Ich habe noch www.dsdt.info/tipps/?id=584 gefunden.

Ich hoffe es hilft

Arne
zacki Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Sa 30.07.05 18:08 
Ja, das hat nochmal weiter geholfen, das Programm ist fertig und funktioniert wunderbar!

Vielen, vielen Dank also!