This file contains 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 pcap, dpkt, socket | |
import os | |
import time | |
pc = pcap.pcap('eth0') | |
ports = (80, 8080, 443, 888) | |
def process(): | |
t = time.time() | |
i = 0 |
This file contains 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
''' | |
Author : Jay Rambhia | |
Git : https://github.com/jayrambhia | |
gist : https://gist.github.com/jayrambhia | |
''' | |
import urllib2 | |
from BeautifulSoup import BeautifulSoup | |
from mechanize import Browser | |
import re |
This file contains 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
""" | |
@author: jay | |
""" | |
from BeautifulSoup import BeautifulSoup | |
import gdbm | |
import pickle | |
import time | |
def main(): |
This file contains 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
""" | |
Created on Fri Jan 27 21:48:58 2012 | |
@author: jay | |
""" | |
import json | |
import os | |
import gdbm | |
import time |
This file contains 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
''' | |
Author : Jay Rambhia | |
email : [email protected] | |
twitter: @jayrambhia | |
''' | |
import os | |
import time | |
import threading | |
import sys | |
from multiprocessing import Process |
This file contains 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
''' | |
Author: Jay Rambhia | |
email : [email protected] | |
A new script supporting both Mozilla Firefox and Google Chrome bookmarks: | |
https://github.com/jayrambhia/Bookmark-Manager | |
''' | |
import os | |
import json | |
import pickle | |
import gdbm |
This file contains 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 os | |
def makeDir(path): | |
if os.path.isdir(path): | |
return | |
dir1, dir2 = os.path.split(path) | |
makeDir(dir1) | |
os.mkdir(path) | |
return |
This file contains 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 pygtk | |
pygtk.require('2.0') | |
import gtk | |
import os | |
class TextBox: | |
def __init__(self): | |
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) | |
self.window.set_size_request(200,250) | |
self.window.connect("destroy", self.close_application) |
This file contains 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 os | |
import mimetypes | |
def main(): | |
target_file = raw_input('Enter the name of the file(Separate with comma): ') | |
target_type = raw_input('Enter the type of the file(Separate with spaces): ').split() | |
target_dir = raw_input('Enter directory (Press Enter for current directory)(Separate with comma): ') | |
flag = 0 | |
if target_file: | |
target_file = target_file.split(',') |
This file contains 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 urllib2 | |
import os | |
from BeautifulSoup import BeautifulSoup | |
BASE_URL = "http://xkcd.com" | |
proxy = {"http":"http://user:pass@proxy:port/", | |
"https":"https://user:pass@proxy:port/"} | |
Proxy = urllib2.ProxyHandler(proxy) | |
opener = urllib2.build_opener(Proxy) |
OlderNewer