Results 1 to 9 of 9
  1. #1
    w4ssup's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,523
    Reputation
    10
    Thanks
    497

    Arduino login into router

    m trying to get my ESP8266 to connect to my router home page (192.168.1.1) but the thing is I don't know how to set up the HTTP get request for the login since it's a popup login. Can someone help me out? How do you generally send a http request for a login page that uses a popup to login?

  2. #2
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,314
    what is a popup login? however, u just send the same post request as the backend does, done

  3. #3
    w4ssup's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,523
    Reputation
    10
    Thanks
    497
    Quote Originally Posted by MikeRohsoft View Post
    what is a popup login? however, u just send the same post request as the backend does, done
    I was tracking the HTTP request on the login page and It doesn't send any POST request.

  4. #4
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,314
    Quote Originally Posted by w4ssup View Post


    I was tracking the HTTP request on the login page and It doesn't send any POST request.
    Yes ok, but then it's its websocket or something. Something it have to send via an ussual web method: HTTP, HTTPS, WebSocket, Secure WebSocket

  5. #5
    w4ssup's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    1,523
    Reputation
    10
    Thanks
    497
    Quote Originally Posted by MikeRohsoft View Post


    Yes ok, but then it's its websocket or something. Something it have to send via an ussual web method: HTTP, HTTPS, WebSocket, Secure WebSocket
    It looks like it's a HTTPD connection, Idk, this is what the http request are sending (bottom one is after entering correct credentials)

  6. #6
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,314
    This is just a WebSocket Connection
    Code:
    var ws = new WebSocket('127.0.0.1', 'realm="RT-N10P"');
    you can for example, just search this in the JS Files or Browser and inject a new onmessage event
    Code:
    ws.addEventListener('message', msg => console.log('server response: %s', msg.data));
    ws._send = ws.send;
    ws.send = function(data) {
       console.log('i send %s',  data);
       ws._send(data);
    }
    then u can just see what it sends
    Last edited by MikeRohsoft; 07-29-2019 at 02:15 PM.

  7. #7
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    The "Authorization: Basic YWRtaW46YWRtaW4=" is the auth header, your user/pass is admin:admin in your example.
    Ah we-a blaze the fyah, make it bun dem!

  8. #8
    Jabberwock's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    1,735
    Reputation
    191
    Thanks
    15,692
    My Mood
    Relaxed
    Quote Originally Posted by w4ssup View Post
    It looks like it's a HTTPD connection
    No, that's what you got from the router. The connection is just plain old HTTP.
    The client is just sending a GET request with a special Header called Authorization. The credentials are just encrypted with Base64.
    Even familiar landscapes will
    reveal a different kind of beauty
    if you change your viewpoint.
    Where these new encounters
    and new bonds will lead you...
    Such dazzling golden days.
    I, too, look forward to
    what I might behold.

  9. #9
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    ^ What they said + Wikipedia Link or RFC 7617

Similar Threads

  1. [Solved] Cannot Login into Crossfire account ?
    By Spov in forum CrossFire Help
    Replies: 8
    Last Post: 08-16-2014, 10:50 AM
  2. help duhhh cant login into a.v.a
    By mrn1nja in forum Alliance of Valiant Arms (AVA) Help
    Replies: 12
    Last Post: 01-27-2014, 11:24 AM
  3. Unable to login into WarRock Forums!
    By mizzer3 in forum WarRock Discussions
    Replies: 4
    Last Post: 10-23-2011, 09:06 AM
  4. [Help] i can't login into the Side or Use Forum
    By ♪ςander!♪ in forum WarRock Discussions
    Replies: 2
    Last Post: 03-29-2011, 06:40 AM
  5. I cant login into game ses failed to join the battle :(
    By booo0 in forum Combat Arms Europe Hacks
    Replies: 5
    Last Post: 03-19-2009, 12:58 PM