Results 1 to 7 of 7

Thread: How to read webpage from browser?

  1. #1
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default How to read webpage from browser?

    I'm trying to read my email on Simba through a browser, and I haven't been able to figure it out.

    Is it even possible to read webpages that you have to log into?

    Any help would be amazing.. Thanks

  2. #2
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Well you could have it login with like TypeSend or something. And to get the page without reading it with any OCR you could GetPage, and then use other tools to retrieve the information from the downloaded page.
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Sending emails through the browser? Why? You can send emails in Simba via Prosocks.

    However, yes you can log into a webpage via Simba using POST calls & cookies. Just post your login information to the form url.
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

  5. #5
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default

    Sorry guys I should have been a bit more specific..

    I'm already logged into my email - I just want to be able to get the page source. GetPage doesn't work for obvious reasons, but I've been unable to find another method..

    Quote Originally Posted by Brandon View Post
    Sending emails through the browser? Why? You can send emails in Simba via Prosocks.

    However, yes you can log into a webpage via Simba using POST calls & cookies. Just post your login information to the form url.
    Prosocks is something I was considering using, but I really don't understand anything about it. It all looks so incredibly complicated to me.. But if you're saying I can directly get the page source from my browser, then I'll certainly give it a shot. Thanks!

    Quote Originally Posted by bg5 View Post
    Or you can just use APPA, which is a browser connected to Simba.
    Haven't seen that. But again, for me personally it looks terribly complicated. I've only recently started programming & took a long break and am just starting back up again. I'll give it a try. Thanks!

    EDIT: Been working on appa.. Only thing I'm stuck on is fill out the forms to log in.. Anyone know how?

    EDIT2: Figured it out, never mind. Had the index numbers all wrong..
    Last edited by skollstagg; 11-29-2015 at 01:06 AM.

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by skollstagg View Post
    Prosocks is something I was considering using, but I really don't understand anything about it.

    Updated the syntax today. Should be way easier to understand/read. Might add a Wiki to the repo but I don't know. Should be easy enough to understand.

    https://github.com/Brandon-T/ProSocks/releases/tag/v0.5

    Pascal Code:
    Function ProMemoryStruct.toString(): String;
    begin
      SetLength(Result, self.size);
      MemMove(self.memory^, Result[1], self.size);
    end;


    //Modified Obscurity's login function.
    Function login(user: String; pwd: String): String;
    var
      sock: SSLSocket;
      data: ProMemoryStruct;
    begin
      sock.Init(); //init can have multiple arguments. UserAgent, WritePtr, ReadPtr, ErrorPtr, etc.. all optional..
      sock.setURL('https://villavu.com/forum/login.php');
      sock.setSecurityPolicy(false, false, true); //in future releases, I might be switching these parameters around and making the false ones optional.
      sock.setURLFollow(true);
      sock.setHeader('Content-Type', 'application/x-www-form-urlencoded');

      sock.addParameter('do', 'login', false); //last parameter is optional in v0.5+..
      sock.addParameter('vb_login_username', user, false);
      sock.addParameter('vb_login_md5password', md5(pwd), false);
      sock.setCookies('cookies.txt', 'cookies.txt');
      sock.doPost(data);


      sock.setHeader('Content-Type', 'text/html');
      sock.setURL('https://villavu.com/forum/private.php');
      sock.clearParameters();
      sock.doGet(data);

      Result := data.toString();

      sock.Free();
    end;

    begin
      writeln(login('my username', 'my password');
    end;
    Last edited by Brandon; 11-29-2015 at 04:30 AM.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Oct 2015
    Location
    Nowhere
    Posts
    134
    Mentioned
    2 Post(s)
    Quoted
    64 Post(s)

    Default

    Thanks Brandon

    I definitely plan to check out ProSocks. I need to educate myself on almost everything about it.. Don't even know what "sockets" are. Or SSL, TLS, SMTP, etc etc...

    I did get everything working nicely using appa though, so very happy about that. Thanks to all who helped

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •