Skip to content

Instantly share code, notes, and snippets.

View atastycookie's full-sized avatar
💭
I may be slow to respond.

Roman atastycookie

💭
I may be slow to respond.
View GitHub Profile
@atastycookie
atastycookie / xss.payloads.md
Last active February 23, 2017 13:53
Xss pauloads

``

import itertools
class AdbText:
key_dict = {
"0": 7, "1": 8, "2": 9, "3": 10, "4": 11, "5": 12, "6": 13, "7": 14, "8": 15, "9": 16, "*": 17,
"#": 18, "A": 29, "B": 30, "C": 31, "D": 32, "E": 33, "F": 34, "G": 35, "H": 36, "I": 37, "J": 38, "K": 39,
"L": 40, "M": 41, "N": 42, "O": 43, "P": 44, "Q": 45, "R": 46, "S": 47, "T": 48, "U": 49, "V": 50, "W": 51,
"X": 52, "Y": 53, "Z": 54, ",": 55, ".": 56, " ": 61, " ": 62, "\n": 66, "`": 68, "-": 69, "=": 70, "[": 71,
"]": 72, "\\": 73, ";": 74, "'": 75, "/": 76, "@": 77, "+": 81, "(": 162, ")": 163,
}
@atastycookie
atastycookie / install_gradle.sh
Created May 26, 2016 17:35
install gradle latest 2.13
#!/bin/bash
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
gradle_version=2.13
mkdir /opt/gradle
wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip
unzip -oq ./gradle-${gradle_version}-all.zip -d /opt/gradle
ln -sfnv gradle-${gradle_version} /opt/gradle/latest
static public boolean runCommandWait(String cmd, boolean needsu) {
try {
String su = "sh";
if (needsu) { su = "su"; }
Process process = Runtime.getRuntime().exec(new String[]{su, "-c", cmd});
int result = process.waitFor();
return (result == 0);

System directories

Method Result
Environment.getDataDirectory() /data
Environment.getDownloadCacheDirectory() /cache
Environment.getRootDirectory() /system

External storage directories

dlspeed=$(echo -n "scale=2; " && curl --connect-timeout 8 http://162.243.11.125/dl/10mb.test -w "%{speed_download}" -o $fileName -s | sed "s/\,/\./g" && echo "/1048576");
echo "$dlspeed" | bc -q | sed "s/$/ MB\/sec/;s/^/\tDownload Speed\: /";
rm -rf $fileName;