转自——使用root跳过小米USB安装应用确认(续) | LeadroyaL's website
最近又抓来一台小米手机当测试机,部署环境时候发现了新的 usb 相关功能的修改方式。
众所周知,小米手机开启 USB 安装功能,需要插入 SIM 卡登陆、需要登小米账号。我这台手机已root,懒得登陆了,就准备通过修改文件的方式来开启相关功能,还真做到了。 关键词:root,无需 xposed,无需 frida。 测试环境:miui9、miui10、miui11、miui12。
转自——使用root跳过小米USB安装应用确认(续) | LeadroyaL's website
最近又抓来一台小米手机当测试机,部署环境时候发现了新的 usb 相关功能的修改方式。
众所周知,小米手机开启 USB 安装功能,需要插入 SIM 卡登陆、需要登小米账号。我这台手机已root,懒得登陆了,就准备通过修改文件的方式来开启相关功能,还真做到了。 关键词:root,无需 xposed,无需 frida。 测试环境:miui9、miui10、miui11、miui12。
For anynone that is running the latest version of binwalk (Binwalk v2.3.3
) and when trying to extract squshfs filesystems, gets the following error:
WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -le -d 'squashfs-root' '%e'': [Errno 2] No such file or directory: 'sasquatch', 'sasquatch -p 1 -le -d 'squashfs-root' '%e'' might not be installed correctly
it might have to do that the sasquatch
project is missing or not working correctly.
#!/usr/bin/env python | |
import os | |
import sys | |
import binascii | |
import struct | |
import random | |
import string | |
import re | |
import inspect |
from sage.all import * | |
import ast, sys, subprocess | |
import hashlib | |
from random import shuffle | |
from time import time | |
while True: | |
data = subprocess.check_output("nc 124.156.133.6 22298 </dev/null", shell=True).splitlines() | |
p = int(data[0]) | |
nums = ast.literal_eval(data[1].decode()) |
from sage.all import * | |
cipher = 5089249888618459947548074759524589606478578815336059949176718157024022678024841758856813241335191315643869492784030633661717346809979076682611760035885176766380484743187692409876479000444892361744552075578050587677106211969169204446554196613453202059517114911102484740265052582801216204900709316109336061861758409342194372241877343837978525533125320239702501424169171652846761028157198499078668564324989313965631396082388643288419557330802071756151476264735731881236024649655623821974147680672733406877428067299706347289297950375309050765330625591315867546015398294367460744885903257153104507066970239487158506328863 | |
e1 = 404631632429186691057151456165799596229515836470293346038946882707287286529392081426651522871043897025702106506439028114895075946268749807973667290687512894419814093148244974114798895978828271531030717098678340265519629670461128544775214995653130357468085954191024301467239122993438613247502430868685203292435795248909029555249146770214026315998267501893269257684795200 |
class IIter: | |
def __init__(self, m, n): | |
self.m = m | |
self.n = n | |
self.arr = [0 for _ in range(n)] | |
self.sum = 0 | |
self.stop = False | |
def __iter__(self): | |
return self |
# coding: utf-8 | |
""" | |
Implementation of the Tiny Encryption Algorithm (TEA) for Python | |
https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm | |
Example Usage: | |
import tea | |
# The key must be 16 characters |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<CodeBlocksConfig version="1"> | |
<editor> | |
<colour_sets> | |
<ACTIVE_COLOUR_SET> | |
<str> | |
<![CDATA[modnokai night shift v2]]> | |
</str> | |
</ACTIVE_COLOUR_SET> | |
<ACTIVE_LANG> |