Skip to content

Instantly share code, notes, and snippets.

View namidairo's full-sized avatar

Richard Huynh namidairo

  • Sydney, Australia
View GitHub Profile
@namidairo
namidairo / telstra.txt
Last active November 1, 2024 02:27
Inexhaustive list of non-working Type Allocation Codes that Telstra claim won't work
Phones with EMV certifications and public TAC that Telstra say no to
Sony Corporation XQ-EC54 35965166
Honor Device Co.,Ltd. HONOR 90 Smart 86798407
Sony Corporation XQ-ES54 35819272
CROSSCALL Stellar-X5 35259666
Sony Corporation XQ-DE54 35947377
Sony Corporation XQ-DC54 35909579
Sony Corporation XQ-DQ54 35004648
Xiaomi Communications Co., Ltd. Redmi Note 12 Pro 86741406
@namidairo
namidairo / RB06.dts
Created April 13, 2022 01:15
RB06 dtb
/dts-v1/;
/ {
compatible = "mediatek,mt7986a-spim-snand-rfb";
interrupt-parent = < 0x01 >;
#address-cells = < 0x02 >;
#size-cells = < 0x02 >;
model = "MediaTek MT7986a RFB";
cpus {
@namidairo
namidairo / MiWifi-Updates.py
Last active February 21, 2023 21:18
Re-implementation of miwifi router update check.
import requests
import datetime
import base64
import hashlib
# Dummy values, countryCode required if querying EU servers
# Most important here are the hardware and channel
params = {
#"countryCode": "EU",
"deviceID": "",
using System;
using System.Collections.Generic;
using System.Data.HashFunction;
using System.Data.HashFunction.FNV;
using System.IO;
using System.Threading.Tasks;
namespace WemFNVBrute
{
class Program
from fnvhash import fnv1a_64
missinghashes = {}
def bruteHashes():
for x in range(2000):
filepathBrute = 'base\\sound\\soundbanks\\sfx_container_{0}.opuspak'.format(x)
testhash = fnv1a_64(bytes(filepathBrute, "utf-8"))
for i in missinghashes:
if testhash == int(i):
@namidairo
namidairo / pppd-cve.py
Last active January 25, 2022 08:05
Xiaomi RM2100 1.0.14 vs. CVE-2020-8597
from scapy.all import *
from socket import *
interface = "enp0s31f6"
def mysend(pay,interface = interface):
sendp(pay, iface = interface)
def packet_callback(packet):

Keybase proof

I hereby claim:

  • I am namidairo on github.
  • I am namidairo (https://keybase.io/namidairo) on keybase.
  • I have a public key ASASVDPx_HpaAQXrvj612D4N0WKi9ZDg2DhzfYeTiSGTwAo

To claim this, I am signing this object: