Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
{ | |
"AuthParameters" : { | |
"USERNAME" : "[email protected]", | |
"PASSWORD" : "mysecret" | |
}, | |
"AuthFlow" : "USER_PASSWORD_AUTH", | |
"ClientId" : "9..............." | |
} |
/* | |
* 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 | |
*/ | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
) | |
type Something interface{} |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
#!/usr/bin/expect -f | |
set timeout 60 | |
set host [lindex $argv 0] | |
stty -echo | |
send_user -- "Password for $host: " | |
expect_user -re "(.*)\n" | |
send_user "\n" | |
stty echo | |
set password $expect_out(1,string) |
/* | |
Simple Sniffer in winsock | |
Author : Silver Moon ( [email protected] ) | |
*/ | |
#include "stdio.h" | |
#include "winsock2.h" | |
#pragma comment(lib,"ws2_32.lib") //For winsock |
umount: device is busy. Why? | |
There are several reasons why a file system cannot be unmounted. Here are a few of the reasons. | |
Working directory or file open of a running process | |
# umount /mnt/test | |
umount: /mnt/test: device is busy. | |
(In some cases useful info about processes that use | |
the device is found by lsof(8) or fuser(1)) | |
# lsof /mnt/test/ |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
struct { | |
char buffer[1024]; |