This is a really weird email that I received on April 1st, 2012 from an unknown sender 233558938299@dysgo.org. The email passed by Google's spam filters and found its way directly into my inbox. At first, I thought it was an elaborate April Fool's Day prank. Maybe it is. However, a tiny bit of research into the email address shows that people believe this to be a mass email sent periodically by a paranoid schizophrenic man from Japan. The email consisted only of the following 100 images arranged in this order. The text of the last image can be found at the end.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| from struct import * | |
| s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP) | |
| while True: | |
| pack = s.recvfrom(20000) | |
| #Get the single element from the tuple |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import base64, hashlib, hmac, json, sys, getpass | |
| from Crypto.Cipher import AES | |
| from Crypto.Hash import RIPEMD, SHA256 | |
| base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' | |
| def prompt(p): | |
| return getpass.getpass(p + ": ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """A simple Bloom Filter implementation | |
| Calculating optimal filter size: | |
| Where: | |
| m is: self.bitcount (how many bits in self.filter) | |
| n is: the number of expected values added to self.filter | |
| k is: the number of hashes being produced | |
| (1 - math.exp(-float(k * n) / m)) ** k | |
| http://en.wikipedia.org/wiki/Bloom_filter | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import base64, hashlib, hmac, json, sys, getpass | |
| from Crypto.Cipher import AES | |
| from Crypto.Hash import RIPEMD, SHA256 | |
| base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' | |
| def prompt(p): | |
| return getpass.getpass(p + ": ") |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from operator import itemgetter | |
| import multiprocessing | |
| import os | |
| import signal | |
| # yum install python-signalfd | |
| import signalfd | |
| import struct | |
| import threading | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # PoC tty_tickets spoofing exploit by Ryan Castellucci | |
| # Originally written October 2012, see CVE-2013-1776 | |
| # This does not implement using setsid to cause fallback | |
| DUMMY=/does/not/exist/$RANDOM/$RANDOM/$RANDOM/$RANDOM | |
| WAIT_LOOP=0 | |
| # Usage ./sudosudo.sh command [args] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <!-- | |
| Donation Address: 1NiNja1bUmhSoTXozBRBEtR8LeF9TGbZBN | |
| Notice of Copyrights and Licenses: | |
| *********************************** | |
| The bitaddress.org project, software and embedded resources are copyright bitaddress.org. | |
| The bitaddress.org name and logo are not part of the open source license. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def miller_rabin(n, k): | |
| # Implementation uses the Miller-Rabin Primality Test | |
| # The optimal number of rounds for this test is 40 | |
| # See http://stackoverflow.com/questions/6325576/how-many-iterations-of-rabin-miller-should-i-use-for-cryptographic-safe-primes | |
| # for justification | |
| # If number is even, it's a composite number | |
| if n == 2: |
OlderNewer







