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
require 'viewpoint' | |
require 'http_client_driver_patch' |
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
require 'rest_client' | |
RestClient.post "http://a.b.c.d", "A"*1024, :content_type => "text/random" |
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
versions = [ | |
"1.6.3", | |
"1.6.2", | |
"1.6.1", | |
"1.6.0", | |
"1.5.5", | |
"1.5.4", | |
"1.5.3", | |
"1.5.2", | |
"1.5.1", |
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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use Digest::MD5 qw(md5); | |
# | |
my $openssl_version = shift(); | |
die "Usage: openswan-vid <OpenSwan_version_string>\n" unless defined $openssl_version; | |
# | |
my $md5_hash = md5($openssl_version); | |
my @values = unpack("C10", $md5_hash); |
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
# Helper for building Debian Packages on Ubuntu/Debian systems | |
require 'fileutils' | |
class DebPackager | |
def initialize(opts = {}) | |
@package_name = opts[:package_name] | |
@version = opts[:version] | |
@section = opts[:base] || "base" | |
@priority = opts[:priority] || "optional" |
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
versions = [ | |
"5.0.1", | |
"5.0.2", | |
"5.0.2dr4", | |
"5.0.2rc1", | |
"5.0.3", | |
"5.0.3dr1", | |
"5.0.3dr2", | |
"5.0.3dr3", | |
"5.0.3rc1", |
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
#Causes ike-scan to display it's vidpattern counts... | |
sudo ike-scan -v -v -v --vidpatterns=ike-vendor-ids 127.0.0.1 |
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
# An quick and dirty ike-scan wrapper to enumerate | |
# supported transform sets and vendor ID fingerprints | |
# on IPSec VPN Endpoints. | |
# | |
# Example Targeted Run Output | |
# | |
#$ rvmsudo ruby harvest.rb --targets 192.168.1.1 --enc-types 5 --hash-types 2 --dh-types 2 --auth-types 1 | |
#I, [2013-08-12T23:53:14.490138 #27197] INFO -- : 5 transform combinations to try | |
#D, [2013-08-12T23:53:14.490221 #27197] DEBUG -- : Trying ike-scan --multiline 192.168.1.1 | |
#I, [2013-08-12T23:53:14.726363 #27197] INFO -- : Found a new VID VID=5b362bc820f60001 |
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
#include <stdio.h> | |
int echo() { | |
char buf[200]; | |
gets(buf); | |
puts(buf); | |
} | |
int main() { | |
printf("Please enter a string:"); |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main(int argc, const char* argv[]) | |
{ | |
if(argv != 2) | |
{ | |
printf("Usage: %s <text>\n",argv[0]); | |
exit(1); |