Packet sniffer

Discussion in 'Code Snippets and Tutorials' started by Billy, Apr 12, 2007.

  1. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    i cant get etherdetect to work on my computer and the only thing i have to use is ethereal. i dont understand how to get the urls from that (yes, i read the_skips guide) is there any other software that you can easily get the urls from or an easier way to get it from ethereal.
     
  2. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Uhh theres a firefox addon called "HTTPheaders" thats basically the same thing, but theres no start/stop button. Meaning it starts when you open it and stops wehen you close it... I reccomend that instead.
     
  3. Dr. Leet

    Dr. Leet Level I

    Joined:
    Apr 8, 2007
    Messages:
    43
    Likes Received:
    0
    Location:
    #32 Spooner St.
    HTTP Headers is shit... It's horrible compared to ertherdetect. But if erther dosn't work, I guess you have no other option
     
  4. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    nope, not working. :( this sucks, now i cant program anything good. :( :( any other ideas?
     
  5. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    And thats the exact reason I told him to use it 0_o because his etherdetect didnt work 0_x
     
  6. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    :idea: could someone possibly make a program that converts all that data from ethereal to a url?
     
  7. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    I could get the urls for you from the packet or tell me what you want to do and I'll send the url and the source code
     
  8. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Why are you using earth real? You should be using EtherDetect... and thats what it should say as the programs name... Did you download it from here?
    http://www.etherdetect.com/ because if you didnt, thats where you go ti get it, then on thr right hand side of the screen you click "Download" and itl get you a free triel... Then you geed to get a serial but im not telling you how to do that, you can search google for it thoufh.
     
  9. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    i know i already downloaded it and umm... "stumbled upon" a key, but it still wont work. i think i said that about two times now. :roll:
     
  10. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    0_o Did you click on the data tab at the bottom?
     
  11. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    i finally got the live http headers to work. its awesome. but what do i do, add the /*whatever the url was* to the end of http://www.neopets. com?
     
  12. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    ricky has a guide in code snipets for your use
     
  13. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    sorta unrelated question. if i wanted to log what happens when you go to a link, would i use.
    Code (Text):
    1. strhtml = "*link*"
    2. event = FindString(strhtml, "*first*", "*second*")
    3. log.additem event
    would that go to the site or do i need to make the program go to the website first?
     
  14. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    have this
    Code (Text):
    1. strhtml=httpwrapper.getwrapper("link",httpwrapper.lastpage)
     
  15. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    it doesnt add anything to the log or even go to the site.
     
  16. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Did you add the wrapper to your form?
     
  17. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    yes, and the name matches the name in the code
     
  18. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    Whats the code and did you dim the vaibles
     
  19. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    i did all the variables and here is the code.
    Code (Text):
    1. strhtml = W.GetWrapper("www.neopets.com/desert/shrine.phtml type=approach", W.LastPage)
    2. shrineevent = FindString(strhtml, "<br><b>", "</b><p>")
    3. log.AddItem (shrineevent)
     
  20. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    your url is wrong. I don't quite know how to fix it but I know that is the wrong url for the shrine