This file contains 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
$ ruby test_samples.rb | |
[+] samples/citadel2 is citadel (99.46% match) | |
[+] samples/pony2 is pony (99.2% match) | |
[+] samples/zeus2 is zeus (99.62% match) |
This file contains 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
ciscoasa# sh run | |
: Saved | |
: | |
ASA Version 9.1(1) | |
! | |
hostname ciscoasa | |
enable password REDACTED encrypted | |
xlate per-session deny tcp any4 any4 | |
xlate per-session deny tcp any4 any6 | |
xlate per-session deny tcp any6 any4 |
This file contains 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
# Define some dummy classes to work with | |
class Foo | |
end | |
class Bar | |
end | |
# Define a custom RSpec matcher | |
RSpec::Matchers.define :be_nil_or_not_foo do | |
match do |actual| | |
actual.is_a?(Foo) == false || actual == nil |
This file contains 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
msf > irb | |
[*] Starting IRB shell... | |
>> require 'pry' | |
=> true | |
>> binding.pry | |
[1] pry(#<Msf::Ui::Console::CommandDispatcher::Core>)> show-method framework.db.import_ip_list | |
From: /Users/jclaudius/code/metasploit-framework/lib/msf/core/db_manager/import/ip_list.rb @ line 2: | |
Owner: Msf::DBManager::Import::IPList |
This file contains 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
http://securityweekly.com/2011/11/02/incremental-zone-transfers-for/ | |
http://docstore.mik.ua/orelly/networking_2ndEd/dns/ch10_04.htm |
This file contains 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 "net/http" | |
require "uri" | |
pages = (1..213).to_a | |
pages.each do |page| | |
#Get the page | |
uri = URI.parse("https://rubygems.org/gems?page=" + page.to_s) | |
response = Net::HTTP.get_response(uri) |
This file contains 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
# RubyGems client upgrader script | |
# Set some basic items to build on | |
home_path = Dir.home | |
# This is set for user RVM install (modify as needed for system RVM install) | |
rvm_path = home_path + "/.rvm" | |
rvm_rubies_path = rvm_path + "/rubies/" | |
check_paths = [ |
This file contains 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 'net/http' | |
require 'openssl' | |
# Hack to stop verification failures | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
ip = ARGV[0] | |
if ip.nil? | |
puts "Usage: ruby test_server.rb 192.168.1.1" |
This file contains 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 'digest' | |
require 'net/http' | |
gem_file = 'rubygems-update-2.4.8.gem' | |
# Reference: https://rubygems.org/gems/rubygems-update/versions/2.4.8 | |
sha256hash = "dbed858db605923d9cc77080de1a5f1ce6ac3c68924877c78665e0d85d7b3e73" | |
################################################## | |
# Download the Gem from RubyGems.org (over HTTPS) |
This file contains 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
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem -config /System/Library/OpenSSL/openssl.cnf | |
openssl s_server -cert mycert.pem -accept 1337 -www | |
curl https://127.0.0.1:1337/ |