Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed

    How to interact with websites.

    There are many applications I see here and all over that interact with websites and do things on them.

    I'm wondering if there is some site or thread here explaining various commands used to interact with websites,

    What I mean is say you wanted to have the bot go to a random thread on the first page of this section and save the username and post data of that users post. How would you do something like those clicks and taking that data?

  2. #2
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,134
    My Mood
    Dead
    It's easy. You get the page data using a single statement. You then use Regular Expressions to extract all the required data from that page.

  3. #3
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,677
    My Mood
    Mellow
    Or you use my WebClass library 'cos Regex on that scale is for lazy fr00bs.

    As for interacting (i.e posting data), I wrote a tut a little while ago, If i can dig it up ill link it.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  4. #4
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed
    Yeah Jason if you could get the tut it would be could because I kinda don't know what you or Hassan has told me.

  5. #5
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    I'm gonna break the green posts D:

    Or use an actual HTMLDocument class to parse through elements (XMLDocument also works for XHTML).

    Code:
    HTMLDocument doc = ...
    var e = doc.Elements("body/div/img");

  6. #6
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed
    I guess you guys don't realize I'm quite a noob. I don't know what all this means.

  7. #7
    ~Stephen's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    117
    Reputation
    16
    Thanks
    9
    If you don't understand this, than you obviously need to go back to the basics.

    @Fogest

  8. #8
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed
    Quote Originally Posted by ~Stephen View Post
    If you don't understand this, than you obviously need to go back to the basics.

    @Fogest
    Most things I read don't talk or teach you about the web usage part of vb.net

  9. #9
    Leaf's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    the Netherlands.
    Posts
    2,059
    Reputation
    456
    Thanks
    417
    My Mood
    Cheerful
    If you just want to click a button, you have to search up the ID of the button, wich is easy with firebug (add-on for firefox). You could do this with other software on other browsers aswell.

    And you can click it with this code:
    Code:
    WebBrowser1.Document.GetElementById("ID").InvokeMember("click")
    You need a webbrowser for this.
    Ex-



    Previous Names: Leaf, Acinonyx, Fawkes.


  10. #10
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed
    Quote Originally Posted by Leaf View Post
    If you just want to click a button, you have to search up the ID of the button, wich is easy with firebug (add-on for firefox). You could do this with other software on other browsers aswell.

    And you can click it with this code:
    Code:
    WebBrowser1.Document.GetElementById("ID").InvokeMember("click")
    You need a webbrowser for this.
    Okay this is just like what I did in AutoIT. SO this is good to know for VB.net. But how would I do something like that without having the webbrowser?

  11. #11
    Leaf's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    the Netherlands.
    Posts
    2,059
    Reputation
    456
    Thanks
    417
    My Mood
    Cheerful
    I don't know, you have to replace the webbrowser, with an existing process, like firefox. But i don't know how to do that, maybey Jason could help you with that.
    Ex-



    Previous Names: Leaf, Acinonyx, Fawkes.


  12. #12
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed
    Quote Originally Posted by Leaf View Post
    I don't know, you have to replace the webbrowser, with an existing process, like firefox. But i don't know how to do that, maybey Jason could help you with that.
    Well I know it's possible for sure. I just don't know how. Like I don't want the user in my program seeing what's going on behind the scenes.

    This is a example and not what I really want but say there is a feedback page on some site the user needs to fill out to get something. Well they fill in the info and hit submit and the bot does it for them without them seeing it. How do I do that? And also taking info from the site at the same time such as when form is submitted look for a string that the site may say such as Feedback submitted so you can relay that to the user when it's done.

  13. #13
    Leaf's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    the Netherlands.
    Posts
    2,059
    Reputation
    456
    Thanks
    417
    My Mood
    Cheerful
    ooooh, i think i get it now. You can do this with the webbrowser, just paste this:

    webbrowser1.Visible = False

    Nobody will see it.
    Ex-



    Previous Names: Leaf, Acinonyx, Fawkes.


  14. #14
    Fogest's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Canada, Ontario
    Posts
    3,096
    Reputation
    164
    Thanks
    10,458
    My Mood
    Amazed
    Quote Originally Posted by Leaf View Post
    ooooh, i think i get it now. You can do this with the webbrowser, just paste this:

    webbrowser1.Visible = False

    Nobody will see it.
    Okay so I guess then I could add that at the end of making the program so that I can see it for debugging purposes and then hide it. Thanks

    Now the problem I have now is that the form I want to fill out has a "Choose File" button and a window pops up like this:

    [IMG]https://i974.photobucke*****m/albums/ae226/fogest/Untitled-12.png[/IMG]

    I'm not sure how to interact with a popup thing? Because it needs to navigate to the location shown in the picture and select the user defined name of the file.cfr Then hit open. But how do I do that then?

  15. #15
    Leaf's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    the Netherlands.
    Posts
    2,059
    Reputation
    456
    Thanks
    417
    My Mood
    Cheerful
    I could help you further with tv/vm/msn/skype
    Note: The function i gave you to click a button by ID may not work on every website.
    Ex-



    Previous Names: Leaf, Acinonyx, Fawkes.


Page 1 of 2 12 LastLast

Similar Threads

  1. how to hack with bleutooth?
    By landerman01 in forum General Hacking
    Replies: 4
    Last Post: 06-25-2008, 03:46 AM
  2. how girls shoot with the de
    By platinum92 in forum General
    Replies: 20
    Last Post: 03-28-2008, 10:03 AM
  3. how to powerlvl with helis???
    By highkiller in forum WarRock - International Hacks
    Replies: 88
    Last Post: 12-27-2007, 02:43 AM
  4. Anyone know how to shot with knockels?
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 9
    Last Post: 05-20-2007, 12:12 PM
  5. How to hack a website domain?
    By Azrael in forum General Game Hacking
    Replies: 9
    Last Post: 07-21-2006, 12:25 AM