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 'ronin/network/http' | |
require 'ronin/extensions/kernel' | |
require 'xmpp4r' | |
require 'xmpp4r/muc' | |
require 'uri' | |
require 'set' |
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 'ronin/extensions/ip_addr' | |
require 'ronin/network/tcp' | |
payload = [ | |
"\x00\x00\x00\x90", # Begin SMB header: Session message | |
"\xff\x53\x4d\x42", # Server Component: SMB | |
"\x72\x00\x00\x00", # Negociate Protocol | |
"\x00\x18\x53\xc8", # Operation 0x18 & sub 0xc853 |
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/sh | |
for project in extlib do dm-core dm-more; do | |
echo ">>> Checking out $project" | |
git clone git://github.com/datamapper/$project.git | |
cd $project/ | |
git checkout -b next --track origin/next | |
cd .. | |
done |
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 'spidr' | |
require 'curb' | |
module Ronin | |
module Web | |
# | |
# "Bang on the bars of the cage which imprisons you. Together, our | |
# actions can reduce the mightiest of prisons to ruins." | |
# | |
# --Anonymous |
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
gem 'dm-core', '0.10.0' | |
require 'dm-core' | |
module ModelMixin | |
include DataMapper::Types | |
def self.included(base) | |
base.module_eval do | |
include DataMapper::Resource | |
include DataMapper::Migrations |
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 'benchmark' | |
require 'block_fuzzer' | |
fuzz = SophSec::BlockFuzzer.new('_' * 86, 'EVIL', 4) | |
puts Benchmark.measure { fuzz.each { |mutant| } } |
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 'nokogiri' | |
require 'open-uri' | |
require 'cgi' | |
require 'uri' | |
unless ARGV.length == 1 | |
STDERR.puts "usage: ./text_and_links URL" | |
exit -1 |
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 | |
gem 'spidr' | |
require 'spidr' | |
require 'set' | |
unless ARGV.length == 2 | |
STDERR.puts "usage: #{$0} HOST FILE" | |
exit -1 | |
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
gem 'ronin-web' | |
require 'ronin/web/server' | |
require 'uri' | |
include Ronin | |
Web::Server.start do | |
paths_like(/^\/(.|%[0-9a-fA-F]{1,2})$/) do |env| | |
char = URI.decode(env['PATH_INFO'][1..-1]) | |
puts "got char: #{char.dump}" |
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
module SophSec | |
module YoSup | |
WORDS = %w{dawg sup hi yo} | |
def YoSup.encode(message) | |
encoded = [] | |
message = message.to_s | |
message.each_byte do |b| | |
encoded << WORDS[(b & 0x03)] |