Fiddler Script

14 posts, 0 answers
  1. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 13 Dec 2014 Link to this post

    I want use Fiddler Script and I have those packets with this host name :

    wl.search.ar.ns.test.com

    If I use oSession.HostnameIs how can I do ?

    So ? 

    if (oSession.HostnameIs("wl.search.ar.ns.test.com")) {
                oSession.hostname="199.156.34.12";
    }

    is it correct ?
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 15 Dec 2014 Link to this post

    I don't know what "how can I do ?" means. What specifically are you trying to accomplish?

    The code that you wrote, when placed inside the OnBeforeRequest method of your FiddlerScript, will change the hostname of any request for the specified hostname to the specified IP address.

    The Tools > HOSTS... command in Fiddler works similarly, but also fixes up HTTPS certificates, etc.

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 20 Dec 2014 in reply to Eric Lawrence Link to this post

    Don't go that, with script and with Tools --> HOST --> Host Remapping
    Help me !!!
  4. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 20 Dec 2014 in reply to Marco Link to this post

    I use a Windows application, is it the problem ?
    Your Fiddler go only with Browsers programs  ?
  5. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 21 Dec 2014 Link to this post

    Listen, I use WireShark to know what type network traffic is with my Windows application and I see TCP and HTTP.
  6. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 22 Dec 2014 Link to this post

    Howdy, Marco--

    I still don't understand what problem you're having? What specifically are you trying to do, and what exactly happens?

    Fiddler works with any program that supports a proxy, which is essentially anything written in Java, .NET, C++, etc. Sometimes, poorly-written programs will not automatically use the system's proxy settings and must be manually configured to use the proxy (127.0.0.1:8888) but telling me what the program you're using is will help.

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 22 Dec 2014 in reply to Eric Lawrence Link to this post

    Listen, when I set proxy with this command :
    netsh winhttp set proxy 127.0.0.1:8888

    then, I must reboot computer ?
  8. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 22 Dec 2014 Link to this post

    No, you don't need to reboot anything.

    What version of Windows are you using?
    Do you think the application in question is using WinHTTP? If so, is it a 32bit program or a 64bit program?

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 23 Dec 2014 in reply to Eric Lawrence Link to this post

    This Windows Application is a 32bit and I'm using Windows 7 Pro 64bit.
    After that I set proxy 127.0.0.1:8888 I see capture packets with other program (Windows application) but I don't see capture with this application, where is the problem ?
  10. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 23 Dec 2014 Link to this post

    How can I know if this application use WinHTTP ?
    This application go on Internet for to use web service or other service and this application surf on internet pages
  11. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 23 Dec 2014 Link to this post

    Listen, if this can help you .
    After that I set proxy 127.0.0.1:8888 and I run "Fiddler" without set "Fiddler Script" this windows application don't go more on internet pages and don't work other services
  12. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 23 Dec 2014 Link to this post

    What, specifically, is the application?

    Does it use HTTPS? Have you enabled HTTPS decryption in Fiddler? Have you trusted Fiddler's root certificate?

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  13. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 23 Dec 2014 in reply to Eric Lawrence Link to this post

    The application is Windows Phone Emulator, I test my application on this emulator and I must debug my application
  14. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 24 Dec 2014 Link to this post

    Hi, Marco--

    The "Windows Phone Emulator" isn't really an application at all-- it's a virtual machine. As such, there are special requirements you need to follow in order to get its traffic captured. Have a look at http://stackoverflow.com/questions/23462697/windows-phone-8-1-emulator-not-proxying-through-fiddler and if you still have problems, please provide information about what version of VS and Windows you're using.

    Regards,
    Eric Lawrence
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top