Skip to content

Instantly share code, notes, and snippets.

@kenjoe41
kenjoe41 / setup.py
Created May 22, 2015 09:17
created by github.com/tr3buchet/gister
#!/usr/bin/env python
#
# Copyright 2013 Trey Morris
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@kenjoe41
kenjoe41 / howdoi.rb
Created May 22, 2015 09:16
created by github.com/tr3buchet/gister
require 'formula'
class Howdoi < Formula
homepage 'https://github.com/gleitz/howdoi/'
url 'http://pypi.python.org/packages/source/h/howdoi/howdoi-1.1.7.tar.gz'
sha1 '44d89c0eaf0bea3c13e8774b4207a1ec5c7eecb0'
def install
setup_args = ['setup.py', 'install']
system "python", *setup_args
@kenjoe41
kenjoe41 / gist:9ce7303bc40db366a5ea
Created May 22, 2015 09:12
created by github.com/tr3buchet/gister
#!/usr/bin/env python
#
# Copyright 2013 Trey Morris
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@kenjoe41
kenjoe41 / gist:51366afaadd33d716268
Created May 22, 2015 09:01
created by github.com/tr3buchet/gister
#!/usr/bin/env python
#
# Copyright 2013 Trey Morris
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@kenjoe41
kenjoe41 / getproxy.py
Last active August 29, 2015 14:21
get proxy list
from __future__ import print_function
import getprox, sys
print('Getting proxy lists.')
proxy_uri_list = getprox.proxy_get()
if not proxy_uri_list:
print('[!]Attention soldier: Something went wrong, try again later.')
sys.exit()
print('Writing to file.')
from __future__ import print_function
import requests
from lxml.html import parse
import codecs
import os
def process_downloads():
url = "http://www.net-security.org/insecure-archive.php"
html_tree = parse(url)
pdf_links = html_tree.xpath("//h2[@class='style12']/a/@href")
@kenjoe41
kenjoe41 / gist:9c899c5282bbc836a7f2
Created May 2, 2015 15:05
download netsecurity.org magazines and upload the zip file to evilzone.org
from __future__ import print_function
import requests
from lxml.html import parse
import codecs
import os, tarfile
#import evilupload
from evilupload import evilupload
import sys
# dnsfind.py <startip> <endip>
import sys
import socket
import struct
# basic DNS header for 1 query
def buildDNSQuery(host):
packet=struct.pack("!HHHHHH", 0x0001, 0x0100, 1, 0, 0, 0)
package main
import (
"fmt"
"log"
"net"
"os"
"regexp"
"strings"
)
/**
Program: Counter.cpp
It counts the number of letters, special chars, words, lines and sentences, and
detect what and how many words are the same.
Site: http://evilzone.org/weekly-challenge/challenge-15-text-element-counter/
Thoughts: I think Kulver has gotten rusty.
**/
#include <iostream>
#include <string>