This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# | |
# disables all trusted root certs on your Android 4.x | |
# by jduck of #droidsec | |
# | |
# requires a working openssl binary in /data/local/tmp | |
# (you can build one from AOSP "make openssl") | |
# | |
# run this as system!! for example: | |
# shell@flo:/data/local/tmp $ su system -c ./trustnocerts.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
is_mounted() { | |
if [ ! -z "$2" ]; then | |
cat /proc/mounts | grep $1 | grep $2, >/dev/null | |
else | |
cat /proc/mounts | grep $1 >/dev/null | |
fi | |
return $? | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before April 2017 run this with flags: | |
// node --harmony-async-await ./async-test.js | |
function sayHi (name) { | |
if (name == null) throw Error('Missing name') | |
return `Hi ${name}.` | |
} | |
function sayWhatsUpAsync (msg, timeoutMs) { | |
console.log(`Will return in ${timeoutMs / 1000}s`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol v0.1 | |
Copyright (c) 2012 Ilya Voronin <ivoronin@gmail.com> | |
Based on Code Aurora Forum's BSD/GPL licensed code: | |
http://www.codeaurora.org/contribute/projects/gobi/ | |
Short howto for using this script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const { auth } = require('google-auth-library'); | |
const API_KEY = 'ADD YOUR API KEY HERE'; | |
const fileName = './audio.raw'; | |
// Reads a local audio file and converts it to base64 | |
const file = fs.readFileSync(fileName); | |
const audioBytes = file.toString('base64'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
directfbtext, implemented by Vitaly "_Vi" Shukela in 2014. | |
Based on: | |
DirectFB Tutorials | |
(c) Copyright 2000-2002 convergence integrated media GmbH. | |
(c) Copyright 2002 convergence GmbH. | |
All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified version of https://github.com/cocagne/pysrp/blob/master/srp/_pysrp.py | |
# N A large safe prime (N = 2q+1, where q is prime) | |
# All arithmetic is done modulo N. | |
# g A generator modulo N | |
# k Multiplier parameter (k = H(N, g) in SRP-6a, k = 3 for legacy SRP-6) | |
# s User's salt | |
# I Username | |
# p Cleartext Password | |
# H() One-way hash function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var delay = 250; | |
var until = 'faux123'; | |
var a = new Array(); | |
$('button[class*=follow-btn]').each(function() { | |
var attr = $(this).parent().attr('data-screen-name'); | |
if (attr != undefined) { | |
if (attr == until) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Classes (Added 0, Removed 0, Modified 0) | |
Added Classes: 0 | |
Removed Classes: 0 | |
Modified Classes: 0 | |
Commons (Added 0, Removed 0, Modified 0) | |
Added Commons: 0 | |
Removed Commons: 0 | |
Modified Commons: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* CVE-2016-5195 dirtypoc | |
* | |
* This PoC is memory only and doesn't write anything on the filesystem. | |
* /!\ Beware, it triggers a kernel crash a few minutes. | |
* | |
* gcc -Wall -o dirtycow-mem dirtycow-mem.c -ldl -lpthread | |
*/ | |
#define _GNU_SOURCE |
OlderNewer