This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; build with: nasm hello.asm | |
org 7c00h | |
mov ah, 3h | |
mov bh, 0 | |
int 10h | |
mov ax, cs | |
mov es, ax | |
mov cx, hello# | |
mov bh, 0 | |
mov dh, 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- DM9601 dissector for Wireshark | |
-- | |
-- Usage: wireshark -X lua_script:dm9601.lua | |
-- | |
p_dm9601 = Proto("dm9601", "DM9601 USB Protocol") | |
p_dm9601_ethin = Proto("dm9601_ethin", "DM9601 USB Protocol Ethernet Input Stream") | |
p_dm9601_ethout = Proto("dm9601_ethout", "DM9601 USB Protocol Ethernet Output Stream") | |
p_dm9601_irq = Proto("dm9601_irq", "DM9601 USB Protocol Interrupts") | |
local operations = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# convert DSView TXT dump of USB packet fields into valid PCAP file | |
import re | |
import sys | |
import struct | |
import os | |
from enum import IntEnum | |
class PCAP_Header(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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])) | |
sys.exit(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# install multi-file apk with pm | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "Access denied!" | |
exit 1 | |
fi | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 name apk [[[apk] apk] ...]" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <DigiCDC.h> | |
#include <MicrowireEEPROM.h> | |
/* | |
* +-----+---------+ | |
* | Pin | Func | | |
* +-----+---------+ | |
* | P0 | DO/DI | | |
* +-----+---------+ | |
* | P1 | CLK/LED | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
general: | |
config_version : alpha | |
platform: MT62xx | |
boot_region: | |
alignment: block | |
rom: | |
- file: bl_mt62xx_by_dfgigger.bin | |
external_memory: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from makeelf.type.uint16 import uint16 | |
from makeelf.type.uint32 import uint32 | |
## \class BITMAPFILEHEADER | |
# \brief Bitmap main header | |
# \see https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/ns-wingdi-bitmapfileheader | |
class BITMAPFILEHEADER: | |
def __init__(self, bfType=0x4d42, bfSize=0, bfReserved1=0, bfReserved2=0, | |
bfOffBits=0, little=False): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 connectivitycheck.gstatic.com --dport 80 |
NewerOlder