Skip to content

Instantly share code, notes, and snippets.

View thefinn93's full-sized avatar

Finn thefinn93

View GitHub Profile
@thefinn93
thefinn93 / pythonomegle.py
Created December 31, 2011 06:07
Python Omegle Bot v0.1
#! /usr/bin/env python
# Omegle Bot v0.1
# Copyleft 2012 thefinn93
# Do not run with author permission
# Do not legally obtain this file. It is illegal
# If I catch you with a legal copy of this file I will sue you.
# Dependencies:
# - requests (python-requests.org)
@thefinn93
thefinn93 / hypedns.py
Created February 15, 2012 03:17
Update nodeinfo.hype from a text based interface
#!/usr/bin/env python
import httplib2
import sys
import json
from urllib import urlencode
h = httplib2.Http(".cache")
print "Please hold while we retrive your IP address..."
r,ip = h.request("http://[fc72:6c3b:8c74:68a7:d8c3:b4e0:6cbd:9588]/ip/","GET")
url = "http://[fc5d:baa5:61fc:6ffd:9554:67f0:e290:7535]/node/details/" + ip + "/save"
print "Looks like your IP is " + ip
@thefinn93
thefinn93 / IRC.java
Created February 16, 2012 04:38
Simple Java IRC bawt
package irc;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
public class IRC {
@thefinn93
thefinn93 / sniffmacs.py
Created February 16, 2012 21:22
Sniff MAC addresses
#! /usr/bin/env python
from scapy.all import *
import sys
macs = set()
routerprefix = "00:24:6c"
try:
print "Importing from " + sys.argv[1]
package portscanner;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;
public class PortScanner {
@thefinn93
thefinn93 / xkcd.xml
Created March 12, 2012 19:56
HTTPS everywhere ruleset
<ruleset name="xkcd">
<target host="xkcd.com" />
<target host="xkcd.org" />
<target host="*.xkcd.com" />
<target host="*.xkcd.org" />
<target host="www.store.xkcd.com" />
<rule from="^http://(www\.|m\.)?xkcd\.(?:com|org)/"
to="https://$1xkcd.com/" />
<rule from="^http://(?:www\.)?store\.xkcd\.com/"
@thefinn93
thefinn93 / cfddns.py
Created April 17, 2012 18:57
Cloudflare DDNS
#!/usr/bin/env python
import sys
try:
import requests
except:
"Install python requests asshole!"
sys.exit()
import json
@thefinn93
thefinn93 / wallbase.py
Created April 22, 2012 06:38
Wallbase.cc Scraper
#! /usr/bin/env python
import sys
import json
import subprocess
import urllib
try:
import requests
except:
print "Install requests (try easy_install requests)"
sys.exit()
@thefinn93
thefinn93 / cron.sh
Created May 24, 2012 20:04
CJDNS map
#! /bin/bash
LOGFILE="/var/log/cjdnsmap.log"
CJDADMIN_IP="127.0.0.1"
CJDADMIN_PORT="11234"
CJDADMIN_PASS="hax"
date > $LOGFILE
/home/finn/cjdnsmap/cjdnsmap.py $CJDADMIN_IP $CJDADMIN_PORT $CJDADMIN_PASS /home/finn/cjdnsmap
@thefinn93
thefinn93 / createtables.sql
Created May 28, 2012 03:12
CJDNS registery
CREATE TABLE IF NOT EXISTS `nodes` (
`name` text NOT NULL,
`lat` double NOT NULL,
`lon` double NOT NULL,
`icon` text NOT NULL,
`ip` text NOT NULL,
`publickey` text NOT NULL,
`password` text NOT NULL,
`fcip` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;