- Backup current configuration
mkdir -p /root/varnish && cp -rv /etc/varnish /root/varnish && cp /etc/default/varnish /root/varnish/varnish-default
- Install varnish key and repo from packagecloud:
#!/bin/bash | |
set -e | |
echo "Building package" | |
git-buildpackage --git-pbuilder --git-ignore-branch --git-dist=trusty --git-arch=amd64 |
#!/bin/bash | |
# This script installs a basic build environment for debian/ubuntu | |
ACTION="${1}" | |
ARGS="${#}" | |
UBUNTU_VERSION="trusty" | |
INSTALL_PACKAGES=( | |
apt-file | |
cdebootstrap |
#!/bin/bash | |
URL="$1" | |
if [ "x${URL}" == "x" ] || [[ ! "${URL}" =~ "http" ]] ; then | |
echo "Usage: $0 <url>" | |
exit 1 | |
fi | |
curl -L -so /dev/null -w "\n[Info]\n\nStatus Code:\t%{http_code}\nHTTP Version:\t%{http_version}\nRemote IP:\t%{remote_ip}\n\n[Timing]\n\nConnect:\t%{time_connect}\tseconds\nPre-Transfer:\t%{time_pretransfer}\tseconds\nRedirect Time:\t%{time_redirect}\tseconds\nTransfer:\t%{time_starttransfer}\tseconds\nDNS Lookup:\t%{time_namelookup}\tseconds\nTotal Time:\t%{time_total}\tseconds\n\n[Size]\n\nDownload Size:\t%{size_download}\tbytes\nHeader Size:\t%{size_header}\tbytes\nRequest Size:\t%{size_request}\tbytes\n" $URL ; echo |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
''' debbuild_wrapper.py | |
The debian package build wrapper on Jenkins. | |
This script support three way of building debian package. | |
1-1. Backport from source package with cowbuilder. | |
1-2. Pre-build and Backport from source package with cowbuilder. | |
2. Build original package with git-buildpackage. |
#!/usr/bin/env python3 | |
import argparse | |
import configparser | |
import subprocess | |
import os | |
import sys | |
CONFIG = os.path.expanduser("~/.aws/credentials") |
Student ID: IoTE-775
This Blog/Gist will be very detailed with a lot of additional listings to see the process and methodology of Examination.
In this gist I will try to examine and exploit the Sricam SP009. I purchased it from Attify with the IOT Exploitation Kit.
#!/usr/bin/env python | |
from __future__ import print_function, absolute_import | |
import argparse | |
import os | |
import socket | |
import subprocess | |
import sys | |
KEY_FILE = "/etc/bind/update_dns.private" |