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 | |
| banner=$(echo "DB Hunter"); | |
| echo $banner | |
| echo "How many host to scan: " | |
| read host | |
| echo "Output File: " | |
| read output | |
| nmap -v -A -iR $host -Pn -p 3306 -oG $output --append-output -O | |
| nmap -v -A -iR $host -Pn -p 5432 -oG $output --append-output -O | |
| nmap -v -A -iR $host -Pn -p 523 -oG $output --append-output -O |
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 http = require("http"); | |
| var express = require('express'); | |
| var Database = require('sqlite3'); | |
| var app = express(); | |
| function makecookie() | |
| { | |
| var text = ""; | |
| var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| for( var i=0; i < 5; i++) |
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 http = require("http"); | |
| var express = require('express'); | |
| var Database = require('sqlite3'); | |
| var app = express(); | |
| function makecookie() | |
| { | |
| var text = ""; | |
| var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| for( var i=0; i < 5; i++) |
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 http = require("http"); | |
| var express = require('express'); | |
| var Database = require('sqlite3'); | |
| var app = express(); | |
| function makecookie(name,text,exdays) | |
| { | |
| var text = ""; | |
| var exdate=new Date; | |
| var name='jssession' |
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 'anemone' | |
| require 'redis' | |
| key=rand(0..17179869184) | |
| puts key | |
| redis = Redis.new(:host => "0.0.0.0", :port => 6379) | |
| puts "URL to crawl: " | |
| url = gets | |
| Anemone.crawl(url) do |anemone| | |
| anemone.on_every_page do |page| |
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 'anemone' | |
| require 'redis' | |
| require 'uuidtools' | |
| redis = Redis.new(:host => "localhost", :port => 6379) | |
| puts "URL to crawl: " | |
| url = gets | |
| Anemone.crawl(url) do |anemone| | |
| anemone.on_every_page do |page| key=UUIDTools::UUID.random_create | |
| puts key |
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 |
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
| #!/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
| 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: " |