Skip to content

Instantly share code, notes, and snippets.

@antitree
antitree / com.google.android.apps.maps
Created December 11, 2016 21:05
List of Android maps (real) permissions
Packages:
Package [com.google.android.apps.maps] (b364692):
userId=10077
sharedUser=SharedUserSetting{40bb50d com.google.android.apps.maps/10077}
pkg=Package{3cd2ad3 com.google.android.apps.maps}
codePath=/data/app/com.google.android.apps.maps-2
resourcePath=/data/app/com.google.android.apps.maps-2
legacyNativeLibraryDir=/data/app/com.google.android.apps.maps-2/lib
primaryCpuAbi=arm64-v8a
secondaryCpuAbi=null
@antitree
antitree / graph.R
Last active February 14, 2017 16:56
library(ggplot2)
load_trace <- function(filename, nickname, proto, n) {
x <- read.csv(filename)
x$ts <- x$ts - min(x$ts)
x$sz <- x$size * ifelse(x$dir=="up", 1, -1)
data.frame(x, nickname=nickname, proto=proto, n=n)
}
# derive nickname, proto, and n columns from the filename.
@antitree
antitree / authy.js
Last active February 4, 2019 17:35
Authy iterations
function(t, e, n) {
var r, o;
r = [n(34), n(35)], o = function(t, e) {
var n;
return n = function() {
function n() {}
return n.prototype.changePhone = function(n, r, o, i) {
var s, a;
a = e.get().userId, s = "/json/users/" + a + "/change_phone/request", t.postAuth(s, {
{
"basics": {
"name": "Mark Manning",
"label": "Security Consultant",
"picture": "https://pbs.twimg.com/profile_images/658038562261069825/jB7pbsiE_400x400.png",
"email": "mark@antitree.com",
"phone": "",
"website": "https://www.antitree.com",
"summary": "Career security consultant with a focus on containerization technologies.",
"location": {
#!/usr/bin/env bash
# Ephemeral container deployer
# Author: @antitree
# This patches over a pod to add an ephemeral container, mounts share volumes,
# enters the namespace and some other shit.
function description() {
echo -e "\nDescription: This plugin speeds up the process of patching a Pod with an
ephemeral container. It will automatically mount the PID namespace, secrets, and other volumes
to help with debugging or reviewing the main container. \n\n
@antitree
antitree / poc-list-bypass.yaml
Created November 1, 2020 22:11
POC for setting up an environment with a secret and cluster role.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: poc-list-bypass
rules:
- apiGroups:
- ""
resources:
- secrets
verbs: