Skip to content

Instantly share code, notes, and snippets.

View benabrahamson's full-sized avatar

Ben Abrahamson benabrahamson

View GitHub Profile
@benabrahamson
benabrahamson / BenWinPrompt.bat
Last active November 5, 2022 06:08
BenWinPrompt is a simple script that acts as a mirror to the Windows Command Prompt, allowing you to access the command line even if it is blocked on the system.
@echo off
break off
title BenWinPrompt
cls
echo BenWinPrompt by Ben Abrahamson
echo ---
echo BenWinPrompt is a simple script that acts as a mirror to the Windows Command Prompt,
@benabrahamson
benabrahamson / CompatLayerExecuter.cmd
Created December 9, 2017 18:55
CompatLayerExecuter is a simple script that will run any EXE file in the same directory as it, and will force it to run as Invoker - ignoring UAC requirements
set __COMPAT_LAYER=RunAsInvoker
for %%i in (*.exe) do start "" /b "%%i"
<html>
<body>
<a>Powershell ISE Launcher</a>
<br />
<button onclick="Run()">Launch</button>
<script type="text/javascript" language="javascript">
function Run() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("powershell_ise.exe", 1, false);
}
@benabrahamson
benabrahamson / BenWordPrompt.bas
Last active October 5, 2018 17:15
BenWordPrompt is a macro that allows you to execute commands even if cmd.exe is blocked on the system. Adapted from code by Aaron Bush.
' BenWordPrompt by Ben Abrahamson
' Adapted from code by Aaron Bush
' ---
' BenWordPrompt is a macro that allows you to execute commands even if cmd.exe is blocked on the system.
Option Explicit
Public Sub BenWordPrompt()
Const lngCancelled_c As Long = 0
Dim strCmd As String
Dim welcome As String
javascript:(function(){document.getElementsByTagName("head")[0].getElementsByTagName("title")[0].innerHTML="PRIVATE";})()
@benabrahamson
benabrahamson / WindowsApplicationRename.ps1
Last active September 4, 2019 20:00
Adapted from a script by Peter Hinchley (https://hinchley.net/)
$newtitle = "PRIVATE"
$interval = 10 #milliseconds
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public static class Win32 {
[DllImport("User32.dll", EntryPoint="SetWindowText")]
@benabrahamson
benabrahamson / BenAntiSpywareToolkit.pya
Created October 2, 2019 20:08
Use this tool to overload keyword detection spyware
import itertools
from time import sleep
import random
try:
#Python 2
import Tkinter as tk
except ImportError:
#Python 3
import tkinter as tk