This file contains hidden or 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
export PERL_LWP_SSL_VERIFY_HOSTNAME=0 | |
use WWW::Mechanize; | |
my $mech = WWW::Mechanize->new( | |
ssl_opts => { | |
verify_hostname => 0, | |
}, | |
); |
This file contains hidden or 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
echo "deb http://emdebian.org/debian/ lenny main" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi libc6-dev-armel-cross | |
cd /path/to/ruby/1.8.7/sources | |
autoconf | |
CFLAGS="--static" LDFLAGS="--static" CC="arm-linux-gnueabi-gcc" ac_cv_func_setpgrp_void=yes ac_cv_func_isinf=no ac_cv_func_isnan=no ac_cv_func_finite=no CROSS_COMPILING=1 ./configure --host="arm-linux-gnueabi" --prefix=/mnt/us/opt | |
make | |
make install |
This file contains hidden or 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
/* | |
* Datapipe6 - ipv6-aware fork of datapipe.c | |
* Sample usage: | |
* datapipe6 localipv4addr 23 remoteipv6addr 23 | |
* | |
* | |
* Written by feuvan <[email protected]> | |
* Original ipv4 version by Jeff Lawson <[email protected]> | |
* See statement below | |
* |
This file contains hidden or 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
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.host; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" |
This file contains hidden or 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 | |
# Basic Cisco type 4 - password encoder by Kost | |
# Base64 custom encoder taken from VOMS::Lite::Base64 | |
# Example: ./cisco-4-sha256.pl password | |
use strict; | |
use Digest::SHA qw(sha256); | |
my %Alphabets = ( | |
CISCO => "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", |
This file contains hidden or 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/env ruby | |
require 'openssl' | |
require 'webrick' | |
require 'webrick/https' | |
include WEBrick | |
port = 8443 | |
server = HTTPServer.new(:Port=>port,:DocumentRoot=>Dir::pwd, |
This file contains hidden or 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
<html> | |
<head> | |
<!-- | |
Amazon S3 Bucket listing. | |
Copyright (C) 2008 Francesco Pasqualini | |
This program is free software: you can redistribute it and/or modify |
This file contains hidden or 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
/* | |
* | |
* syringe.c v1.2 | |
* | |
* Author: Spencer McIntyre (Steiner) <smcintyre [at] securestate [dot] com> | |
* | |
* A General Purpose DLL & Code Injection Utility | |
* | |
* Copyright 2011 SecureState | |
* |
This file contains hidden or 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
using System; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
namespace ExecASMHardcoded | |
{ | |
class Program | |
{ | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern bool VirtualProtect(IntPtr lpAddress, uint dwSize, uint flNewProtect, out uint lpflOldProtect); | |
public delegate uint Ret1ArgDelegate(uint address); |
This file contains hidden or 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/env python | |
# encoding: utf-8 | |
""" | |
Adapted from i2c-test.py from Peter Huewe | |
""" | |
import sys | |
from pyBusPirateLite.I2C import * | |
import argparse | |
OlderNewer