Skip to content

Instantly share code, notes, and snippets.

View cmlh's full-sized avatar

Christian Heinrich cmlh

View GitHub Profile
#Define the modules that we intend to use.
use strict;
use LW2;
use Getopt::Std;
#Define hashes for our command line options, request #information, response information and cookies.
my ( %opts, %request, %response, %jar, $headers_array, $header );
##note the addition of 'U' and 'D' as options
getopts( 'dh:m:u:U:D:', \%opts );
@cmlh
cmlh / backtrack-build-skipfish.sh
Created October 27, 2011 23:45
Updated the skipfish build sh script for BackTrack Linux from http://www.ehacking.net/2011/06/skipfish-backtrack5-tutorial.html
#!/bin/sh
# Builds skipfish on BackTrack 5 R1
# Updated from http://www.ehacking.net/2011/06/skipfish-backtrack5-tutorial.html
# skipfish is available from http://code.google.com/p/skipfish/
# BackTrack is available from http://www.backtrack-linux.org/
# TODO sudo
apt-get install libssl-dev
@cmlh
cmlh / DirBuster-proxy.sh
Created October 30, 2011 08:25
Simple shell script to replay URL(s) discovered by DirBuster over a local web proxy based on http://pauldotcom.com/2011/08/dirbuster-to-burp-the-missing.html
#!/bin/sh
# Simple shell script to replay URL(s) discovered by DirBuster over a local web proxy i.e. Burp Proxy, etc on TCP/8080
#
# Based on http://pauldotcom.com/2011/08/dirbuster-to-burp-the-missing.html
# REPOSITORY
# https://gist.github.com/1325706
# git://gist.github.com/1325706.git
#!/usr/bin/env ruby
class MegaGreeter
attr_accessor :names
# Create the object
def initialize(names = "World")
@names = names
end
#!/usr/bin/env perl
#
# shodan_ips.pl
# Search SHODAN and print a list of IPs matching the query
#
# Author: achillean
use Shodan::WebAPI;
use strict;
@cmlh
cmlh / burp_with_sqlmap_plugin.sh
Last active October 10, 2015 23:38
Burp with SQLMap Plugin
# http://blog.buguroo.com/?p=2471&lang=en
# http://code.google.com/p/gason/downloads/list
# Applicable for versions v1.5 and below of Burp Suite Pro
java -classpath gason-0.9.5.jar:"burpsuite_pro_v1.5.jar" burp.StartBurp
# Appicable for version v1.5.07 and onwards
# http://www.smeegesec.com/2013/02/sqlmap-plugin-for-burp-extender.html
@cmlh
cmlh / git_config-osx.sh
Created October 6, 2012 06:56
git Configuration
#!/bin/sh
git config --global user.name "Christian Heinrich"
git config --global user.email christian.heinrich@cmlh.id.au
git config --global color.ui true
# OSX
git config --global core.autocrlf input
@cmlh
cmlh / SHODAN-theprez98-cisco_last-modified_www-authenticate.txt
Created October 29, 2012 10:09
SHODAN Search from @theprez98 for Cisco Hosts with No Password
cisco last-modified www-authenticate
@cmlh
cmlh / git_clone-OWASP-Top-10.txt
Created August 12, 2013 08:33
HOWTO Clone the OWASP Top Ten .git repository, including the "comparison" git submodule
cmlh$ git clone git@github.com:OWASP/OWASP-Top-10.git
Cloning into 'OWASP-Top-10'...
remote: Counting objects: 201, done.
remote: Compressing objects: 100% (144/144), done.
remote: Total 201 (delta 56), reused 191 (delta 46)
Receiving objects: 100% (201/201), 46.58 MiB | 179 KiB/s, done.
Resolving deltas: 100% (56/56), done.
github.com cmlh$ cd OWASP-Top-10
OWASP-Top-10 cmlh$ git submodule init
Submodule '2013/Documents/Comparison_to_Prior_Releases' (git@github.com:cmlh/OWASP-Top-Ten-2013.git) registered for path '2013/Documents/Comparison_to_Prior_Releases'
use LW2;
%request = ();
%response = ();
LW2::http_init_request(\%request);
$request{'whisker'}->{'host'} = "www.victim.com";