View Immortal.cs
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
using System; | |
using System.Security.AccessControl; | |
using System.Security.Principal; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
class Program | |
{ | |
public class ProcessSecurity : NativeObjectSecurity { | |
public ProcessSecurity(SafeHandle processHandle) |
View NativeHostEcho.cc
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
/* | |
* This is a simple Native Message Host application. It echoes any messages | |
* it receives. After receiving and echoing a `{"quit":1}` message, the app | |
* will exit. | |
*/ | |
#include <fcntl.h> | |
#include <io.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
View Unsubscribe from all YouTube channels
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
var i = 0; | |
var myVar = setInterval(myTimer, 3000); | |
function myTimer () { | |
var els = document.getElementById("grid-container").getElementsByClassName("ytd-expanded-shelf-contents-renderer"); | |
if (i < els.length) { |
View mutz.cs
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
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace MUTZ | |
{ | |
[ComImport, GuidAttribute("79EAC9EE-BAF9-11CE-8C82-00AA004BA90B")] | |
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)] | |
public interface IInternetSecurityManager | |
{ |
View guetzli.reg
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Fiddler2\ImagesMenuExt\&JPEGGuetzli] | |
"Command"="C:\\Users\\ericlaw\\Documents\\Fiddler2\\scripts\\Tools\\guetzli_windows_x86-64.exe" | |
"Parameters"="{in} {out:jpg}" | |
"Types"="image/jpeg" | |
View traffic annotation values
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
accounts_image_fetcher 98658519 | |
adb_client_socket 87775794 | |
affiliation_lookup_by_hash 57748571 | |
aggregation_service_helper_keys 49783589 | |
aggregation_service_report 95942194 | |
ambient_client 46775600 | |
ambient_photo_cache 72532255 | |
ambient_photo_controller 43026447 | |
android_device_manager_socket 37249086 | |
android_web_socket 39356976 |
View MakeItHTML.js
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
// Filenames | |
var sXML = "U_MS_Edge_V1R3_STIG_Manual-xccdf.xml"; | |
var sXSLT = "STIG_unclass.xsl"; | |
var sOutput = "TransformedHTML.html"; | |
var fso, f, xmlstr, xsltstr; | |
fso = new ActiveXObject("Scripting.FileSystemObject"); | |
f = fso.OpenTextFile(sXML); |
View CustomRules.js
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
static function OnBoot() { | |
var s = Environment.GetCommandLineArgs(); | |
for (var i=1; i<s.Length; i++){ | |
if (s[i].StartsWith("-netlog:")){ | |
// FiddlerObject.log("Command line told us to import Netlog " + s[i].Substring(8)); | |
var oImportOptions = FiddlerObject.createDictionary(); | |
oImportOptions.Add("Filename", s[i].Substring(8)); | |
FiddlerApplication.DoImport("NetLog JSON", true, oImportOptions, null); | |
} |
View Get-ProcessHash.ps1
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
# Mostly written by https://gist.github.com/pronichkin/b1fcd7b797ed7194dce0a96d98765aa7 | |
Get-Process | Sort-Object -Unique -Property 'Name' | Select-Object -Property @( | |
@{ | |
'Label' = 'Name' | |
'Expression' = { | |
$psItem.Name + ".exe" | |
} | |
} |
NewerOlder