Created
February 6, 2021 15:29
-
-
Save AbelLykens/486ec6d7aee32b0aa611239ce1ea1249 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
KEY=x | |
SECRET=y | |
NOW=$(date +%s) | |
# Get data | |
curl -s\ | |
-A Custom_bash_script_marnix \ | |
-H "X-Auth-Date: $NOW" \ | |
-H "X-Auth-Key: $KEY" \ | |
-H "Authorization: $(echo -n "${KEY}${SECRET}${NOW}"| sha1sum | cut -d' ' -f1 | tr '[:upper:]' '[:lower:]')" \ | |
"https://api.podcastindex.org/api/1.0/podcasts/bytags?podcast-value" > /tmp/feeds | |
cat /tmp/feeds | jq -r '.feeds[]?.value?.destinations[]?.address'| grep -E "[a-f0-9]{64}" | sort | uniq | grep -v "03e691f81f08c56fa876cc4ef5c9e8b727bd682cf35605be25d48607a802526053" | while read key; do | |
lncli sendpayment --dest $key --amt=1 --keysend --data 34349334=50726f62652066726f6d2068747470733a2f2f4c696768746e696e672e5761746368 >/dev/null | |
if [[ $? == 0 ]]; then | |
echo "Keysend SUCCESS: $key" | |
else | |
echo "Keysend FAIL: $key" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment