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 python | |
from __future__ import print_function | |
import time | |
import bugzilla | |
import sys | |
if sys.version_info[0] >= 3: | |
api_key = input("Enter Bugzilla API 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
require 'bindata' | |
require 'zlib' | |
# Extend string class to make it easier to work with hexified binary strings | |
class String | |
def unhexify | |
[self].pack("H*") | |
end | |
def hexify |
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
# A testing harness/shim for playing around with taskcluster authentication | |
import yaml | |
import taskcluster | |
import requests | |
import json | |
import datetime | |
#Example config.yaml | |
# clientId: INSERT_CLIENT_ID |
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 'mongo' | |
require 'set' | |
Mongo::Logger.logger.level = ::Logger::FATAL | |
client = Mongo::Client.new([ '127.0.0.1:27018' ], :database => 'ssh_scan') | |
collection = client['ssh_scan'] | |
collection.distinct("scan.fingerprints.rsa.sha256").each do |sha256_fingerprint| | |
targets = Set.new |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | |
<html><body><table border="0px"> | |
<tr> | |
<td valign="top" nowrap> | |
<li>PR <a href="https://github.com/rapid7/metasploit-framework/pull/8236">#8236</a> | |
</td> | |
<td valign="top">-</td> | |
<td>This fixes #8235 by adding xmlrpc as an explicit dependency.<br></td> | |
</tr> | |
<tr> |
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
# Collapses odd/even lines into single lines | |
# | |
# Example: | |
# Thing1 | |
# description for thing1 | |
# Thing2 | |
# description for thing2 | |
# | |
# Is translated to... | |
# Thing1 description for thing1 |
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 SSHScan | |
class Database | |
def initialize(opts = {}) | |
@db = opts[:database] # SSHScan::Database::MongoDb -or- # SSHScan::Database::SQLite | |
@username = opts[:username] | |
@password = opts[:password] | |
@password = opts[:password] | |
@server = opts[:server] | |
@port = opts[:port] | |
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
policies: | |
name: Mozilla Modern | |
:logic ssh_version_eq 2.0 AND ( ssh_lib_eq openssh OR ssh_lib_eq openssh )... |
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
items: | |
item1: | |
description: SSH version 2.0 only | |
ssh_version_eq: 2.0 | |
item2: | |
description: OpenSSH ssh library | |
ssh_lib_eq: openssh | |
item3: | |
description: libssh ssh library | |
ssh_lib_eq: libssh |
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
2.2.3 :003 > YAML.load_file('test.yml') | |
=> {"rules"=>{"openssh_2"=>{"and"=>{"ssh_lib"=>"openssh", "ssh_lib_version_gte"=>2.0, "ssh_lib_version_lt"=>3.0}}, "openssh_3"=>{"and"=>{"ssh_lib"=>"openssh", "ssh_lib_version_gte"=>3.0}}}, "defaults"=>{"auth_methods"=>["publickey"], "kex"=>["algo1", "algo2"]}, "openssh_2"=>{"auth_methods"=>["publickey"], "kex"=>["algo1", "algo2"], "encryption"=>["algo3"]}, "openssh_3"=>{"auth_methods"=>["publickey"], "kex"=>["algo1", "algo2"], "encryption"=>["algo4"]}} |