Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
| /* | |
| Simple Sniffer in winsock | |
| Author : Silver Moon ( [email protected] ) | |
| */ | |
| #include "stdio.h" | |
| #include "winsock2.h" | |
| #pragma comment(lib,"ws2_32.lib") //For winsock |
| /* | |
| * dropbox_ext4.c | |
| * | |
| * Compile like this: | |
| * gcc -shared -fPIC -ldl -o libdropbox_ext4.so dropbox_ext4.c | |
| * | |
| * Run Dropbox like this: | |
| * LD_PRELOAD=./libdropbox_ext4.so ~/.dropbox-dist/dropboxd | |
| */ | |
| /* | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| */ | |
| #include <arpa/inet.h> | |
| #include <linux/if_packet.h> | |
| #include <stdio.h> |
| // keepDoingSomething will keep trying to doSomething() until either | |
| // we get a result from doSomething() or the timeout expires | |
| func keepDoingSomething() (bool, error) { | |
| timeout := time.After(5 * time.Second) | |
| tick := time.Tick(500 * time.Millisecond) | |
| // Keep trying until we're timed out or got a result or got an error | |
| for { | |
| select { | |
| // Got a timeout! fail with a timeout error | |
| case <-timeout: |
| #!/bin/env/python | |
| import hashlib | |
| import binascii | |
| # Utility methods for generating and comparing RabbitMQ user password hashes. | |
| # | |
| # Rabbit Password Hash Algorithm: | |
| # | |
| # Generate a random 32 bit salt: | |
| # CA D5 08 9B |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" |
| package main | |
| import ( | |
| "net/http" | |
| ) | |
| type SingleHost struct { | |
| handler http.Handler | |
| allowedHost string | |
| } |