static CONFIG() { CONFIG.sDefaultBrowserExe = "iexplore.exe"; CONFIG.sDefaultBrowserParams = string.Empty; CONFIG.bRunningOnCLRv4 = (Environment.Version.Major > 3); CONFIG.bQuietMode = !Environment.UserInteractive; CONFIG._pfcDecyptFilter = ProcessFilterCategories.All; CONFIG.sLVColInfo = null; CONFIG.bIsViewOnly = false; CONFIG.bUseXceedDecompressForGZIP = false; CONFIG.bUseXceedDecompressForDeflate = false; CONFIG.bMapSocketToProcess = true; CONFIG.bMITM_HTTPS = false; CONFIG.bUseSNIForCN = false; CONFIG.bIgnoreServerCertErrors = false; CONFIG.bStreamAudioVideo = false; CONFIG.bCheckCompressionIntegrity = false; CONFIG.bShowDefaultClientCertificateNeededPrompt = true; CONFIG.sFiddlerListenHostPort = "127.0.0.1:8888"; CONFIG.sMakeCertParamsRoot = "-r -ss my -n \"CN={0}{1}\" -sky signature -eku 1.3.6.1.5.5.7.3.1 -h 1 -cy authority -a sha1 -m 132 -b {3}{4}"; CONFIG.sMakeCertParamsEE = "-pe -ss my -n \"CN={0}{1}\" -sky exchange -in {2} -is my -eku 1.3.6.1.5.5.7.3.1 -cy end -a sha1 -m 132 -b {3}{4}"; CONFIG.sMakeCertRootCN = "DO_NOT_TRUST_FiddlerRoot"; CONFIG.sMakeCertSubjectO = ", O=DO_NOT_TRUST, OU=Created by http://www.fiddler2.com"; CONFIG.sRootUrl = "http://fiddler2.com/fiddlercore/"; CONFIG.sSecureRootUrl = "https://fiddler2.com/"; CONFIG.sRootKey = "SOFTWARE\\Microsoft\\FiddlerCore\\"; CONFIG.sUserPath = string.Concat(new object[] { CONFIG.GetPath("MyDocs"), Path.DirectorySeparatorChar, "FiddlerCore", Path.DirectorySeparatorChar }); CONFIG.sScriptPath = string.Concat(new object[] { CONFIG.sUserPath, "Scripts", Path.DirectorySeparatorChar, "CustomRules.js" }); CONFIG.bUseAESForSAZ = true; CONFIG.oAcceptedClientHTTPSProtocols = (SslProtocols)4092; CONFIG.oAcceptedServerHTTPSProtocols = SslProtocols.Default; CONFIG.FiddlerVersionInfo = Assembly.GetExecutingAssembly().GetName().Version; CONFIG.bIsBeta = false; CONFIG.bForwardToGateway = true; CONFIG._UpstreamGateway = GatewayType.System; CONFIG.bDebugSpew = false; CONFIG.oHeaderEncoding = Encoding.UTF8; CONFIG.oBodyEncoding = Encoding.UTF8; CONFIG.bReuseServerSockets = true; CONFIG.bReuseClientSockets = true; CONFIG.bCaptureCONNECT = true; CONFIG.bCaptureFTP = false; CONFIG.bUseEventLogForExceptions = false; CONFIG.bAutoProxyLogon = false; CONFIG.bEnableIPv6 = (Environment.OSVersion.Version.Major > 5); CONFIG.sHookConnectionNamed = "DefaultLAN"; CONFIG.bHookAllConnections = true; CONFIG.bHookWithPAC = false; CONFIG.m_bCheckForISA = true; CONFIG.m_ListenPort = 8888; CONFIG.bUsingPortOverride = false; CONFIG.bDebugCertificateGeneration = true; CONFIG.sAlternateHostname = "?"; CONFIG.sReverseProxyHostname = "localhost"; CONFIG.sMachineName = string.Empty; CONFIG.sMachineDomain = string.Empty; CONFIG.oHLSkipDecryption = null; try { IPGlobalProperties iPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties(); CONFIG.sMachineDomain = iPGlobalProperties.DomainName.ToLowerInvariant(); CONFIG.sMachineName = iPGlobalProperties.HostName.ToLowerInvariant(); } catch (Exception) { } CONFIG.bQuietMode = true; CONFIG.bDebugSpew = false; CONFIG.m_ListenPort = 8866; if (Environment.OSVersion.Version.Major < 6 && Environment.OSVersion.Version.Minor < 1) { CONFIG.bMapSocketToProcess = false; } }
public static void SetNoDecryptList(string sNewList) { if (string.IsNullOrEmpty(sNewList)) { oHLSkipDecryption = null; } else { oHLSkipDecryption = new HostList(); oHLSkipDecryption.AssignFromString(sNewList); } }