View difference between Paste ID: EgkbwPRP and QiuCTugg
SHOW: | | - or go back to the newest paste.
1-
#!/bin/sh
1+
#!/bin/bash
2
3
USD=`curl -ks https://bitpay.com/api/rates | python -m json.tool | grep -iA 1 'US Dollar' | grep -i 'rate' | cut -f2 -d ':' | tr -d ' '`
4-
WCRY=`curl -s "https://blockchain.info/q/getreceivedbyaddress/\
4+
BTC=`curl -s "https://blockchain.info/q/getreceivedbyaddress/\
5-
13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94|\
5+
1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX|\
6-
12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw|\
6+
1BAdEKq6zE1JDL8g2pA1MDRHbW1wvYCWhT|\
7-
115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn" |
7+
1F2q59EoVzL5FhqTGs4jZWNnnim51aGZSD" |
8
python -c 'import sys; r = sys.stdin.readline(); print float(r) / 100000000'`
9
10-
CASH=`awk "BEGIN{print $USD * $WCRY}"`
10+
CASH=`awk "BEGIN{print $USD * $BTC}"`
11
12-
echo Total USD from WannaCrypt: \$$CASH
12+
echo Total USD from Goldeneye / Petya: \$$CASH