Skip to content

Instantly share code, notes, and snippets.

View grugq's full-sized avatar

thaddeus t. grugq grugq

View GitHub Profile
@grugq
grugq / ppw
Last active July 14, 2022 05:54
passphrase generator using cmdline tools because wtf not
#!/bin/bash
#
# simplistic program that creates passphrases using bash. the passphrases
# are a Number of '-' separated words, ea. of max Chars, with limited post
# processing (upper case, lower case, 1337.)
#
# (c) 2019, thaddeus t. grugq <the.grugq@gmail.com>
#
CRACKLIB=/usr/share/dict/cracklib-small
Give a man an 0day and he'll have access for a day, teach a man to phish and he'll have access for life.
https://twitter.com/thegrugq/status/563964286783877121
--
You can get 25% off a Mandiant incident response with the code: ITWASCHINA. 100% off if you just use that code as the report.
https://twitter.com/thegrugq/status/600345075562909696
--
Fear of 0day is like being terrified of ninjas instead of cardiovascular disease.
https://twitter.com/thegrugq/status/851001030019907588
@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
#!/bin/bash
#
# 4633c8a2a16a8e0428d253baafb76bbc18f29562390c84d1c85ba98865531a2b
CRYPTER="base64 -b 78"
HEADER="----BEGIN PGP MESSAGE----"
FOOTER="-----END PGP MESSAGE-----"
do_encryption() {
local plain="$1"
mx
:%s/TGTIP/ACTUALTARGET/g
:%s/RHP/RHP/g
`x
-scan telnet TGTIP
-ping -r TGTIP -t -p 4000
-tunnel

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

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?

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:

@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
@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.