Skip to content

Instantly share code, notes, and snippets.

v3l0c1r4pt0r /
Created Mar 7, 2021
Convert places.sqlite to bookmarks.html (allows import from Firefox for Android to Chrome/Chromium)
#!/usr/bin/env python3
# convert places.sqlite to bookmarks.html
import sqlite3
import sys
import json
if len(sys.argv) < 2:
print('Usage: {} places.sqlite > bookmarks.html'.format(sys.argv[0]))
v3l0c1r4pt0r /
Created Feb 1, 2021
Script for installing multi-APK applications in Android (requires root)
# install multi-file apk with pm
if [ "$(id -u)" -ne 0 ]; then
echo "Access denied!"
exit 1
if [ $# -lt 2 ]; then
echo "Usage: $0 name apk [[[apk] apk] ...]"
exit 1
v3l0c1r4pt0r / microwire.ino
Created Dec 13, 2020
Microwire sketch for Digispark
View microwire.ino
#include <DigiCDC.h>
#include <MicrowireEEPROM.h>
* +-----+---------+
* | Pin | Func |
* +-----+---------+
* | P0 | DO/DI |
* +-----+---------+
* | P1 | CLK/LED |
v3l0c1r4pt0r / GF-07.cfg
Last active Feb 19, 2021
Scatter file for GF-07 GPS device (3MB NOR flash)
View GF-07.cfg
config_version : alpha
platform: MT62xx
alignment: block
- file: bl_mt62xx_by_dfgigger.bin
v3l0c1r4pt0r / smaz.c
Last active Sep 2, 2019
SMAZ package decompressor (Work In Progress)
View smaz.c
// compile with:
// $ gcc -o smaz smaz.c -Iucl-1.03/include -lucl -Lucl-1.03/build/src/.libs
// or if you have ucl in system:
// $ gcc -o smaz smaz.c -lucl
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <arpa/inet.h>
#include <ucl/ucl.h>
v3l0c1r4pt0r /
Created Jan 30, 2019
Quick and dirty bitmap format support using makeelf classes
from makeelf.type.uint16 import uint16
from makeelf.type.uint32 import uint32
# \brief Bitmap main header
# \see
def __init__(self, bfType=0x4d42, bfSize=0, bfReserved1=0, bfReserved2=0,
bfOffBits=0, little=False):
v3l0c1r4pt0r /
Created Nov 25, 2018
Custom droidwall script to fix few things
# nobody uid - tethering
$IPTABLES -A droidwall-wifi -j RETURN -m owner --uid-owner 9999
# orbot - diffefent user
$IPTABLES -A droidwall -j RETURN -m owner --uid-owner <PIDOF-ORBOT>
# system - wifi check
$IPTABLES A droidwal-wifi -j RETURN -m owner --uid-owner 1000 -p tcp -d --dport 80
v3l0c1r4pt0r /
Created Jul 22, 2018
Cheat sheet for burning LUKS-encrypted BluRay Discs
# create image
truncate -s 25025314816 image.iso
sudo losetup /dev/loop1 image.iso
sudo cryptsetup luksFormat /dev/loop1
sudo cryptsetup luksOpen /dev/loop1 volume1
sudo mkudffs --label='disc label' -b 2048 /dev/mapper/volume1
sudo mount -t udf /dev/mapper/volume1 /mnt/iso/
# unmount
sudo umount /dev/mapper/volume1
v3l0c1r4pt0r /
Created May 23, 2018
Script for generating test pages for line printers (dot-matrix) for sake of charset identification
#!/usr/bin/env python3
# generate test page for printer
import os
a = b''
for c in range(32,256):
a +=bytes([c])
t = []
for i in range(0,16):
v3l0c1r4pt0r / Win10_1709_Polish_x64.iso.hash
Created Mar 24, 2018
Skróty Windows 10 Fall Creators Update
View Win10_1709_Polish_x64.iso.hash
MD5 93432f1acef0a47ff0eb11b988cd9bde Win10_1709_Polish_x64.iso
SHA1 567ec71d491a461dd85c75c0d1c1703de0ad0982 Win10_1709_Polish_x64.iso
SHA224 53889c6ec508a472bb870c76fcfe90a1c38318a4e3ecafdaf89d3a0a Win10_1709_Polish_x64.iso
SHA256 324f914c0267aec3edb8112a44e4104604eb0a20ab8a8ddf5e247f4ab5474c50 Win10_1709_Polish_x64.iso
SHA384 3f1c96859527086f5554dd83ffb027a31dc919309b60d3e4dc4fe8801fbb65ed4a74d57ffc862537d95f1ea8090174d8 Win10_1709_Polish_x64.iso
SHA512 2e0eec24ebd1368806b761ad1071a1ec5a2b5cc7e692d5388542f2cf4d649d48974767ead207fba09ba62f1f9d258cbd4d3008d16ead9d0270d346f49a9ed8dc Win10_1709_Polish_x64.iso