Install the client:
apt-get install git
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
Generate certificates using manual mode:
require 'growl' | |
module Jekyll | |
class GrowlPreHook < Hook | |
safe false | |
sequence :pre | |
def run(site) | |
Growl.notify 'Building...', :title => 'Jekyll' | |
end |
# Chef resources describing how to set up package repository server, | |
# simplified fromactual cookbook (not open sourced yet). Sets up apt | |
# repository in /srv/apt directory, with system user "apt-repo". Packages | |
# are GPG-signed to prevent apt-get from complaining on every install. | |
# | |
# Directory /srv/apt should be reachable to clients via http or other | |
# means. This is left as an exercise for the reader. | |
# | |
# For extra explanations, see: | |
# http://joseph.ruscio.org/blog/2010/08/19/setting-up-an-apt-repository/ |
dmg_package "Alfred" do | |
volumes_dir "Alfred.app" | |
source "http://cachefly.alfredapp.com/alfred_1.3.1_261.dmg" | |
checksum "c951c4dc05ff1091359358d710142cabef2c190be41f799244669f879cff7e80" | |
action :install | |
owner WS_USER | |
end |
Install the client:
apt-get install git
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
Generate certificates using manual mode:
#!/usr/bin/python | |
""" | |
Port Knocking with scapy example. | |
Knock on port 42304 | |
Knock on port 53768 | |
Knock on port 3297 | |
HTTP request to port 19760 | |
Now, to get the flag, we just need to write a small scrip to implement all this logic. We will use the scapy python library to perform the port knocking and curl for the HTTP request part: |
dd if=/dev/cdrom of=image.iso
cat << EOF | sudo tee /etc/yum.repos.d/ol7_addons.repo | |
[ol7_addons] | |
name=Oracle Linux $releasever Add ons (\$basearch) | |
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/\$basearch/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle | |
gpgcheck=1 | |
enabled=1 | |
EOF | |
# Verify this manually if you're paranoid like me |
#!/usr/bin/env python | |
import os | |
import sys | |
import platform | |
import requests | |
import requests.utils | |
import certifi |
#!/bin/sh | |
set -e | |
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' | | |
while read path_key path | |
do | |
url_key=$(echo $path_key | sed 's/\.path/.url/') | |
url=$(git config -f .gitmodules --get "$url_key") | |
git submodule add $url $path |