I hereby claim:
- I am deadbits on github.
- I am deadbits (https://keybase.io/deadbits) on keybase.
- I have a public key whose fingerprint is D65D 4712 2018 9C21 E5D2 13B5 D65E F900 37DD 79AF
To claim this, I am signing this object:
#!/usr/bin/python | |
''' Not my script, found on the Internet, and rediscovered on my hard drive | |
''' | |
import sys | |
def cidr_to_regex(cidr): | |
ip, prefix = cidr.split('/') | |
base = 0 | |
for val in map(int, ip.split('.')): |
Functions and Methods (function or method docstrings) | |
@param p: ... A description of the parameter p for a function or method. It may appear in the class docstring to describe a costructor parameter: mostly useful for C extensions. | |
@type p: ... The expected type for the parameter. p. | |
@return: ... The return value for a function or method. | |
@rtype: ... The type of the return value for a function or method. | |
@keyword p: ... A description of the keyword parameter p. It may appear in the class docstring to describe a costructor keyword parameter. | |
@raise e: ... A description of the circumstances under which a function or method raises exception e. It may appear in the class docstring to describe an exception that can be raised by the costructor. | |
Variables (module, class or variable docstrings) |
""" | |
Build recursive hash of files in directory tree in hashdeep format. | |
Hashdeep format description: | |
http://md5deep.sourceforge.net/start-hashdeep.html | |
hashdeep.py differences from original hashdeep: | |
- if called without arguments, automatically starts to build |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python | |
from scapy.all import * | |
localIP = [x[4] for x in scapy.all.conf.route.routes if x[2] != '0.0.0.0'][0] | |
splitIP = localIP.split('.') | |
splitIP[3:] = (['0/24']) | |
IPRange = ".".join(splitIP) | |
print IPRange |
export PS1="\[\033[34m\]\w\[\033[35m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split(/\n/).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1)')\"\`\[\033[00m\]> " |
import marshal | |
script = """ | |
print 'hello' | |
""" | |
code = compile(script, "<script>", "exec") | |
data = marshal.dumps(code) |
import os,sys | |
import socket | |
import time | |
HOST = '' | |
PORT = 4444 | |
activePID = [] | |
conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
conn.bind((HOST, PORT)) |
# part of the MinusOne project. | |
# methods from minus/lib/environment.rb | |
# traverse a given directory tree to determine | |
# if a path is a file or a directory. | |
# if the file extension of any file matches the | |
# specified language, add that file to the scan queue. | |
def determine_extension | |
puts "[~] determining file extension..." | |
case $options[:language].downcase |
GET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*&^%$%^&*.htmGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET *(&*^TGH*JIHG^&*(&^%*(*)OK)(*&^%$EDRGF%&^.htmlGET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*&^%$%^&*.htmGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET *(&*^TGH*JIHG^&*(&^%*(*)OK)(*&^%$EDRGF%&^.htmlGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET *(&*^TGH*JIHG^&*(&^%*(*)OK)(*&^%$EDRGF%&^.htmlGET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*&^%$%^&*.htmGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET *(&*^TGH*JIHG^&*(&^%*(*)OK)(*&^%$EDRGF%&^.htmlGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET *(&*^TGH*JIHG^&*(&^%*(*)OK)(*&^%$EDRGF%&^.htmlGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*&^%$%^&*.htmGET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*&^%$%^&*.htmGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET *(&*^TGH*JIHG^&*(&^%*(*)OK)(*&^%$EDRGF%&^.htmlGET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*&^%$%^&*.htmGET ^*%%RTG*(&^%FTGYHJIJ%^&*()*&*^&%RDFG(JKJH.aspGET ^&&%$%$^%$#^&**(*((&*^%$##$%^&*(*& |