This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BindUIButton("\uD83D\uDCCB AutoReply from HAR") | |
public static function DoHARAutoResponder() { | |
var ofd = new OpenFileDialog(); | |
ofd.Filter = "HAR Files|*.har"; | |
ofd.Title = "Select a HttpArchive"; | |
if (ofd.ShowDialog() != DialogResult.OK) { | |
return false; | |
} | |
var oImportOptions = FiddlerObject.createDictionary(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Documentation at http://fiddler.wikidot.com/prefs | |
// This sample is provided "AS IS" and confers no warranties. | |
// You are granted a non-exclusive, worldwide, royalty-free license to reproduce this code, | |
// prepare derivative works, and distribute it or any derivative works that you create. | |
// | |
// TODO: | |
// Add an internal version of the indexer that will allow skipping notification of Event handlers and setting of Internal Prefs | |
using System; | |
using System.Collections.Specialized; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Run what we installed. Use a trick on Vista+ to run as non-Admin | |
GetDLLVersion "Kernel32.dll" $R0 $R1 | |
IntOp $R2 $R0 >> 16 | |
IntOp $R2 $R2 & 0x0000FFFF ; $R2 now contains major version | |
IntCmp $R2 6 is6 lessthan6 morethan6 | |
is6: | |
morethan6: | |
exec '"$WINDIR\explorer.exe" "$INSTDIR\sr.exe"' ; We use Explorer to launch it to get it to run non-elevated | |
goto RanIt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add to the Private section of your main form's type declaration. | |
Procedure WMSettingChange(Var MSG: TMessage); MESSAGE WM_SETTINGCHANGE; | |
// If the system PATH environment variable changes, we need to call an | |
// undocumented Windows Shell function to rebuild our own Environment | |
// block such that new consoles/apps we spawn will see the new PATH. | |
Procedure TMain.WMSettingChange(Var MSG: TMessage); | |
var hLib: THandle; | |
pfnRegenerate: Function (oldEnv: Pointer; regenCurrent: BOOL): BOOL; StdCall; | |
pNil: Pointer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note: This is for JScript.NET Mode FiddlerScript | |
// Click Rules > Customize Rules. Inside the HANDLERS class, add the following block: | |
public BindUITab("🚫 CSPAnalyzer", "<html>") | |
static function CSPReport(arrSess: Session[]):String { | |
if (arrSess.Length != 1) { | |
return "<!doctype html><html style=\"font-family: 'Segoe UI'; width:100%; height: 100%; background-color: #F1EDED\"><body style='align:center; vertical-align:middle'><div style=\"height: 100%; margin-top: 80px; text-align: center; vertical-align:middle;\" >Please select a single response to view details about its Content-Security-Policy.</div></body></html>"; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Meddler; | |
import System; | |
import System.Net.Sockets; | |
import System.Windows.Forms; | |
class Handlers | |
{ | |
static function OnConnection(oSession: Session) | |
{ | |
if (oSession.ReadRequest()){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void OnBoot() | |
{ | |
var btn = new ToolStripButton("Boo"); | |
btn.ToolTipText = "Haha"; | |
FiddlerToolbar.AddToolStripItem(btn); | |
FiddlerApplication.OnLoadSAZ += myHandler; | |
} | |
public static void myHandler( System.Object o, Fiddler.FiddlerApplication.ReadSAZEventArgs RSEA) { | |
FiddlerApplication.UI.Text = "Latest: " + RSEA.sFilename; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ToolsAction("FixPanelHeight")] | |
public static void DoFix() | |
{ | |
foreach (Control c in FiddlerApplication.UI.tabsViews.Controls) { | |
if (c.Name == "pageResponder") foreach (Control d in (c.Controls[0] as UserControl).Controls) | |
if (d.Name == "pnlAutoResponders") foreach (Control e in (d as Panel).Controls) { | |
// FiddlerApplication.Log.LogString(e.Name); | |
if (e.Name == "gbResponderEditor") { | |
e.Height=e.Height+120; | |
e.Top=e.Top-120; |