Skip to content

Instantly share code, notes, and snippets.

View harmonbc's full-sized avatar

Brandon Harmon harmonbc

  • Student @ Miami University
  • Hamilton, OH
View GitHub Profile
@harmonbc
harmonbc / ffhisttocsv.py
Created April 10, 2014 15:10
Turn Firefox's History into a CSV file.
"""
@author: Brandon Harmon
@date : 9 April, 2014
@description:
Pass this program the location of the places.sqlite file for firefox
(for me it is ~/.mozilla/firefox/mwad0hks.default/places.sqlite)
It will output a csv file where you designate in the 2nd param
"""
import sqlite3 as lite
@harmonbc
harmonbc / GetPeers.py
Created December 7, 2012 13:32
Print out all Torrent IP Addresses
#!/usr/bin/python
#Heavily based on libtorrent example
#Did this to print examples of what information is being processed at different parts of the bittorrent protocol
import libtorrent as lt
import time
import sys
class SmallClient:
def __init__(self):
@harmonbc
harmonbc / track_ip_address.py
Created November 4, 2012 16:52
Get public IP
#!/usr/bin/env python3
import urllib.request
import sys
import smtplib
import os
#Sending text alert
def send(body, to="#Email Address to send to", username = "#User Name @gmail.com", password="#Password"):
mail_server= smtplib.SMTP("smtp.gmail.com", 587)