[METHOD] Using Ethereal Packet Sniffer to get URLs

Discussion in 'Code Snippets and Tutorials' started by the_skip, Feb 25, 2007.

  1. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    The guide for ricky92's program is for an expensve software this is for the packet sniffer here. This is what you do
    1. Do whatever you wanted the program to do while doing a paclet capture.
    2. Look for any packets with post next to them
    3. The half url between post and htpt 1.1 is the url you put after neopets .com the thing I looked up was shop wizard and here was what I got
    4. write that in notpad after neopets .com and at the end put a ? mak so I have
    5. find the next packet and here comes the trickey part you will have to look at the bottom box this time and copy the WHOLE thing into notepad I have
    6. remove all the numbers and now it looks like this also remove it is a letter afater a number there should be a space seperating what you should delete. I have
    9. Add that to your code in your program and remove the question mark to it and put the first url in quotes and seperated from the first url by quotes
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> httpwrapper1.postwrapper("http://ww.neopets .com/market.phtml","type=process_wizard&feedset=0&shopwizard=bri+codestone&table=shop&criteria=exact&min_price=1000&max_price=5000 ") </li></ol></div>
    10. to check if you done this right put this code in
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> If InStr(1, strHTML, "You have been direct to here")Then Msgbox "error wrong directed" </li></ol></div>
    11. if you get an error put the page you are suppossed to be coming from in the code like this
    Code (Text):
    1. <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> http1wrapper.postwrapper(("http://ww.neopets .com/market.phtml","type=process_wizard&feedset=0&shopwizard=bri+codestone&table=shop&criteria=exact&min_price=1000&max_price=5000","http://www.neopets. com/market.phtml?type=wizard") </li></ol></div>
    12. If all else fails pm ricky92 or myself
    +rep would be nice