Skip to content

Instantly share code, notes, and snippets.

View symm's full-sized avatar
🦄

Gareth Jones symm

🦄
View GitHub Profile
from fractions import gcd
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
def egcd(a, b):
if a == 0:
return (b, 0, 1)
@symm
symm / nessus-dl.sh
Last active February 14, 2021 13:06
MD5 (NessusAgent-6.10.2-es7.x86_64.rpm) = 0a42d5838aac2e468663463e1133a6e3
9cd362cd591eda8626ef96bdf9ece2220ee8a5c4 NessusAgent-6.10.2-es7.x86_64.rpm
Anti Hijack Feature
1. Turn on ignition until the dash lights come on but don't start engine!
2. Lock the door using the lever on the door handle and then unlock 3 Times
3. Turn off ignition
4. Repeat 2 but with ignition OFF
@symm
symm / Makefile
Created November 5, 2016 14:17
avrfid
# Hey Emacs, this is a -*- makefile -*-
# AVR-GCC Makefile template, derived from the WinAVR template (which
# is public domain), believed to be neutral to any flavor of "make"
# (GNU make, BSD make, SysV make)
MCU = attiny85
FORMAT = ihex
TARGET = avrfid
diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c
index 1242886..8d9c6f0 100644
--- a/utils/nfc-mfclassic.c
+++ b/utils/nfc-mfclassic.c
@@ -431,8 +431,8 @@ write_card(int write_block_zero)
}
} else {
// The first block 0x00 is read only, skip this
- if (uiBlock == 0 && ! write_block_zero && ! magic2)
- continue;
#! /bin/sh
upSeconds=`/usr/bin/cut -d. -f1 /proc/uptime`
secs=$(($upSeconds%60))
mins=$(($upSeconds/60%60))
hours=$(($upSeconds/3600%24))
days=$(($upSeconds/86400))
UPTIME=`printf "%d days, %02dh %02dm %02ds " "$days" "$hours" "$mins" "$secs"`
echo "\033[0;32m
.~~. .~~. \033[0;37m`date +"%A, %e %B %Y, %R"`\033[0;32m
@symm
symm / unix
Last active July 3, 2016 10:14 — forked from xero/unix
curl -L git.io.unix
,_ ,_==▄▂
, ▂▃▄▄▅▅▅▂▅¾. / /
▄▆<´ "»▓▓▓%\ / / / /
,▅7" ´>▓▓▓% / / > / >/%
▐¶▓ ,»▓▓¾´ /> %/%// / /
▓▃▅▅
https://www.raspberrypi.org/magpi-issues/MagPi01.pdf
https://www.raspberrypi.org/magpi-issues/MagPi02.pdf
https://www.raspberrypi.org/magpi-issues/MagPi03.pdf
https://www.raspberrypi.org/magpi-issues/MagPi04.pdf
https://www.raspberrypi.org/magpi-issues/MagPi05.pdf
https://www.raspberrypi.org/magpi-issues/MagPi06.pdf
https://www.raspberrypi.org/magpi-issues/MagPi07.pdf
https://www.raspberrypi.org/magpi-issues/MagPi08.pdf
https://www.raspberrypi.org/magpi-issues/MagPi09.pdf
https://www.raspberrypi.org/magpi-issues/MagPi10.pdf
find . -name '*.java' ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;