Skip to content

Instantly share code, notes, and snippets.

View random-robbie's full-sized avatar
💭
Hacking!

Robbie random-robbie

💭
Hacking!
View GitHub Profile
database.yml
database.yml_original
database.yml~
database.yml.pgsql
database.yml.sqlite3
config/database.yml
config/database.yml_original
config/database.yml~
config/database.yml.pgsql
config/database.yml.sqlite3
select {o: s,val:s.value.toString()} from java.lang.String s
where
/^[0-9A-Za-z!\\\/\"\?/+=;\&\(\)\[\]\.:-_@\'\#\*]{5,15}$/.test(s.value.toString())
select {o: s,val:s.value.toString()} from java.lang.String s
where
/^[0-9A-Za-z!\\\/\"\?/+=;\&\(\)\[\]\.:-_@\'\#\*]{19,31}$/.test(s.value.toString())
select {o: s,val:s.value.toString()} from java.lang.String s
where
@random-robbie
random-robbie / gcp_enum.sh
Created January 4, 2019 06:59 — forked from carnal0wnage/gcp_enum.sh
use the gcloud utilities to enumerate as much access as possible from a GCP service account json file. see blog post: <to insert>
# gcloud auth activate-service-account --key-file=85.json
# gcloud projects list
project="my-projet"
space=""
echo "gcloud auth list"
gcloud auth list
echo -e "$space"
@random-robbie
random-robbie / gist:1b25babb78487e06d894aac9ceebecd9
Created July 1, 2018 06:51 — forked from jozic/gist:4f781632d52e868e986217866024d82e
netcat: listen to a request and return 200 HTTP response
## test is the program that returns response body
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; sh test; } | nc -l 8909; done
## test sample
#!/bin/bash
echo "************PRINT SOME TEXT***************\n"
echo "Hello World!!!"
echo "\n"
@random-robbie
random-robbie / lib-login.js
Created October 23, 2017 16:09 — forked from jamesj2/lib-login.js
casperjs loadImage breaks session cookies
/**
* Login into website.
*/
exports.login = function(url,username,password) {
/**
* Start casper and option the login page.
*/
casper.open(url);
/**
@random-robbie
random-robbie / Dockerfile
Created September 11, 2017 14:49 — forked from benschw/Dockerfile
MySQL Docker Container
FROM ubuntu
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install mysql-client mysql-server
@random-robbie
random-robbie / Vagrantfile
Last active September 19, 2016 08:57 — forked from maxlapshin/Vagrantfile
Vagrant provisioning of Stalker Middleware
`mkdir -p .vagrant_aptcache`
Vagrant::Config.run do |config|
config.vm.define :stalker do |conf|
conf.vm.box = "precise64"
conf.vm.box_url = "https://s3-us-west-2.amazonaws.com/squishy.vagrant-boxes/precise64_squishy_2013-02-09.box"
conf.vm.share_folder "v-apt", "/var/cache/apt/archives", ".vagrant_aptcache"
conf.vm.provision :shell, :path => "stalker.sh"
conf.vm.forward_port 80, 6050
conf.vm.forward_port 3306, 6056
@random-robbie
random-robbie / replace_apt_sources.sh
Created November 10, 2015 15:39 — forked from eculver/replace_apt_sources.sh
Replace default Ubuntu apt repository URLs w/ DigitalOcean's
sudo sed -i "s/archive\.ubuntu/mirrors.digitalocean/g" /etc/apt/sources.list
@random-robbie
random-robbie / build_nginx.sh
Last active November 2, 2021 23:45 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL & RTMP module
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.11.5
export VERSION_PCRE=pcre-8.39
export VERSION_LIBRESSL=libressl-2.5.0
export VERSION_NGINX=nginx-$NGINX_VERSION
export NPS_VERSION=1.11.33.0
export VERSION_PAGESPEED=v${NPS_VERSION}-beta
@random-robbie
random-robbie / new_gist_file.md
Last active September 16, 2015 13:46 — forked from mcdongWang/sublimeLicense.md
Sublime Text 注册码

—– BEGIN LICENSE —–
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B