Skip to content

Instantly share code, notes, and snippets.

💭
Hacking!

Robbie random-robbie

💭
Hacking!
Block or report user

Report or block random-robbie

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
@random-robbie
random-robbie / gcp_enum.sh
Created Jan 4, 2019 — 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>
View gcp_enum.sh
# 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 Jul 1, 2018 — forked from jozic/gist:4f781632d52e868e986217866024d82e
netcat: listen to a request and return 200 HTTP response
View gist:1b25babb78487e06d894aac9ceebecd9
## 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 Oct 23, 2017 — forked from jamesj2/lib-login.js
casperjs loadImage breaks session cookies
View lib-login.js
/**
* 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 Sep 11, 2017 — forked from benschw/Dockerfile
MySQL Docker Container
View Dockerfile
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 Sep 19, 2016 — forked from maxlapshin/Vagrantfile
Vagrant provisioning of Stalker Middleware
View Vagrantfile
`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 Nov 10, 2015 — forked from eculver/replace_apt_sources.sh
Replace default Ubuntu apt repository URLs w/ DigitalOcean's
View replace_apt_sources.sh
sudo sed -i "s/archive\.ubuntu/mirrors.digitalocean/g" /etc/apt/sources.list
@random-robbie
random-robbie / build_nginx.sh
Last active Nov 7, 2016 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL & RTMP module
View build_nginx.sh
#!/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 Sep 16, 2015 — forked from mcdongWang/sublimeLicense.md
Sublime Text 注册码
View new_gist_file.md

—– 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
View ubuntu-configure-sendmail-with-gmail
#!/bin/bash
HOST=$(hostname)
function install_postfix() {
echo | sudo debconf-set-selections <<__EOF
postfix postfix/root_address string
postfix postfix/rfc1035_violation boolean false
postfix postfix/mydomain_warning boolean
postfix postfix/mynetworks string 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
You can’t perform that action at this time.