Fiddler的学习,大家可以去fiddler官方网址下载视频(英文的)进行学习,以下的学习笔记都是根据视频进行的一些操作+个人使用遇到的fiddler问题最后自己解决心得:在抓包的url地方右键查看属性,可以查看到url的host.Fiddler快捷键:ctrl+x删除记录的session,ctrl+shift+x清除缓存Fiddler抓包选择:这里一定要点击圈圈部分,显示capturing才能捕捉,allprocesses一般为默认选择,大家可以点击这连个地方查看Fiddlerff无法抓包:打开firefox,查看右下角,点击下图选择:Fiddlerie无法抓包:按下图启用fiddlerdll,其中qq的工具条没有也是如此设置Fiddler启动:电脑有所程序或者目的:修改网页的某个地方的网页某部分的字体大小步骤一:设置返回包响应后断点(为了改字体大小)步骤二:方法一:在输入回车方法二:把拖放到下图黑色的快速浏览栏回车然后在断点设置后停住步骤三:步骤四:然后点击步骤五:结果查看:的字体大小变大了目的:查看接收和发送包Autoresponsereplay视频部分:目的:修改网页名称步骤一:抓取下图,右键出现下图选择unlockforediting步骤二:点击unlockforediting后,选择“inspectors”tab,再选择(注意下图的syntaxview也就是textview)按下图修改title内容:步骤三:步骤四:步骤五:目的:修改网页的图片步骤一:选择录制的url中的图片如下图步骤二:设置断点,在下图输入命令:bpu网址备注:bpu是设置断点的命令,大家可以查看本文档的最后的命令说明部分步骤三:步骤四:步骤三后断点设置成功步骤五:选择图片替换步骤二:取消断点,继续运行点击后就会替换为下图FiddlerAutoResponder视频部分—自己查看视频吧:目的:替换网页图片为想要的图片步骤一:命令栏部分输入步骤二:步骤三:图片被替换为下图:方式二把全部符合.png后缀的图片都替为ericface.dat:方式三:保存responsedata备注:editpad可以打开*.dat的文件FiddlerPerformation视频部分:目的:清楚windowscache目的:查看全部抓包信息,先全选需要查看的url再按下图操作查看js内容:查看文件压缩的大小:压缩应用:Fiddler命令篇:FiddlerQuickExec:Fiddler'sQuickExecboxallowsyoutolaunchscript-commandsquickly.Ifyou'dlike,watchthedemovideo.HitALT+QtoquicklysetfocustotheQuickExecbox.IfFiddlerisn'tactive,hitCTRL+ALT+FfirsttoactivateFiddler.IntheQuickExecbox,hitCTRL+ItoinserttheURLofthecurrentlyselectedsessioninthesessionlist.There'sahotkeyforvirtuallyeverythinginFiddler.SeetheKeyboardReference.DefaultcommandsTheQuickExeccommandslistedbelowareavailableinthelatestavailableBetaversionofFiddler.ImportantNote:BecausemostcommandsarestoredinyourCustomRules.jsfile,youmaynothavethelatestcommandsifyouupgradedfromanearlierversionofFiddler.Togetthelatestcommands,eitherdeleteyourCustomRules.jsfile,orcopytheExecActionfunctionfromSampleRules.jsintoyourCustomRules.js.CommandActionSampleusage?sometextAsyoutypesometext,FiddlerwillhighlightsessionswheretheURLcontainssometext.HitEntertosetfocustotheselectedmatches.?searchtextsizeSelectsessionswhereresponsesizeisgreaterthansizebytes.HitEntertosetfocustotheselectedmatches.40000--Selectresponsesover40kbsizeSelectsessionswhereresponsesizeislessthansizebytes.HitEntertosetfocustotheselected5k--Selectresponsesunder5kbmatches.=statusSelectsessionswhereresponsestatus=status.HitEntertosetfocustotheselectedmatches.=301--Select301redirectresponses@hostSelectsessionswheretherequesthostcontainshost.HitEntertosetfocustotheselectedmatches.@msn.com--Select:\dumpgorgoResumeallbreakpointedsessionsghelpshowthispagehelphideHideFiddlerinSystemtrayhideurlreplaceReplaceanystringinURLswithadifferentstring.Settingthiscommandwillclearanypreviousvalueforthecommand;callingitwithnourlreplaceSeekStrReplaceWithStrurlreplace--Callwithnoparameterstoclearparameterwillcancelthereplacement.startRegisterasthesystemproxystartstopUnregisterasthesystemproxystopshowRestoreFiddlerfromsystemtray--moreusefulwhentriggeringrulesfromExecAction.exe(seebelow)showselectSelectanysessionwheretheresponseContent-Typeheadercontainsthespecifiedstring.selectimageselectcssselecthtmallbutorkeeponlyHideallsessionsexceptthosewhereContent-Typeheadercontainsthespecifiedstring.allbutxmlallbutjavaquitShutdownFiddler.quitWritingyourowncommandsYoucaneasilyaddnewcommandsbyeditingyourFiddlerScript.ClickRules|CustomizeRules.ScrolldowntotheOnExecActionfunctionandsimplyaddyourowncommands.Ifyou'redevelopingaFiddlerExtension,youcanimplementtheIHandleExecActioninterfaceandhandletheOnQuickExeceventandrespondaccordingly.UsingExecAction.exeExecAction.exeisacommandlineexecutablewhichissuitableforcallingfrombatchfilesorunittests.ItpassesitscommandlineintoFiddlerScript'sOnExecActionfunctionforprocessing,justlikeFiddler'sQuickExecbox.TheExecActioncommandscanbehandledbyFiddlerScriptorFiddlerExtensions.ExecAction.exeisinstalledintotheFiddlerdirectoryinsideyourProgramFilesfolder.Usage:ExecActionSCRIPTPARAMETERExecActionPARAM1PARAM2ExecActionsets%ERRORLEVEL%to0ifsuccessful1ifanincorrect(!=1)numberofargumentsuse