View fluentd.conf
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
<source> | |
@type tail | |
path /var/log/nginx/**.log | |
pos_file /var/log/td-agent/le4ker.me/nginx/log.pos | |
tag nginx | |
read_from_head true | |
<parse> | |
@type none | |
</parse> | |
</source> |
View parent.html
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
<html> | |
<body> | |
<script> | |
// The following Javascript resizes the iframe's height when Blocktopus' embeded page's height changes | |
window.addEventListener("message", receiveMessage, false); | |
function receiveMessage(event) { | |
if (event.data.event_id == 'blocktopus_height') { | |
iframe = document.getElementById("blocktopus_iframe"); | |
iframe.height = event.data.value + "px"; |
View embed-blocktopus-sign-in.html
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
<html> | |
<body> | |
<script> | |
window.addEventListener("message", receiveMessage, false); | |
function receiveMessage(event) { | |
if (event.data.event_id == 'blocktopus_height') { | |
iframe = document.getElementById("blocktopus_iframe"); | |
iframe.height = event.data.value + "px"; |
View ecs-certbot-renew.sh
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
# sudo rm -rf /opt/eff.org | |
#cd /opt/letsencrypt | |
#sudo ./letsencrypt-auto renew --standalone --debug | |
sudo rm -rf /opt/eff.org/* | |
sudo pip install -U certbot | |
sudo /usr/local/bin/certbot renew --standalone --debug --preferred-challenges http-01,dns-01 | |
# https://community.letsencrypt.org/t/upcoming-tls-sni-deprecation-in-certbot/76383 |
View nginx-certbot
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
include /etc/nginx/modules-enabled/*.conf; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} |
View ecs-certbot.sh
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
# https://superuser.com/questions/1072408/how-to-install-lets-encrypt-on-amazon-linux | |
sudo certbot certonly --standalone --debug |
View cbc-bit-flipping.rb
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
# # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Demonstration of CBC Bit Flipping Attack # | |
# Author: Panos Sakkos <panos.sakkos@gmail.com> # | |
# Date: October 2017 # | |
# License: MIT # | |
# # # # # # # # # # # # # # # # # # # # # # # # # # | |
require 'openssl' | |
class UnauthenticatedEncryption |
View padding-oracle-attack.rb
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
# # # # # # # # # # # # # # # # # # # # # # # # # | |
# Demonstration of Padding Oracle Attack # | |
# Author: Panos Sakkos <panos.sakkos@gmail.com> # | |
# Date: May 2017 # | |
# License: MIT # | |
# # # # # # # # # # # # # # # # # # # # # # # # # | |
require 'openssl' | |
class PaddingOracle |
View length-extension-attack.rb
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
# # # | |
# /17/sha-256.rb | |
# (c) 2010 Jan Lelis <mail@janlelis.de>. MIT License. | |
# See: http://ruby.janlelis.de/17-sha-256 | |
# | |
# May 2017, Modified by Panos Sakkos to demonstrate Length Extension Attack | |
# - Refactored so the initialization vector and message length can be injected. | |
# - Added example of length extension attack | |
# # # |
View B8745955.asc
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFtbJegBEACjlZEmw+ryId5XPgqHq2q7EjoaU2xSYJURPLm5by0OqWVm6rxI | |
gS3l4G6/rdcX7DESElRKHCYGg+9r+GmyDCM15SMK/LkG2lKnC48qogWHsgVcb7u0 | |
JlyAx2SCwnMFG+ndYj+ytYiSix9YY8uvq1TjLCqNQtZcAbkaAEVZ2SUZiwgQxCxt | |
ynRZd4v/v6WECgR6fE4uDNQnQ9mTS/gnhlEZR0vQs4YAELbK8sDLz7AETGV1Ajvo | |
Y5x1jlQ4fZ+S4j52/L5+3YysZ5jIXgctS5tk35erODhDO3tsC/vW+35QgJniZiG1 | |
mwpJVTylCTsb2sgJkXrDCuQUm0B8q8emIBOwAXLxlMRqfoTX4NVyVsNBAxE0AC2L | |
iKFV/L7Yl/SuBS08VBY9x5lLf5RSnPQLGX4LebRHyqWaE8sO9VV+Brf/fXlRWnRH | |
iTyWOUoXELPh+yFX/Qcd+qS30J3KY6rYyScQ8/kjWW0fuIh0q4BxDLYgT0h+sjlG |
NewerOlder