#!/bin/bash # custom message read -p "Enter custom message (latest news of the month, how things are now, and where we're going):" custom_msg # gpg sign the message ######-----BEGIN PGP SIGNED MESSAGE----- echo "-------TRANSPARENCY REPORT---------" > report.txt echo "" >> report.txt echo "I am Nihilist, I am the owner of this private PGP key, of nihilism.network, of datura.network and of all of its subdomains, which are under my sole control." >> report.txt echo "Today is the $(date), and the latest Monero block is $(curl https://moneroexplorer.org/ 2>/dev/null | grep /tx/ | head -n1 | sed -E 's/.*\/tx\///gi' | sed -E 's/\">.*//gi') (checked on moneroexplorer.org)," >> report.txt echo "This is the transparency report of the month:" >> report.txt echo "My public PGP key is located at https://nihilism.network/nihilist.pubkey and can be used to verify this message" >> report.txt echo "" >> report.txt echo "--------NEWS OF THE MONTH---------" >> report.txt echo "" >> report.txt echo $custom_msg >> report.txt echo "" >> report.txt echo "--------SERVERSIDE REPORT---------" >> report.txt echo "" >> report.txt ssh datura /root/transparencyreport.sh >> report.txt echo "" >> report.txt echo "----------HOW TO VERIFY-----------" >> report.txt echo "" >> report.txt echo "To verify this message, the procedure is as follows:" >> report.txt echo >> report.txt echo "cd /tmp" >> report.txt echo "wget https://nihilism.network/nihilist.pubkey" >> report.txt echo "gpg --import nihilist.pubkey" >> report.txt echo "wget https://nihilism.network/monthly_report.txt -O - 2>/dev/null| gpg --verify" >> report.txt echo "wget https://datura.network/monthly_report.txt -O - 2>/dev/null| gpg --verify" >> report.txt echo >> report.txt echo "----------------------------------" gpg -u nihilist@nihilism.network --clearsign report.txt cp report.txt.asc $(date --iso-8601=date).txt cat $(date --iso-8601=date).txt rsync $(date --iso-8601=date).txt datura:/srv/datura.network/monthly_report.txt rsync $(date --iso-8601=date).txt datura:/srv/datura.network/transparency/ rsync $(date --iso-8601=date).txt datura:/srv/nihilism.network/monthly_report.txt rsync $(date --iso-8601=date).txt datura:/srv/nihilism.network/transparency/