Skip to content

Instantly share code, notes, and snippets.

View grugq's full-sized avatar

thaddeus t. grugq grugq

View GitHub Profile
@grugq
grugq / sshclient.py
Created December 6, 2011 02:58
twisted ssh client (based on conch.py) with an embedded cmd.Cmd shell for controllng the SSH session
from twisted.internet import reactor, defer, endpoints, task, stdio
from twisted.conch.client import default, options, direct
from twisted.conch.error import ConchError
from twisted.conch.ssh import session, forwarding, channel
from twisted.conch.ssh import connection, common
from twisted.python import log, usage
import signal
import tty
import struct
import fcntl
@grugq
grugq / gist:7713916
Created November 30, 2013 00:43
The text from: http://dee.su/uploads/baal.html On Underground Communications
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Undercover communication
It should be obvious by now, that the only way to communicate
stealthily and securely is to avoid raising suspicion to the
level at which the authorities might consider it worthwhile
to put you under active surveillance (e.g., park a van with
TEMPEST equipment by your apartment).
@grugq
grugq / gist:03167bed45e774551155
Last active April 6, 2024 10:12
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@grugq
grugq / srv2 what could go wrong
Created November 6, 2014 21:18
silk road v2 what could go wrong
# Silk Road 2.0, What Could Possibly Go Wrong?
There are a number of risks with the reopened Silk Road. Rather than explore them
in depth, I'll look at some of the more serious security issues facing them.
[Ed: Since I began writing this in early December, at least some of what I
predicted has come to pass. Three of the moderators from the original Silk Road
have now been arrested.]
## Plenty of Possible Problems

Keybase proof

I hereby claim:

  • I am grugq on github.
  • I am grugq (https://keybase.io/grugq) on keybase.
  • I have a public key whose fingerprint is 6103 B780 CA99 5ABA BDC6 0C1A DB60 C7B9 BD53 1054

To claim this, I am signing this object:

Simple Security Guidelines

Using an iDevice? (Best option)

  • Use an iPod or an iPad without a SIM card
  • Use an iPhone
  • Do not jailbreak
  • Always upgrade to new iOS versions
  • Use Brave browser

Need Secure chat?

An IRA Reading List

Autobiographies

  • Insider: Gerry Bradley's Life in the IRA, Gerry Bradley
  • The Volunteer, Shane Paul O'Doherty
  • Watching the Door, Kevin Myers
  • MRF Shadow Troop, Simon Cursey
  • Southside Provisional, Kieran Conway
  • Fifty Dead Men Walking, Martin McGartland
mx
:%s/TGTIP/ACTUALTARGET/g
:%s/RHP/RHP/g
`x
-scan telnet TGTIP
-ping -r TGTIP -t -p 4000
-tunnel
#!/bin/bash
#
# 4633c8a2a16a8e0428d253baafb76bbc18f29562390c84d1c85ba98865531a2b
CRYPTER="base64 -b 78"
HEADER="----BEGIN PGP MESSAGE----"
FOOTER="-----END PGP MESSAGE-----"
do_encryption() {
local plain="$1"
@grugq
grugq / dracula_theme.vt
Created December 10, 2018 17:37
Dracula theme for the Linux console
# Dracula Theme for Consoles
#
# Console colors are set by the `setvtrgb` command which takes as argument a
# file of exactly three lines of text. These lines are the 0..255 values for
#
# red: black,red,green,yellow,blue,magenta,cyan,white,bold_black,bold_red,bold_green,bold_yellow,bold_blue,bold_magenta,bold_cyan,bold_white
# grn: black,red,green,yellow,blue,magenta,cyan,white,bold_black,bold_red,bold_green,bold_yellow,bold_blue,bold_magenta,bold_cyan,bold_white
# blu: black,red,green,yellow,blue,magenta,cyan,white,bold_black,bold_red,bold_green,bold_yellow,bold_blue,bold_magenta,bold_cyan,bold_white
#
# Needless to say, this is a very annoying format. Here are the values for