Getting packets

Discussion in 'Code Snippets and Tutorials' started by omgcat, May 10, 2007.

  1. omgcat

    omgcat Level IV

    Joined:
    Jan 31, 2007
    Messages:
    1,137
    Likes Received:
    0
    How do you get packets from a thing..

    Like I want to get it so I can play tombola in vb6.. o.o how I do that?

    I tried to make it so it goes to get tombola in vb6


    explain for me.. if you have msn add me.
     
  2. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    You shouldn't need to do anything on the packet level, the wrapper takes care of this for you. You simply tell the wrapper what links to get and what refers to use, also making sure it logs you in or has a login cookie first.
     
  3. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    mmh.. do you mean you want to get the packets so that you can see what referer/url/post data you need to use in your program?

    If so you need to download a Packet Sniffer (there's one in the tools download section or you could find one on google easily). All you need to do is run the packet sniffer while you do the tombola using your browser, and it will capture the HTTP packets which you can look at and find out what you need to do in your program.
     
  4. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    There arn't any special packets though that get sent in Tombola. It is just a typical HTTP page, with the normal HTTP headers. Just view the source to look at what you need to send in the form post message.
     
  5. omgcat

    omgcat Level IV

    Joined:
    Jan 31, 2007
    Messages:
    1,137
    Likes Received:
    0
    But how would you make it so it logs the stuff you get? Ive tried and it doesnt work o.0 E.g.

    You pull out a ticket and get a Booby Prize!

    Would you

    Strhtml "Booby Prize"
    log1.additem "You got a Booby Prize"

    ?

    But what about things like Test your Strenth?
     
  6. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    the log is more confusing... you need to use more if then statements like
    Code (Text):
    1. if instr(*use code of what you want it to find*) then
    2. log.additem(*insert text for log here*)
    3.  
    you need to do that or more advanced things like using the findstring to even see what that prize is that you won.. if you need more help, im on msn a lot...
     
  7. krazyhick

    krazyhick Level III

    Joined:
    Jan 29, 2007
    Messages:
    464
    Likes Received:
    0
    Location:
    Georgia
    A good packet sniffer is Cain and Able. Im not sure of the website but search that on google and you can find it. If yo uneed help running it just msg me.
     
  8. omgcat

    omgcat Level IV

    Joined:
    Jan 31, 2007
    Messages:
    1,137
    Likes Received:
    0
    You dont need a packet sniffer.. XD Now I am using Live Http Headers.. =3
     
  9. expon

    expon Administrator
    Staff Member

    Joined:
    Oct 30, 2006
    Messages:
    1,393
    Likes Received:
    56
    Location:
    UK
    use a regex to extract the name of the prize/item.. not sure how that works in vb6 but google 'regex vb6'