Skip to content

Instantly share code, notes, and snippets.

Roman Ananyev aTastyCookie

Block or report user

Report or block aTastyCookie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mailru_blocker_for_iptables.sh
#!/bin/bash
##### IP RANGE #####
ip=(
"5.61.16.0/21"
"5.61.232.0/21"
"79.137.157.0/24"
"79.137.174.0/23"
"79.137.183.0/24"
"94.100.176.0/20"
View rknblock.py
# -*- coding: utf-8 -*-
import socket
import binascii
import sys
SUBNET_LIST = {
"52.56.0.0/16": "Amazon AWS",
"206.189.0.0/16": "DigitalOcean",
"167.99.0.0/16": "DigitalOcean",
"165.227.0.0/16": "DigitalOcean",
View gist:2190e989a290f201b125eea8c290476d
### Keybase proof
I hereby claim:
* I am atastycookie on github.
* I am ananev (https://keybase.io/ananev) on keybase.
* I have a public key ASCbb3lrKJa1ccKbIyzhiFh3CJoEtVxqNz-fwupBP-XBPAo
To claim this, I am signing this object:
View xss.payloads.md

<iframe/src=javascript:%2561%256c%2565%2572%2574``>

View adbtext.py
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
install gradle latest 2.13
View install_gradle.sh
#!/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
View systemApp.java
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);
View android.path.md

System directories

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

External storage directories

View speedtest.sh
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;
You can’t perform that action at this time.