Skip to content

Instantly share code, notes, and snippets.

View av1d's full-sized avatar
🎯
Focusing

av1d

🎯
Focusing
View GitHub Profile
@av1d
av1d / mima.sh
Created January 26, 2022 05:59
Mount IMA or IMG floppy disk image in Linux/Bash
#!/bin/bash
# first chmod +x mima.sh
echo -e "Mount IMA or IMG file in Linux/Bash by av1d"
echo -e "Run as root/sudo.\n"
echo -e "Syntax: ./mima.sh LoopDeviceNumber file.ext /mount/path"
echo -e "Example: ./mima.sh loop6677 ./disk.img /media/floppy\n"
if [[ "$1" == "" ]]
@av1d
av1d / haxterisk.sh
Created January 26, 2022 06:18
Haxterisk - crack voicemail boxes with Asterisk
#!/bin/bash
# ** ** ** ** ** ********** ******** ******* ** ******** ** **
# /** /** **** //** ** /////**/// /**///// /**////** /** **////// /** **
# /** /** **//** //** ** /** /** /** /** /**/** /** **
# /********** ** //** //*** /** /******* /******* /**/*********/****
# /**//////** ********** **/** /** /**//// /**///** /**////////**/**/**
# /** /**/**//////** ** //** /** /** /** //** /** /**/**//**
# /** /**/** /** ** //** /** /********/** //**/** ******** /** //**
# // // // // // // // //////// // // // //////// // //
@av1d
av1d / btc.py
Last active February 20, 2022 19:13
Pull most recent TXIDs from the blockchain and play them as musical notes
import math
import random
import numpy as np
import simpleaudio as sa
from urllib.request import urlopen
from bs4 import BeautifulSoup
ResultsURL = "https://blockchain.com/btc/unconfirmed-transactions"
seconds = 1 # duration of tone. For more chaos, comment this out then uncomment seconds at the bottom of code
split_strings = []
@av1d
av1d / piano.py
Created February 22, 2022 17:50
Simple 1 octave piano in Python with live input
import numpy as np
import simpleaudio as sa
import os, sys, termios, time, tty
# Key mapping:
# W E T I U
# A S D F G H J K
#
# Which translates to:
# C#D# F#G#A#
@av1d
av1d / AE11A04.c
Last active February 25, 2022 07:59
AE11A04 DTMF encoder / tone generator example for Arduino
#define D0 3
#define D1 4
#define D2 5
#define D3 6
// Test example for AE11A04 DTMF encoder board for Arduino.
// Board uses an 8-bit microcontroller n76e003a120
// and DTMF encoder HT9200A.
/*
@av1d
av1d / hangle.py
Created February 25, 2022 22:33
Basic word guessing game in Python
import random
La=["cigar","rebut","sissy","humph","awake","blush","focal","evade","naval","serve","heath","dwarf","model","karma","stink","grade","quiet","bench","abate","feign","major","death","fresh","crust","stool","colon","abase","marry","react","batty","pride","floss","helix","croak","staff","paper","unfed","whelp","trawl","outdo","adobe","crazy","sower","repay","digit","crate","cluck","spike","mimic","pound","maxim","linen","unmet","flesh","booby","forth","first","stand","belly","ivory","seedy","print","yearn","drain","bribe","stout","panel","crass","flume","offal","agree","error","swirl","argue","bleed","delta","flick","totem","wooer","front","shrub","parry","biome","lapel","start","greet","goner","golem","lusty","loopy","round","audit","lying","gamma","labor","islet","civic","forge","corny","moult","basic","salad","agate","spicy","spray","essay","fjord","spend","kebab","guild","aback","motor","alone","hatch","hyper","thumb","dowry","ought","belch","dutch","pilot","tweed","comet","jaunt","enema","stee
@av1d
av1d / protelbox.py
Created February 27, 2022 07:22
Protel Box / green box (phreaking)
import time
import numpy as np
import simpleaudio as sa
# Protel Box by CyberThief
#
# This was the second to last actual phreaking box,
# the last being the Orange Box.
#
# If memory serves, this was some type of default outgoing message on a
@av1d
av1d / area_codes.csv
Last active March 14, 2022 07:29
Offline area code "lookup" tool
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
"Code","Territory or use","Date","Notes"
"200","not in use","","easily recognizable code (ERC)"
"201","New Jersey (Bergen County and Hudson County)","1947","originally covered all of New Jersey 1958, split to create 609 1991, split to create 908 1997, split to create 973 2001, overlaid by 551"
"202","Washington, D.C. (all)","1947","Overlaid by 771 on November 9, 2021"
"203","Connecticut (Bridgeport, Danbury, New Haven, Waterbury, and southwestern Connecticut)","1947","originally covered all of Connecticut 1995, split to create 860 2009, overlaid by 475"
"204","Manitoba","1947","2012, overlaid by 431 area code 584 is reserved as a third code for the region"
"205","Alabama (Birmingham; Tuscaloosa, and parts of western and central Alabama)","1947","originally covered all of Alabama 1995, split to create 334 1998, split to create 256 overlaid by 659 in 2019"
"206","Washington (Seattle, all of Bainbridge, Mercer, and Vashon islands, Burien, Des Moines, Lake Forest Park, Normandy Park, Sea-Tac, Shoreline, Tukwila,
@av1d
av1d / freq2note.py
Last active March 21, 2022 18:11
Converts a frequency to the closest musical note then plays it.
import math
import random
import numpy as np
import simpleaudio as sa
seconds = 3 # duration of tone
split_strings = []
dec_strings = []
notes = ['a', 'a#', 'b', 'c', 'c#', 'd', 'd#', 'e', 'f', 'f#', 'g', 'g#']
play_orig = False
@av1d
av1d / unfuckebay.css
Created April 26, 2022 19:13
Unfuck eBay's new seller listing tool interface, the most atrocious UI ever designed in the history of Earth! Accessible high contrast.
/* Fuck eBay? Then unfuck eBay.
Their new listing tool interface is the most atrocious contraption ever created.
It should be killed with fire and the dev sent to Mars. Anyone involved with its
design should be smothered in honey and laid atop a red ants nest.
Get the picture?
In the meantime, you can compact it and clean it up a bit.
Load this into stylebot addon for your browser.
Bugs: press alt+shift+t when you're NOT inside the listing tool because it will hide
item descriptions and possibly other elements on eBay pages.