Skip to content

Instantly share code, notes, and snippets.

View taoeffect's full-sized avatar

Greg Slepak taoeffect

View GitHub Profile
sbx()
{
echo '(version 1) (trace "/tmp/traceout.sb")' > /tmp/tracein.sb
sandbox-exec -f /tmp/tracein.sb "$@"
sandbox-simplify /tmp/traceout.sb > /tmp/tracesimple.sb
open -a "Sublime Text" /tmp/tracesimple.sb
}
@taoeffect
taoeffect / gist:8258513
Created January 4, 2014 18:19
Traceroutes to and from my current location (in Miami) using apple.com, ufl.edu, and miami.edu.
$ traceroute apple.com
traceroute: Warning: apple.com has multiple addresses; using 17.172.224.47
traceroute to apple.com (17.172.224.47), 64 hops max, 52 byte packets
1 [HOME] (192.168.1.254) 1.992 ms 1.989 ms 13.267 ms
2 [REDACTED].miamfl.sbcglobal.net ([REDACTED]) 31.805 ms 27.143 ms 26.661 ms
3 * * *
4 * * *
5 * * *
6 12.83.70.13 (12.83.70.13) 89.778 ms
12.83.70.21 (12.83.70.21) 26.697 ms 27.636 ms
@taoeffect
taoeffect / gist:8855230
Created February 7, 2014 00:20
DNSChain + DNSCrypt! :-D
dnscrypt-proxy --local-address=127.0.0.1:53 --resolver-address=23.226.227.93:443 --provider-name=2.dnscrypt-cert.okturtles.com --provider-key=1D85:3953:E34F:AFD0:05F9:4C6F:D1CC:E635:D411:9904:0D48:D19A:5D35:0B6A:7C81:73CB
@taoeffect
taoeffect / tracker.php.patch
Last active August 29, 2015 13:56
Patch was emailed to Till Krüss on February 23, 2014. If you can't wait for him to update his Downloads pepper, you can manually apply the patch below. (Note: this was hacked together in a couple of hours. I don't usually code in PHP. I'm hoping he cleans it up and fixes any mistakes.)
--- tracker.php 2011-08-02 14:30:30.000000000 -0500
+++ blah.php 2014-02-24 10:52:23.000000000 -0600
@@ -33,12 +33,8 @@
$this->paranoid = isset($args['paranoid']) ? $args['paranoid'] : FALSE;
$this->db_prefix = $args['tblPrefix'];
- $this->db_id = mysql_connect($args['server'], $args['username'], $args['password']);
-
- mysql_select_db($args['database'], $this->db_id);
-

Keybase proof

I hereby claim:

  • I am taoeffect on github.
  • I am greg (https://keybase.io/greg) on keybase.
  • I have a public key whose fingerprint is C32D E666 4644 751C 9B80 D998 4B4D 4371 A884 B988

To claim this, I am signing this object:

@taoeffect
taoeffect / Google Spyware.md
Last active November 21, 2016 10:26
How to stop Google Chrome from violating your Mac
  1. Open the Terminal app (search for it in Spotlight)

  2. Enter the following command at the prompt to delete the offending files and folders (you will be prompted for your admin password):

     sudo rm -rf ~/Library/Google/GoogleSoftwareUpdate/*
    
  3. We're not done yet. Google will re-install its software update junk, so we have to change the owner and group of the folder to the "admin" user:

     sudo chown root:wheel ~/Library/Google/GoogleSoftwareUpdate
    
@taoeffect
taoeffect / attack.log
Created May 31, 2014 19:07
DNS attack pattern (anonymized, consistent mapping of first 3 octets)
2014-05-31T02:26:31.914Z - warn: [DNS] ignoring :: name=wln.www.citizenswebforum.com, ip=666.666.666.16
2014-05-31T02:26:33.035Z - warn: [DNS] ignoring :: name=nbcqrstuiwxlm.www.citizenswebforum.com, ip=666.666.666.18
2014-05-31T02:26:33.204Z - warn: [DNS] ignoring :: name=xdbnllpgokoelmx.www.citizenswebforum.com, ip=1.1.1.204
2014-05-31T02:26:33.205Z - warn: [DNS] ignoring :: name=yziujhftcwugxaz.www.citizenswebforum.com, ip=2.2.2.214
2014-05-31T02:26:33.410Z - warn: [DNS] ignoring :: name=lyvie.www.citizenswebforum.com, ip=666.666.666.17
2014-05-31T02:26:33.532Z - warn: [DNS] ignoring :: name=kxgladxuz.www.citizenswebforum.com, ip=3.3.3.157
2014-05-31T02:26:33.669Z - warn: [DNS] ignoring :: name=ihdzv.www.citizenswebforum.com, ip=666.666.666.18
2014-05-31T02:26:33.827Z - warn: [DNS] ignoring :: name=gsejo.www.citizenswebforum.com, ip=4.4.4.19
2014-05-31T02:26:33.830Z - warn: [DNS] ignoring :: name=ewtmy.www.citizenswebforum.com, ip=5.5.5.163
2014-05-31T02:26:33.952Z - warn: [DNS] ignoring :: name=sztpppvrap
@taoeffect
taoeffect / Espionage.dmg.sig
Created July 19, 2014 17:17
Signature for Espionage 3.6 DMG using key C32DE6664644751C9B80D9984B4D4371A884B988: https://www.taoeffect.com/other/A884B988.asc
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJTyqOhAAoJEOxnICvpCVJH5UsP/1lD+bp80Ka5aJLiIBhUYhvQ
jXoux/I2+/V+2Q5zfHr5RpReJmyKv126WPGLShOx5yJiuke+Y/xAvJ1RY1mmLlba
l1Vdlmrkjr1f0lw7zhkCxk7hEQ9jQh7zYWtuRAZGXF11BKxYTxzifJH1Ht6M1Q1P
6uNS86LXldN9aJZBp3M/dbv1tmD5YJYtV2gne29+Zh+irEGk9V37Yd9zMXLSuCBY
yWmpvgBT8QlWKXx9tpmCzUL3FjmpGjRQE5wIEGC5o9jWTZXdk6iaYRvLm3/GuTk9
zouowjGN+nnYSfSQPxTgctTvEAfmQM0NGAG9NMJbA2A7dUmtsOmJNNmSAjox6NVX
cLUHPV2bCrqhMM06NA05rpTlNsDBGR5fmzl/czzhYk+9BwL/iXyYi1gTN72Es3Ni
@taoeffect
taoeffect / Espionage.dmg.sig
Created October 3, 2014 17:27
Signature for Espionage 3.6.1
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJULtv7AAoJEOxnICvpCVJH8j0QAI7RCbhBu81GXPLCvntT7pGC
6M0u5vvjYhSEDjwduqpXe1ubjOJLAcY6I7Ju5msyCFHsFpL5jgiIAvldOg4q0+YW
C7ZlksTW9soQ+q6Phh/nfq78PaqMDrV1y0VewXzGVx3FYN3aWJXW3J5Uc9ZkaqSz
Er+qOsyX333BdX2F0jMp+wVC88yIpgShgI7qGnq83pUbFIEoGfgAWQK4tka/F0Gp
biNuNrlmTNbvXmWPXUebfToJoLh4c17rBPZ+U8hySAEtODUgWdfR+FgOGgQscorJ
Oij7+f3vz0jCxY7kjnjfvskgCD/cKV4S28cuJRZGTC2KRzNh4qYB1mQv1GQgkXYF
9aJFbmJfPJ6TceaasJ5MW6/FPARtMIfWkHSYoHawVlXKVnggOW52hICPDGHPRblM
@taoeffect
taoeffect / Espionage.dmg.sig
Created November 16, 2014 07:27
Signature for Espionage 3.6.2
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJUaFCbAAoJEOxnICvpCVJHFVkQAL3Odh4x0+pqLifS6GNnh+NG
iyHzCJz59KEsPCIIoVILLOf3bkPqt/LRF2FDQRdTCpxbg6MBXigMFmwz9bRoVEcu
98OmnnKE0qe/Zk5EcrpKfvr/5WctUIwao8Jl2PCdq56P/94U5Ma3jnxA1Jw/Yq8S
li4MIcjG58+aTnoSITIEpqdyDBpXeihvdl6MkP9ye0zCxn324VfTLNRNBBifnrzZ
Lp/RgD9EGNQqF6tp8/rEvdWbQVj0NOckK1063jBgM+aj9Vl1xoikrTVW3HlWvdpz
7JGPPNYMdXtLhmXtVXa3btImf/wkjnuoNDwrujcVU0xNB59Srl4c4/em5yDIW5Sp
+xm8seRG9gmiFd3AcsVWARj4VcCTEJyKEwdWnU4Xf8aqZ4E6wZbxT23y0ybEd6fc