Little Script to make Burst Stealing harder.
As I've seen some ppl having their Burst stolen, I've made a little script that transfers the Burst automaticly to another Burst Account, like a Cold Wallet, where you have your Passphrase in your head or make a new Burst Account with a longer password (like 30+ Chars) wihtout replotting everything again.
What the Script does is simple. It checks your Mining Account and if the Balance is over 100 Burst (or whatever you want to), it transfers them to your other Burst Account with 1Burst Fee.
So you can use your plots and make a more secure password account.
It is a PHP Script which needs cURL, should run on Windows aswell as on Linux.
Just create a Cronjob/Automatic Task like every 5 Minutes and let it run.
It only needs your "insecure" password of your Mining Account.
header( 'Content-type: text/html; charset=utf-8' );
######################################################## Change Stuff here ####################################################
#Which Burst Address should be checked?
$burstid = "BURST-XXX-XXX-XXX-XXX";
$secret = "This Is My Mining Passphrase Which Is Weak";
#Send Burst to which address?
$recipient = "BURST-XXX-XXX-XXX-XXX";
###############################################################################################################################
function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, TRUE); // Use POST method
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch,CURLOPT_PORT, 8125);
$data = curl_exec($ch);
curl_close($ch);
return $data;
} }
#Check Balance and Send Burst
$url = "http://localhost:8125/burst?requestType=getBalance&account=". $burstid;
$bla = get_data($url);
$inhalt = json_decode($bla,true);
$balance = $inhalt['unconfirmedBalanceNQT'];
# 10000000000 equals 100 Burst
if ($balance > 10000000000) {
$secret = urlencode($secret);
$BurstToTransfer = $balance - 100000000;
$url = "http://localhost:8125/burst?requestType=sendMoney&recipient=".$recipient."&amountNQT=".$BurstToTransfer."&feeNQT=100000000&secretPhrase=".$secret."&deadline=1440";
$sendbursttocoldwallet = get_data($url);
}
?>
To make a strong password on a linux box.
Install pwgen if it isn't already installed and create some passwords with
pwgen -s -y 60