title: "Penetration Test Report" author: ["[email protected]", "Name: r4f1x"] date: "2019-02-29" subject: "Markdown" keywords: [Markdown, Example] subtitle: "Web Application Extreme Penetration Tester" lang: "en" titlepage: true titlepage-color: "1E90FF"
This file contains hidden or 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 | line | |
|---|---|---|
| Tucuruvi | Linha 1–Azul | |
| Parada Inglesa | Linha 1–Azul | |
| Jardim São Paulo-Ayrton Senna | Linha 1–Azul | |
| Santana | Linha 1–Azul | |
| Carandiru | Linha 1–Azul | |
| Portuguesa-Tietê | Linha 1–Azul | |
| Armênia | Linha 1–Azul | |
| Tiradentes | Linha 1–Azul | |
| Luz | Linha 1–Azul |
This file contains hidden or 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
| // Create an express app | |
| const express = require('express'); | |
| const app = express(); | |
| // Tell it to use Neo4j middleware | |
| app.use(require('./neo4j')); | |
| // Example Route | |
| app.get('/', (req, res) => { | |
| // Create Driver session |
This file contains hidden or 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
| wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - | |
| sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' | |
| sudo apt-get update | |
| sudo apt-get install jenkins |
This file contains hidden or 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
| aws ec2 create-security-group --group-name jenkins-group --description "security group for CI in EC2" | |
| # sg-2452a250 | |
| MY_IP=$(curl ipinfo.io/ip) | |
| aws ec2 authorize-security-group-ingress --group-name jenkins-group \ | |
| --protocol tcp --port 8080 --cidr $MY_IP/32 \ | |
| aws ec2 authorize-security-group-ingress --group-name jenkins-group \ | |
| --protocol tcp --port 22 --cidr $MY_IP/32 |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| // docker run <container> cmd args |
This file contains hidden or 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
| #Exibir processos de uma porta | |
| PORT=3000 | |
| lsof -i:$PORT | |
| #Matar todos os processos de uma porta | |
| kill -9 $(lsof -t -i:$PORT -sTCP:LISTEN) |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func separar(nums []int, i, p chan<- int, pronto chan<- bool) { | |
| for _, n := range nums { | |
| if n%2 == 0 { | |
| p <- n |
This file contains hidden or 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
| //npm i nodemailer --save | |
| var nodemailer = require('nodemailer'); | |
| function sendEmail(subject, emailBody, email){ | |
| let myEmail = 'myEmailAddress'; | |
| let transporter = nodemailer.createTransport({ | |
| service: 'Hotmail', //Gmail, Hotmail | |
| auth: { |
This file contains hidden or 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
| const repl = require('repl'); | |
| const babel = require('babel-core'); | |
| function preprocess(input) { | |
| const awaitMatcher = /^(?:\s*(?:(?:let|var|const)\s)?\s*([^=]+)=\s*|^\s*)(await\s[\s\S]*)/; | |
| const asyncWrapper = (code, binder) => { | |
| let assign = binder ? `global.${binder} = ` : ''; | |
| return `(function(){ async function _wrap() { return ${assign}${code} } return _wrap();})()`; | |
| }; |
NewerOlder