Skip to content

Instantly share code, notes, and snippets.

View DonnchaC's full-sized avatar

Donncha Ó Cearbhaill DonnchaC

View GitHub Profile
@DonnchaC
DonnchaC / dkim-results.txt
Last active October 21, 2016 20:47
Another script for stripping unsigned content from an email - https://gist.github.com/DonnchaC/070b82ab465ae0b9babc0004b05694c2
# sudo apt-get install libmail-dkim-perl
# perl validate-dkim.pl < 5205
signature identity: @hillaryclinton.com
verify result: pass
pass
@DonnchaC
DonnchaC / dkim-email-repair.py
Created October 21, 2016 20:11
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()
logger.setLevel(logging.DEBUG)
required_headers = ["dkim-signature", "content-type"]
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.
https://blog.torproject.org/blog/plain-vidalia-bundles-be-discontinued-dont-panic
If you would like to run a Tor relay please download the a recent copy of Tor from the main Tor Project download page.
https://www.torproject.org/download/download.html.en
"ua": [
{
"doc_count": 2,
"key": "Facebook"
},
{
"doc_count": 1,
"key": "Other"
},
{
@DonnchaC
DonnchaC / css-private-language-selector.html
Last active December 13, 2017 19:54
Show a translated page using only CSS and without leaking the language choice to the webserver
<!DOCTYPE html>
<html>
<head>
<style>
/* 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] {
@DonnchaC
DonnchaC / cryptnote.py
Created July 6, 2017 13:12
CryptNote is an encryption app for Windows, Android and Linux alleged by Turkey to be used by "FETÖ" - http://www.aksam.com.tr/guncel/fetonun-yeni-haberlesme-agi-cryptnote-desifre-edildi/haber-639566
"""
Cryptnote encryption algorithim
"""
import hashlib
import base64
from binascii import unhexlify
from Crypto.Cipher import AES
"""
@DonnchaC
DonnchaC / keybase.md
Last active September 15, 2019 19:14

Keybase proof

I hereby claim:

  • I am donnchac on github.
  • I am donnchac (https://keybase.io/donnchac) on keybase.
  • I have a public key ASD_GTJsWifE9w34yRQPX9dhr8rJJXVmHCVpGnn6A6XyJgo

To claim this, I am signing this object: