如何自动进入我的路由器? [英] how to automatically enter to my router ?

查看:88
本文介绍了如何自动进入我的路由器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友,

我有问题,需要您的帮助...

我已经创建了一个非常简单的"Web浏览器",我需要自动输入路由器"192.168.1.1"的密码,密码是admin,用户名也是admin
每当我连接到路由器时,都必须输入密码和用户名...

请参阅pecture 此处 [

HI friends,

i have a probleme and i need your help ...

i have created a very simple "web browser" and i need something to automatically enter to my router "192.168.1.1" the password is admin and my user name is admin too
Whenever I connect to my router I must enter the password and user name ...

see the pecture HERE[^]

waiting for your helps
think you so much ...

推荐答案

您可以为简单的Web浏览器编写应用程序配置文件,在其中可以将这些凭据以XML格式存储

You can write an application configuration file for your simple web browser, in which you can store these credentials in XML format

<defaultconnect>
   <user>admin</user>
   <password>admin</password>
   <address>192.168.1.1</address>
<defaultconnect>
</defaultconnect></defaultconnect>


在Application_Start方法上,使用C#ConfigurationManager类获取这些详细信息


On Application_Start method, you fetch these details using C# ConfigurationManager class

foreach (string key in ConfigurationManager.AppSettings)
   string value = ConfigurationManager.AppSettings[key];



然后应用默认的连接代码.



Then apply in the default connectivity code.


我已经理解了XML文件,但是第二个代码却不...给我一些例子!
I have understand the XML File but the second code not ...give me some exemple !!

On Application_Start method, you fetch these details using C# ConfigurationManager class
 
Collapse | Copy Code
foreach (string key in ConfigurationManager.AppSettings)
   string value = ConfigurationManager.AppSettings[key];


这篇关于如何自动进入我的路由器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆