Skip to content

Instantly share code, notes, and snippets.

View s1204IT's full-sized avatar
😮‍💨
very tired...

Syuugo s1204IT

😮‍💨
very tired...
View GitHub Profile
@s1204IT
s1204IT / mksysimg
Last active March 8, 2024 15:24
Android script command
#!/bin/bash
if [ -f "payload.bin" ]; then
payload_dumper payload.bin
else
find . -type f -name "*.br" -exec bash -c 'file="{}"; br=${file#./}; br=${br%%.br}; echo -e "Creating ${br}..."; brotli -d ${br}.br' \;
find . -type f -name "*.new.dat" -exec bash -c 'file="{}"; part=${file#./}; part=${part%%.new.dat}; echo -e "Creating ${part}.img..."; sdat2img ${part}.transfer.list ${part}.new.dat ${part}.img >/dev/null' \;
fi
echo "All done!"
@s1204IT
s1204IT / mtk-bootseq.py
Created February 19, 2024 09:57 — forked from plugnburn/mtk-bootseq.py
MTK Bootseq: enter alternative boot modes in MediaTek-based smartphones
#!/usr/bin/env python3
# Simple script to enter the necessary boot mode in the MT6572-based (etc) phones
# Depends on pyserial, otherwise fully cross-platform
# Usage: python3 mtk-bootseq.py [MODECMD] [port]
# e.g. python3 mtk-bootseq.py FASTBOOT /dev/tty.usbmodem14200
# and then connect the cable and repeatedly short-press the power on key
# Supported commands depend on the device and its preloader. Here's the list for Sigma S3500 sKai:
@s1204IT
s1204IT / IEOpener.ps1
Last active August 28, 2023 13:38
スクリプト置き場
(New-Object -ComObject InternetExplorer.Application).Visible=$true
@s1204IT
s1204IT / GetSecureFiles.ps1
Last active January 19, 2024 03:08
ヒマッセ関係
### 規約違反なので、完全自己責任! ###
# 会員番号 (10桁)
$z_id = ""
# パスワード (8~16文字)
$z_psw = ""
Clear-Host