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
#!/usr/bin/env python | |
import os | |
import struct | |
import sys | |
MD1IMG_MAGIC1 = 0x58881688 | |
MD1IMG_MAGIC2 = 0x58891689 | |
def main(): |
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
// ==UserScript== | |
// @name Legacy QC link fixer | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-23 | |
// @description Redirect invalid codeaurora URL to the codelinaro one. | |
// @author tewilove | |
// @match https://source.android.com/docs/security/bulletin/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// ==/UserScript== |
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
#include <sys/types.h> | |
#include <fcntl.h> | |
#include <inttypes.h> | |
#include <unistd.h> | |
#include "f-04j.h" | |
#define OFFSET_ENTRY 0xA0 | |
#define OFFSET_DATA 0x3620 | |
struct nv_entry { |
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
B - 724192 - huawei_oba_mode_check begin | |
B - 2539125 - emmc read sucessfully | |
B - 2546231 - huawei_sd_auto_update_check: init efs error | |
B - 2553338 - huawei_check_sd_app_exist | |
B - 2739235 - card and update.app are all exist | |
B - 2793342 - huawei_check_sd_boot | |
B - 2807128 - Error mounting /hdev/sdc1h0p33 on /sys_boot : 1024 |
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
#include <sys/types.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <err.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stddef.h> | |
#include <stdio.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
#/bin/env python | |
from idautils import * | |
from idaapi import * | |
from ida_bytes import * | |
from ida_segment import * | |
PAGE_SIZE = 4096 | |
# Tested version: |
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
#/bin/env python | |
from idautils import * | |
from idaapi import * | |
from ida_bytes import * | |
from ida_segment import * | |
PAGE_SIZE = 4096 | |
# Tested version: |
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
--c736578b1d7c82e2df2a4f770e46ecb3e50c393776a03300ab45428cec78ecda ./rootfs/usr/sbin/checkupgrade.lua | |
--d0069d4b6c0bb716b07e0e014757f99f7baaabf7b270d17da6bfc5637a4cb2bb ./rootfs/usr/sbin/checkupgrade.lua.dec | |
local L0, L1, L2, L3, L4, L5, L6, L7, L8, L9, L10, L11, L12, L13, L14, L15, L16, L17, L18, L19, L20, L21, L22, L23, L24, L25 | |
L0 = require | |
L1 = "xiaoqiang.common.XQConfigs" | |
L0 = L0(L1) | |
L1 = require | |
L2 = "xiaoqiang.common.XQFunction" | |
L1 = L1(L2) | |
L2 = require |
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
#include <dlfcn.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
typedef int (*nv_cmd_remote_t)(int, int, void *); | |
int main(int argc, char *argv[]) | |
{ |
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 |
NewerOlder