update to poc||gtfo 0x18 post
This commit is contained in:
parent
d2d9d85d1f
commit
64fc1e7d50
@ -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.*\)/<a href="https:\/\/wxcafe.net\/pub\/PoC||GTFO\/\1">\1<\/a>/g' index.html
|
||||
sed -i 's/\(body {\)\(.*\)/\1font-size: 16px; \2/' index.html
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user