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
# It's Work to you test if the vulnerability is working | |
# use only to test your system | |
# use with responsability | |
# | |
# use method: | |
# test-WP-CVE-2017-8295.sh [YOUR-SITE-TO-TEST] [USER-TO-TEST] | |
# ex: test-WP-CVE-2017-8295.sh example.com user | |
curl --write-out %{http_code} --silent --output ~/body.txt \ |
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
#!/bin/bash | |
# | |
# SH to list all repositories in docker registry, list all tags of repositorie and remove all images from the tag repositorie | |
# | |
# Created by: Gustavo Apolinario | |
# 2017-05-12 | |
# | |
# curl -X GET localhost:5000/v2/_catalog | |
# curl -X GET localhost:5000/v2/socsite_apache/tags/list |
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
FROM amazonlinux:latest | |
ARG AURL="https://www.site.com.br/" | |
ENV URL=$URL | |
CMD echo $URL |
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
db: | |
image: mariadb:latest | |
environment: | |
- MYSQL_ROOT_PASSWORD=Eak829ij23 | |
- MYSQL_USER=dba | |
- MYSQL_PASSWORD=zoilo367 | |
- TERM=xterm-256color | |
ports: | |
- "3306:3306" | |
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
private String leArquivo(String nome) { | |
String linha = ""; | |
StringBuilder conteudoArquivo = new StringBuilder(); | |
try { | |
FileReader arq = new FileReader(nome); | |
BufferedReader lerArq = new BufferedReader(arq); |
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
"use strict"; | |
/* | |
* Class myStorage | |
* Gerencia registros salvando-os no navegador | |
* Suporte a cookie e localStorage | |
*/ | |
var myStorage = new Object(); | |
myStorage.defaultExpirationDays = 30; |
NewerOlder