This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct fota_seg_hdr { | |
uint32_t crc; | |
uint32_t size; | |
uint32_t upi_ver; // seems to be 0x00014050 | |
uint32_t scout_ver; // seems to be 0x00013880 | |
uint32_t flags1; | |
uint32_t flags2; | |
uint32_t field_18; | |
uint32_t field_1c; | |
uint32_t index_offset; // index data offset in unLZMAed data(strings starts from 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tewilove.unlock.pb25; | |
import java.util.HashMap; | |
import java.util.Map; | |
import de.robv.android.xposed.IXposedHookLoadPackage; | |
import de.robv.android.xposed.XC_MethodHook; | |
import de.robv.android.xposed.XposedBridge; | |
import de.robv.android.xposed.XposedHelpers; | |
import de.robv.android.xposed.callbacks.XC_LoadPackage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$target = isset($argv[1]) ? $argv[1] : "modem"; | |
$out = shell_exec("readelf -l ${target}.mdt 2>/dev/null"); | |
// printf($out); | |
$seg = array(); | |
$lines = split("\n", $out); | |
for ($i = count($lines) - 1; $i >= 0; $i--) { | |
if (!strstr($lines[$i], "NULL") && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* SHARP fldr mode | |
* tewilove@gmail.com, All rights reserved | |
* | |
*/ | |
#include <sys/types.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* data: | |
* IV: 16 bytes | |
* AESed Data( | |
* data: | |
* data: | |
* info: offset 0x200,24 | |
* 0x220,240 | |
* name: offset 0x400,8(DL50, etc) | |
* ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$req = array( | |
"method" => "get_all_builds", | |
"params" => array( | |
"device" => "icesky_msm8992_user", // ro.product.device + "_" + ro.build.type | |
"version" => "2.5.3-2016012303-user-is", // ro.smartisan.version | |
"buildtime" => "1453489594", // ro.build.date.utc | |
"deviceid" => "990006210028584", // IMEI | |
"flag" => "0", // rooted | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* SHARP shdiag mode | |
* tewilove@gmail.com, All rights reserved | |
* | |
*/ | |
#include <sys/types.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* SHARP FOTA parser DEMO | |
* tewilove@gmail.com, All rights reserved | |
* | |
*/ | |
#include <sys/types.h> | |
#include <sys/stat.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The BUG: | |
* *(obj + offset_v4) remains unchanged. | |
* Subsequential allcation will return a live object. | |
* Side effect: | |
* *(obj + offset_v6) = 0. | |
* The page will be linked into v6 slab CPU partial list. | |
* Plan A: | |
* A full slab. | |
* 1 2 3 4 W A B C D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s /path/to/victim /data/local/tmp/ooxx | |
echo 'GO-RLOG local/tmp/ooxx with me' > /data/tmp/logd_cmd |
OlderNewer