Skip to content

Instantly share code, notes, and snippets.

View Svenito's full-sized avatar

Sven Steinbauer Svenito

View GitHub Profile
@Svenito
Svenito / idle_scan.py
Created June 16, 2014 14:29
Run idle scan using scapy to craft packets
#!/bin/env python2.6
import os
import sys
from scapy.all import *
def is_root():
return os.getuid() == 0
@Svenito
Svenito / ImagePlayer.py
Created November 2, 2012 10:28
Python class to play an animated gif using PyQt
class ImagePlayer(QWidget):
def __init__(self, filename, title, parent=None):
QWidget.__init__(self, parent)
# Load the file into a QMovie
self.movie = QMovie(filename, QByteArray(), self)
size = self.movie.scaledSize()
self.setGeometry(200, 200, size.width(), size.height())
self.setWindowTitle(title)
@Svenito
Svenito / fblock.txt
Created August 1, 2019 08:12
Block facebook minus insta
############################################
# To Completely Block Facebook
# Add these entries below to your hosts file
#
# Your hosts file Location:
# Linux, Unix and Mac OS X -> /etc/hosts
# Windows XP, Vista, Windows 7, 8.0, 8.1, 10 -> C:\WINDOWS\system32\drivers\etc\hosts
# Windows 2000 -> C:\WINNT\system32\drivers\etc\hosts
# Windows 98/ME -> C:\WINDOWS\hosts
#
@Svenito
Svenito / content_discovery_all.txt
Created April 15, 2019 10:39 — forked from jhaddix/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
@Svenito
Svenito / xorsearch.py
Last active June 30, 2017 11:50
simple xored string search using r2pipe
import r2pipe
import sys
import base64
@Svenito
Svenito / .pythonstartup
Last active February 4, 2016 14:18
Python startup file
# python startup file
import readline
import rlcompleter
import atexit
import os
# tab completion
readline.parse_and_bind('tab: complete')
# history file
histfile = os.path.join(os.environ['HOME'], '.pythonhistory')
try:
@Svenito
Svenito / houchangelog.py
Created April 18, 2013 10:14
Script gets the changes between two build versions of Houdini from the journal and outputs them in a more traditional changelog format. Be sensible with how much data you want to get! Requires the Beautiful soup and requests libraries
#!/usr/bin/env python2.7
from BeautifulSoup import BeautifulSoup
from textwrap import TextWrapper
import requests
import collections
import sys
import re
@Svenito
Svenito / retio.py
Last active December 11, 2015 13:28
Plot the ratio of up/down votes of reddit subreddits in a box plot (https://en.wikipedia.org/wiki/Box_plot) To use call with subreddit names: ./retio.py funny pics programming python Requires matplotlib
#!/usr/bin/python
import simplejson
import urllib
import sys
import time
import pylab
import matplotlib.pyplot as plt
def getRatios(subreddit):
@Svenito
Svenito / getband.py
Created November 6, 2012 14:57
Create a random album cover
#!/usr/bin/env python2.6
import urllib
from xml.dom import minidom
from optparse import OptionParser
import subprocess
import re
from HTMLParser import HTMLParser
import random
@Svenito
Svenito / getalbum.py
Created October 15, 2012 09:59
Random Album Generator
#!/usr/bin/env python2.6
import urllib
from xml.dom import minidom
from optparse import OptionParser
import subprocess
import re
from HTMLParser import HTMLParser
import random