Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
#include <speex/speex.h> | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <iterator> | |
#include <cassert> | |
int main(int argc, char const *argv[]) | |
{ | |
if (argc < 2) |
gcc libwebsockets-websocket.c -L/usr/local/lib -lwebsockets |
/** | |
_____ _____ _ | |
| __ \ / ____| | | | |
| | | | ___| | _ __ _ _ _ __ | |_ ___ _ __ | |
| | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__| | |
| |__| | __/ |____| | | |_| | |_) | || (_) | | | |
|_____/ \___|\_____|_| \__, | .__/ \__\___/|_| | |
__/ | | | |
|___/|_| | |
*/ |
#include <iostream> | |
#include <cstdio> | |
#include <cassert> | |
// | |
// init | |
// | |
const int STACK_SIZE = 1000; | |
thread_local int stack[STACK_SIZE]; | |
int BP; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
void jackpot() { puts("jackpot!"); } | |
int main() | |
{ | |
puts("[+] allocate p1, p2"); | |
char *p1 = malloc(0x100); |
Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell
and then run-as com.mypackage
( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs
),
but on a production release app downloaded from an app store you're most likely to see:
run-as: Package 'com.mypackage' is not debuggable
Video of this code being run: https://vimeo.com/152923160/settings
First, I would google for an image that represented what I had to draw. Then ran this code in pry to convert it into a set of x, y coordinates that should be dark:
require 'chunky_png'
canvas = ChunkyPNG::Canvas.from_file('scarface.png').grayscale