Skip to content

Instantly share code, notes, and snippets.

{
"sdk": [
{
"windows":"http://tools.android.com/download/sdk-repo-windows-platform-tools-2219198.zip",
"osx":"http://tools.android.com/download/sdk-repo-darwin-platform-tools-2219242.zip",
"linux":"http://tools.android.com/download/sdk-repo-linux-platform-tools-2219198.zip",
"adb_version":"1.0.32"
}
],
"devices": [
git clone https://github.com/gitdurandal/dbd.git
cd dbd
#
# Edit dbd.h with settings to callback or listen
#
# Edit Makefile and add Wno-pointer-sign
#
# UNIX32_CFLAGS += -Wall -Wshadow -Os -m32 -march=i386 -Wno-pointer-sign
make unix
@binkybear
binkybear / gist:872b9dda631d10bcbb23
Created December 26, 2015 20:58
M2Crypto on El Capitan (in virtualenv)
brew install openssl
brew install swig
# In this case I was using kivy interpreter
cd /Applications/Kivy.app/Contents/Resources
env LDFLAGS="-L$(brew --prefix openssl)/lib" \
CFLAGS="-I$(brew --prefix openssl)/include" \
SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" \
./python venv/bin/pip install m2crypto
#
# All this should be done in Nethunter chroot
#
apt-get install -y subversion libglib2.0 libxml2-dev libpcap-dev libtool rrdtool librrd-dev autoconf automake autogen redis-server wget libsqlite3-dev libhiredis-dev libgeoip-dev libcurl4-openssl-dev libpango1.0-dev libcairo2-dev
apt-get install -y libpng12-dev git dh-autoreconf libcurl4-gnutls-dev libsqlite3-dev libmysqlclient-dev pkg-config libxml2-dev libglib2.0-dev
# Modify /etc/group by adding redis to inet group
nano /etc/group
# inet:x:3004:postgres,root,beef-xss,daemon,nginx,mysql,redis
@binkybear
binkybear / main.go
Last active October 8, 2017 23:29
Yes or no menu in golang
package main
import (
"fmt"
"log"
"github.com/dixonwille/wmenu"
)
func main() {
import urllib2
import urllib
class LatestSU:
def __getPage(self, url, retRedirUrl = False):
try:
bOpener = urllib2.build_opener()
bOpener.addheaders = [("User-agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36")]
pResponse = bOpener.open(url)
@binkybear
binkybear / gist:fa5dff0ebe263c94b1ec
Last active May 24, 2018 01:46
Passive Scanner (for Nethunter)
#!/bin/bash
#
# Passively scan for targets using tshark to capture pcap
# then parse out pcap for interesting activity/clients.
# Order: tshark (capture), p0f (fingerprint), dsniff (plaintext),
# tcptrace (parse ip src > ip dst)
#
# + Dependencies tshark, tcptrace, dsniff
#
# + To run and capture traffic for five minutes:
@binkybear
binkybear / useragents.txt
Created March 4, 2016 01:55
Giant list of user agents strings generated from https://github.com/binkybear/user-agent_strings_db
This file has been truncated, but you can view the full file.
Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)
Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)
Mozilla/5.0 (compatible; ABrowse 0.4; Syllable)
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729)
Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser 1.98.744; .NET CLR 3.5.30729)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Acoo Browser; GTB5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; Acoo Browser; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Avant Browser)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Acoo Browser; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
@binkybear
binkybear / tpsetup.sh
Created January 31, 2016 19:43
Quick bash script for TOR/privoxy set up
#!/bin/bash
#
# Quickly get TOR/privoxy running with python modifiable python script to change IP every 10 seconds
# See https://github.com/FrackingAnalysis/PyTorStemPrivoxy for more details
#
echo "Downloading prerequisites"
apt-get install -y tor privoxy python-stem wget
echo "Setting up privoxy"
@binkybear
binkybear / mubix-lock.sh
Last active November 3, 2021 22:56
mubix-lock.sh
#!/bin/bash
#
# Attack created by Mubix. For more information see:
# https://room362.com/post/2016/snagging-creds-from-locked-machines
# Modified for Nethunter by Binkybear
#
# ================== #
# Check for root
# ================== #