Skip to content

Instantly share code, notes, and snippets.


Vpnwall Services vpnwall-services

View GitHub Profile
vburlak /
Last active Jan 11, 2019 — forked from teledirigido/
Download and Install Wordpress and Roots/Sage theme via WP-CLI
# This bash script works JUST with WP-CLI
# You can get it from here:
# If you don't know what to do with this file:
# 1) Install wp-cli on your workspace
# 2) Create a file call
carnal0wnage /
Last active Apr 19, 2020
python script to connect to a metasploit msgrpc instance, setup and run an auxilary module.
#!/usr/bin/env python
import sys
import msfrpc
import time
if __name__ == '__main__':
# Create a new instance of the Msfrpc client with the default options
client = msfrpc.Msfrpc({})
# Login to the msf server using the password "abc123"
JonTheNiceGuy / create_cert.yml
Last active Oct 13, 2020
A simple ansible playbook to create a new self-signed certificate
View create_cert.yml
- hosts: localhost
- dnsname:
- tmppath: "./tmp/"
- crtpath: "{{ tmppath }}{{ dnsname }}.crt"
- pempath: "{{ tmppath }}{{ dnsname }}.pem"
- csrpath: "{{ tmppath }}{{ dnsname }}.csr"
- pfxpath: "{{ tmppath }}{{ dnsname }}.pfx"
- private_key_password: "password"
mixonic / server.js
Created Apr 28, 2011
Node.js + + Bash. A collaborative terminal for your browser.
View server.js
// This server will start a bash shell and expose it
// over to a browser. See ./term.html for the
// client side.
// You should probably:
// npm install
// curl -O
antics / gist:4079584
Created Nov 15, 2012
Login to Wordpress with curl
View gist:4079584
curl -D cookie1.txt
# step 1
# get default cookie of blog and write cookie to cookie1.txt
# step 2
# simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/"
# input your username and also password
# write new cookie to cookie2.txt
curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F -F submit=login -F rememberme=forever
# currently cookie2.txt stored all cookie info
bwbaugh /
Last active Nov 26, 2020
Installing logstash server and client

Installing logstash

Server install


Install the Java prerequisite:

bugcy013 / logstach Examples
Created Apr 26, 2014
logstach Examples collection
View logstach Examples
Example -1
input {
file {
path => [ "/usr/local/var/log/suricata/eve.json", "/var/log/ulogd.json" ]
codec => json
type => "json-log"
AdamOssenford /
Created Jan 18, 2016
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file


First one found from of

mgeeky /
Last active Dec 26, 2020
Python's Pickle Remote Code Execution payload template.
# Pickle deserialization RCE payload.
# To be invoked with command to execute at it's first parameter.
# Otherwise, the default one will be used.
import cPickle
import sys
import base64
sourcec0de / haproxy.cfg
Created Oct 18, 2016
Here's a sample WORKING haproxy config for websockets / socketio. We were able to get socketio working on an Amazon ELB with just one node, but when we added multiple nodes, we saw weird client issues. So, we decided to use HAProxy on Ubuntu 12.04 and spent significant time trying to get just the right configuration (haproxy.cfg). Note though th…
View haproxy.cfg
log local0
log global
option httplog
frontend unsecured *:80