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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import subprocess | |
file = 'files.txt' | |
nullpath = '/dev/null/tar.tar' | |
def download(): | |
fd = open(file, 'r') |
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
SHODAN_API_KEY = "123456789" | |
api = shodan.Shodan(SHODAN_API_KEY) | |
results = api.search(dork) | |
try: | |
results = api.search(dork) | |
for result in results['matches']: | |
print result |
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
#FUNÇÃO RESPONSÁVEL PELO BRUTEFORCE | |
def bruteforce(target,port,ssl, passlist,username): | |
url = '%s:%s' % (target, port) | |
fd = open(passlist, 'rw') | |
passwords = fd.readlines() | |
passes = Queue.Queue() | |
for password in passwords: |
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
//Exemplo de Web Service REST utilizando NodeJS e MongoDB em Containers Docker | |
// Matheus Fidelis - github.com/msfidelis | |
var express = require('express'); | |
var mongo = require('mongoose'); | |
var bodyParser = require('body-parser'); | |
var app = express(); | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded({ |
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": "node-app", | |
"version": "1.0.0", | |
"description": "", | |
"main": "app.js", | |
"scripts": { | |
"start": "nodemon app.js" | |
}, | |
"author": "", | |
"license": "MIT", |
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 | |
#LATEST DOCKER | |
wget -qO- https://get.docker.com/ | sh | |
#PEGA A ULTIMA VERSÃO DO COMPOSER | |
COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9]+\.[0-9]+$" | tail -n 1` | |
#REMOVE O COMPOSER ANTIGO | |
which docker-compose | grep rm -f |
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
version: '2' | |
services: | |
fpm: | |
build: PHP7fpm | |
volumes: | |
- ./app:/var/www/html | |
ports: | |
- "9000:9000" | |
links: |
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 php:7.2.1-fpm | |
MAINTAINER Matheus Fidelis <msfidelis01@gmail.com> | |
RUN echo 'deb http://httpredir.debian.org/debian jessie contrib' >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN export DEBIAN_FRONTEND=noninteractive && apt-get install -y --force-yes libssl-dev curl libcurl4-gnutls-dev libxml2-dev libicu-dev libmcrypt4 libmemcached11 openssl | |
#CONFIGURAÇÕES DO OPCACHE | |
RUN docker-php-ext-install opcache |
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 debian:jessie | |
MAINTAINER Matheus Fidelis <msfidelis01@gmail.com> | |
RUN apt-get update && apt-get install -y nginx | |
RUN usermod -u 1000 www-data | |
CMD ["nginx"] | |
EXPOSE 80 | |
EXPOSE 443 |
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
server { | |
listen 80; | |
index index.php; | |
server_name php-docker.local; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log; | |
root /var/www/html; | |
location / { |
OlderNewer