Skip to content

Instantly share code, notes, and snippets.

View initbrain's full-sized avatar

Julien Deudon initbrain

View GitHub Profile
<script
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<!-- To Auto PWN, comment out the button and uncomment out "beginPwn()" at the bottom of the script -->
<button onclick='beginPwn()'>
PWN
</button>
</button>
<div id='pwnlog'>
@SmugZombie
SmugZombie / hostname_randomizer.sh
Created May 18, 2017 17:12
Set Random Hostname
# Hostname Randomizer
# Ron Egli
# Get Current Hostname
hostn=$(cat /etc/hostname)
# Generate new hostname
newhostpre="BreachCollector-"
newhostrand=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 12 | tr -d '\n')
newhost=$newhostpre$newhostrand
@miek
miek / GSG case
Last active May 29, 2022 16:57
Unofficial case for YARD Stick One and Ubertooth One from Great Scott Gadgets - http://greatscottgadgets.com/
@isciurus
isciurus / MainActivity.java
Last active May 12, 2024 23:45
PoC for Android GoogleAuthUtil.getToken() bug
package com.isciurus.oauth_poc;
import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.auth.UserRecoverableAuthException;
import android.accounts.AccountManager;
import android.app.Activity;
@finnigja
finnigja / dnsdiff.py
Last active July 26, 2022 02:36
Script for comparing DNS lookup results across multiple resolvers
#!/usr/bin/env python
#
# DNS Result Comparison Utility
# Author: https://twitter.com/chair6
#
import argparse
import dns.resolver
import dns.rdatatype
from collections import defaultdict
@creotiv
creotiv / get_coordinates_by_cell_phone.py
Created September 13, 2012 11:51
Getting coordinates without gps by cell phone
country = 'fr'
device = "Nokia N95 8Gb"
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
mmap_url = 'http://www.google.com/glm/mmap'
geo_url = 'http://maps.google.com/maps/geo'
from struct import pack, unpack
from httplib import HTTP
import urllib2