Skip to content

Instantly share code, notes, and snippets.

View jgamblin's full-sized avatar

Jerry Gamblin jgamblin

View GitHub Profile
@jgamblin
jgamblin / test.html
Created October 10, 2016 18:18
test.htm
<!DOCTYPE html>
<html>
<body>
<p id="demo">Click the button to get your position.</p>
<button onclick="getLocation()">Try It</button>
<div id="mapholder"></div>
@jgamblin
jgamblin / mate.sh
Last active October 19, 2016 19:38
Ubuntu Mate RDP
# /bin/bash
export DEBIAN_FRONTEND=noninteractive
#Upate
apt-get update
apt-get dist-upgrade
#SSH Passwords
sed -i 's|[#]*PasswordAuthentication no|PasswordAuthentication yes|g' /etc/ssh/sshd_config
@jgamblin
jgamblin / bootstrap.sh
Last active October 28, 2016 14:16
SIFT Ubuntu bootstrap.sh
#!/bin/bash -
#===============================================================================
# vim: softtabstop=4 shiftwidth=4 expandtab fenc=utf-8 spell spelllang=en cc=81
#===============================================================================
#--- FUNCTION ----------------------------------------------------------------
# NAME: __function_defined
# DESCRIPTION: Checks if a function is defined within this scripts scope
# PARAMETERS: function name
@jgamblin
jgamblin / w3af.sh
Created November 9, 2016 14:20
W3AF SlackBot
#!/bin/sh
w3af_console -s scan.w3af
cd /usr/share/w3af
wkhtmltopdf scan.html scan.pdf
curl -F file=@scan.pdf -F initial_comment="W3AF Scan" -F channels=#alerts -F token=xxxx-xxxx-xxxx https://slack.com/api/files.upload
#set profile
profiles
use OWASP_TOP10
#use fast_scan
back
# Configure Output.
plugins
@jgamblin
jgamblin / HelloWorld.txt
Last active November 29, 2016 23:27
Hello World Rubber Ducky
DELAY 3000
GUI SPACE
DELAY 500
STRING TextWrangler
DELAY 500
ENTER
DELAY 750
STRING Hello World!!!
ENTER
@jgamblin
jgamblin / Hide All Windows
Created November 30, 2016 01:13
Hide All Windows
DELAY 2000
GUI H
REPEAT 100000
@jgamblin
jgamblin / longword.txt
Created November 30, 2016 01:14
Type The Longest Word 100,000 Times
DELAY 2000
STRING Rindfleischetikettierungsueberwachungsaufgabenuebertragungsgesetz
REPEAT 100000
@jgamblin
jgamblin / Top10SC.py
Last active December 19, 2016 22:11
List Top 10 Vuln System With Details
#!/usr/bin/env python3
from securitycenter import SecurityCenter5
import subprocess
def vulns():
sc = SecurityCenter5('nessus')
sc.login('nessusapi', 'Afinepassword!')
response = sc.get('status')
hosts = sc.analysis(tool='sumip', page=0, page_size=10, sortDir='desc',sortField='score')
@jgamblin
jgamblin / Adabox-002-Rover
Created December 20, 2016 22:33
Donuts and More Speed for the AdaBox-002-Rover
/*********************************************************************
This is an example for our nRF51822 based Bluefruit LE modules
Modified to drive a 3-wheeled BLE Robot Rover! by http://james.devi.to
Pick one up today in the Adafruit shop!
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!