From 64fc1e7d50c0118a1de664ddf391c95dfff7230a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wxcaf=C3=A9=20=28Cl=C3=A9ment=20Hertling=29?= Date: Mon, 25 Jun 2018 22:33:33 +0200 Subject: [PATCH] update to poc||gtfo 0x18 post --- content/poc||gtfo_0x18.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/content/poc||gtfo_0x18.md b/content/poc||gtfo_0x18.md index 492a3ba..7118e5a 100644 --- a/content/poc||gtfo_0x18.md +++ b/content/poc||gtfo_0x18.md @@ -34,3 +34,23 @@ trouble reading small text... and voilĂ ! A perfect index.html file for my PoC||GTFO mirror. Anyways, I have a 64-page zine to run and it looks really good... Seeya! + +Update 2018-06-25T22:19+02:00 : + +I have now automated this whole task. Here's the script: + +```shell +#!/bin/bash +echo '[wxcafe@yoshi] /srv/pub/mirror/PoC||GTFO $ echo "SHA256 MD5 File"; for f in *.pdf; do +echo $(sha256sum $f | cut -d ' ' -f 1) $(md5sum $f | cut -d ' ' -f 1) $f +done' > index + +echo "SHA256 MD5 File" >> index +for f in *.pdf; do + echo $(sha256sum $f | cut -d ' ' -f 1) $(md5sum $f | cut -d ' ' -f 1) $f >> index +done + +vim -c 'set ft=sh' -c TOhtml -c "w index.html | qall!" index &> /dev/null +sed -i 's/\(pocorgtfo.*\)/\1<\/a>/g' index.html +sed -i 's/\(body {\)\(.*\)/\1font-size: 16px; \2/' index.html +```