Skip to content

Instantly share code, notes, and snippets.

Donncha Ó Cearbhaill DonnchaC

Block or report user

Report or block DonnchaC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am donnchac on github.
  • I am donnchac ( on keybase.
  • I have a public key ASD_GTJsWifE9w34yRQPX9dhr8rJJXVmHCVpGnn6A6XyJgo

To claim this, I am signing this object:

DonnchaC /
Created Jul 6, 2017
CryptNote is an encryption app for Windows, Android and Linux alleged by Turkey to be used by "FETÖ" -
Cryptnote encryption algorithim
import hashlib
import base64
from binascii import unhexlify
from Crypto.Cipher import AES
DonnchaC / css-private-language-selector.html
Last active Dec 13, 2017
Show a translated page using only CSS and without leaking the language choice to the webserver
View css-private-language-selector.html
<!DOCTYPE html>
/* Hide the original text when a non-default language is selected */
#french:target ~ [data-i18n-fr],
#french:target ~ * [data-i18n-fr],
#french:target ~ * * [data-i18n-fr],
#french:target ~ * * * [data-i18n-fr] {
View terms-aggregation-on-object-fields.json
"ua": [
"doc_count": 2,
"key": "Facebook"
"doc_count": 1,
"key": "Other"
View README.vidalia
Vidalia Tor Bundles have been discontinued
The Vidalia Tor client and relay bundles are no longer supported. They client bundles have been replaced with the Tor Browser Bundle.
If you would like to run a Tor relay please download the a recent copy of Tor from the main Tor Project download page.
DonnchaC /
Created Oct 21, 2016
Simple script to strip all headers which are not included in the signature of a DKIM signed email
import re
import copy
import logging
import argparse
import email.parser
logger = logging.getLogger()
required_headers = ["dkim-signature", "content-type"]
DonnchaC / dkim-results.txt
Last active Oct 21, 2016
Another script for stripping unsigned content from an email -
View dkim-results.txt
# sudo apt-get install libmail-dkim-perl
# perl < 5205
signature identity:
verify result: pass
DonnchaC /
Created Sep 24, 2016
Huaiwei unlock code generator - Based on the disassembler generated C code in
# -*- coding: utf-8 -*-
import os
import hashlib
import argparse
import binascii
import struct
def encrypt_v1(imei, key):
View bwscanner-already-called.log
# bwscan --verbose scan --no-launch-tor -p 3000 --timeout 5
2016-07-31 20:15:40+0200 [-] Log opened.
2016-07-31 20:15:40+0200 [-] Verbose log mode is on.
2016-07-31 20:15:40+0200 [-] Using /home/donnncha/.config/bwscanner as the data directory.
2016-07-31 20:15:40+0200 [-] Connecting to a running Tor instance
2016-07-31 20:15:40+0200 [-] Connected to a Tor instance.
2016-07-31 20:15:40+0200 [-] Performing a measurement scan with 3 relays.
2016-07-31 20:15:40+0200 [-] Downloading over $8C7106C880FE8AA1319DD71B59623FCB8914C9F1, $0DB5577A293D70F014663C68364F4D449C4D62DD
2016-07-31 20:15:40+0200 [-] Starting factory <txsocksx.client.SOCKS5ClientFactory instance at 0x7f9a74571cf8>
2016-07-31 20:15:40+0200 [-] Downloading over $CCA1BE38F343CF1E1B4BB1857A786957B056DC0F, $C92EAF09EB7B2B6D63DB776F7A7C025075765D29
DonnchaC /
Created May 7, 2016
Rough script for reading Tor CIRC and a custom CELL control events and keep tracking of Tor's circuits and cells
# -*- coding: utf-8 -*-
Monitors Tor control port for descriptor lookups and INTRODUCE1
import os
import time
import datetime
import argparse
import logging
You can’t perform that action at this time.