1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Web Browser Automation with C++

Discussion in 'C, C++, C#' started by Stalli0n, Aug 28, 2011.

  1. Stalli0n

    Stalli0n Junior Member

    Joined:
    Nov 17, 2010
    Messages:
    115
    Likes Received:
    83
    Location:
    Europe
    Hey, couldn't find anything that supports C++.

    Selenium, Watir, HtmlUnit, they all don't support C++...
     
  2. moundown

    moundown BANNED BANNED

    Joined:
    Jun 24, 2010
    Messages:
    118
    Likes Received:
    32
    Why would you need to automate webbrowser with c++ ? Its not practical. use C# or vb.net or Delphi
     
  3. Stalli0n

    Stalli0n Junior Member

    Joined:
    Nov 17, 2010
    Messages:
    115
    Likes Received:
    83
    Location:
    Europe
    Well C# and VB need the .NET Framework
     
  4. Crazy

    Crazy Jr. Executive VIP

    Joined:
    Jun 13, 2009
    Messages:
    640
    Likes Received:
    319
    Occupation:
    VB, C#, XHTML, CSS, PHP, MySQL, JavaScript, jQuery
    Location:
    Everywhere
    Automate or emulate? Just use the Win32 API for Sockets and emulate whatever you wanted to automate. Faster and more reliable, anyway.
     
  5. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    646
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    I feel you OP, I hate .net and hate it with a vengeance like basically everything compiled to some bytecode that's non-native that invariably ends up being a resource hog on my VPS. Likewise mono on my unix boxes. Call me conservative, I don't dig hundreds of MB of framework to simulate a few a clicks, fill a few forms and write a few strings...

    When reversing and "curl"-ing is not an optimal solution, imacros, "real" edition has worked pretty decently for me over the years with c/c++. Hopefully it'll do for you too. :D

    http://wiki.imacros.net/CPP

    Plus it's easy to test it with a simpler language (even js in the free edition, excellent DOM support ofc and so forth) before deploying it for massive damage rewritten in a decent language compiled to a native bin... You can also mix and mash languages if you feel like not caring about elegance. ;)

    HTH
     
  6. Monrox

    Monrox Power Member

    Joined:
    Apr 9, 2010
    Messages:
    615
    Likes Received:
    579
    Use the AxWebBrowser with mshtml. It was made for the C family.

    BTW, the .net framework can be an inconvenience but if you are serious about protecting your code you are probably already using an obfuscator. Some heavy duty obfuscators like Salamander and XenoCode include a free option to make your apps work without the framework installed.
     
    • Thanks Thanks x 1
  7. ~divinci

    ~divinci Registered Member

    Joined:
    Sep 23, 2009
    Messages:
    51
    Likes Received:
    11
    Occupation:
    Infastructure Reverse Engineer
    Location:
    Liverpool UK

    Would this hide the CLR header? So as you can't decompile to IL?