Skip to content

Instantly share code, notes, and snippets.

String sig_string = calcsig(param1, param2, param3);
sig_param = helpers.buildParameter(sig_param.getName(), sig_string, sig_param.getType());
request_byte = helpers.updateParameter(request_byte, sig_param);
messageInfo.setRequest(request_byte);
if (toolFlag == 32 && messageIsRequest && !sig_param.equals(null))
{
String param1 = helpers.getRequestParameter(request_byte, "param1").getValue();
String param2 = helpers.getRequestParameter(request_byte, "param2").getValue();
String param3 = helpers.getRequestParameter(request_byte, "param3").getValue();

Docker Cheat Sheet

Why

Why Should I Care (For Developers)

"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."

TL;DR, I just want a dev environment

@mccabe615
mccabe615 / gist:8969646
Created February 13, 2014 04:15
RVASec CFP
Docker
Dokku
Puppet
Chef
PoCs:
@mccabe615
mccabe615 / gist:9265210
Created February 28, 2014 04:23
Brakeman install
michaelmccabe@Nvis-MBP:~ : gem install brakeman
Fetching: ruby_parser-3.4.1.gem (100%)
Successfully installed ruby_parser-3.4.1
Fetching: brakeman-2.4.1.gem (100%)
Successfully installed brakeman-2.4.1
2 gems installed
michaelmccabe@Nvis-MBP:~ :
nohup java -Xms1G -Xmx2G -XX:MaxPermSize=1G -jar ~/location/of/burp/jar/burp.jar 2>&1 &
Gem::Specification.new do |spec|
spec.name = "tester"
spec.version = Tester::VERSION
spec.authors = ["Mike McCabe"]
spec.email = ["mccabe615@gmail.com"]
spec.summary = %q{TODO: Write a short summary. Required.}
spec.description = %q{TODO: Write a longer description. Optional.}
spec.homepage = ""
spec.license = "MIT"
@mccabe615
mccabe615 / bootstrap_flash_helper_patched.rb
Created March 26, 2014 14:50
Patched Bootstrap flash helper to prevent XSS.
module BootstrapFlashHelperPatched
ALERT_TYPES = [:error, :info, :success, :warning] unless const_defined?(:ALERT_TYPES)
def bootstrap_flash_patched
flash_messages = []
flash.each do |type, message|
# Skip empty messages, e.g. for devise messages set to nothing in a locale file.
next if message.blank?
type = type.to_sym
@mccabe615
mccabe615 / Gemfile
Created March 26, 2014 14:59
Gemfile update
gem "twitter-bootstrap-rails", :git => 'https://github.com/seyhunak/twitter-bootstrap-rails.git'