Skip to content

Instantly share code, notes, and snippets.

View shanept's full-sized avatar

Shane Thompson shanept

View GitHub Profile
@shanept
shanept / Makefile
Created January 31, 2017 18:01
Arduino Uno makefile
############################################################################
# TARGET: Target build directory
# INSTALL_DIR: Arduino IDE installation directory
# PORT: Arduino board port
#
# Retrieve the following data from:
# $(INSTALL_DIR)/hardware/arduino/avr/boards.txt
#
# UPLOAD_SPEED, UPLOAD_PROTOCOL, BUILD_MCU, BUILD_F_CPU, VARIANT
############################################################################
setTimeout(function() {}, 1000);
var snmp = require ("./git/node-net-snmp/lib/");
var target = '127.0.0.1';
var version = snmp.Version3;
var oids = ['1.3.6.1.2.1.1.1.0'];
var session = snmp.createSession (target, {
@shanept
shanept / gist:f63d22cd653728f87bea
Created July 25, 2014 07:45
XMLRPC Brute Force Exploit
<?php
// This code is released into the public domain.
// I will not be held responsible for what this code does.
// I release myself of all legal responsibilites to this code.
/** These links helped in figuring this all out :)
* wp_xmlrpc_server::login
* https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/class-wp-xmlrpc-server.php#L182
*
* Support Forum link