Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
hacking intensifies

Tim Strazzere strazzere

:shipit:
hacking intensifies
View GitHub Profile
@strazzere
strazzere / pullapk.sh
Created Oct 16, 2013
Automatically find the path of an apk, perform a pull and rename without the number increments
View pullapk.sh
#!/bin/sh
adb shell pm path $1 |\
sed 's/package://' |\
tr -d '\r' |\
xargs -I % adb pull % $1.apk
@strazzere
strazzere / CheckSourceFileName.1sc
Created Oct 24, 2013
Run after using DEXTemplate.bt -- too slow to include in every template run, but can be used after running it if wanted
View CheckSourceFileName.1sc
//////////////////////////////////////////////////
// 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);
View keybase.md

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
EasterEggs in Hangouts
View EasterEggView.smali
.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 Jul 1, 2014
Leaked Zitmo Android Source
View InnerLayout.java
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 Jul 10, 2014
Most (all?) don't need verification
View lib_hwdevice_api.js
Ôªø(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 Aug 4, 2014
battery colored output for osx shell
View battery.sh
# 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 Aug 16, 2014
Compiling nasm on OSX Maverick
View gist:9d80ff2a883040944ae1
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 Aug 29, 2015
Leaked Simplocker.d Source
View MainActivity.java
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 Sep 16, 2014
Leaked Bangle Signer Source
View LocalStore.java
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 = "";