Can I use C # to log into my router and remove IP addresses from there (provider’s local network and external network address) ?? If so, how? / sample code /

    2 answers 2

    The following code works for my modem. I sniffed through Opera Dragonfly.

    WebClient client = new WebClient(); client.Proxy = new WebProxy(); textBox1.Text = client.UploadString("http://192.168.1.1/index.cgi", "v2=y&rs_type=html&A1=admin&A2=admin&auth=auth");//POST запрос. Свои запросы сниффайте. 
    • Could you comment on how to make your request? I would be extremely grateful. - handbat0
    • one
      I do in the opera like this: I go to the modem, Ctrl + Shift + I, tab network. I enter the data and click "ok." In Dragonfly, requests are highlighted, we find an authorization request, and by its example we make our own. - GenkaOk

    It should be possible to get information on SSH , you can also write a regular HTML parser. This is not all options. Here are the links, the theory for the parser in C #: