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 +```