Skip to content

Instantly share code, notes, and snippets.

Shane Thompson shanept

  • Aeontech
Block or report user

Report or block shanept

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shanept
shanept / backup.ps1
Last active Jun 17, 2019
SQL Server backup script
View backup.ps1
# Set these variables to the desired values
$SqlServer="SqlHost" # Server Hostname
$InstanceName="DbInst" # Database Instance
$Username="MyUser" # Username with backup permissions
$Database="EpicDB" # Name of database to backup
$LocalDir="C:\DB" # Local directory to use whilst creating backup
$Location="\\storage\EpicDB" # Location to move backup file to. Can be UNC or file path
#############################################
# Don't touch anything beyond this point... #
@shanept
shanept / captcha.js
Created Jun 11, 2018
hackers.gg captcha challenge
View captcha.js
/*
// Only use this one to get SVG codes from the captcha image, and populate the below codes list
(function() {
var paths = document.querySelectorAll("path:not([fill='none'])");
var code = "";
for (var p in paths) {
if (!paths.hasOwnProperty(p)) continue;
var idx = paths[p].getAttribute('d');
idx = idx.replace(/[^A-Z]+/g, '');
@shanept
shanept / Makefile
Created Jan 31, 2017
Arduino Uno makefile
View 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
############################################################################
View snmp-get-v3.js
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 Jul 25, 2014
XMLRPC Brute Force Exploit
View gist:f63d22cd653728f87bea
<?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
You can’t perform that action at this time.