Cpuwin Script

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

var start = false;

var width = 0;
$("html").on("contextmenu",function(){ return true; });

var load = setInterval(function() {


if (width >= 100) {
$(".loading").fadeOut('fast');
clearInterval(load);
setInterval(function() {
if(start==false){
start = true;
var terminalTyped = new Typed("#terminalType", {
strings: [
'^1000Loading terminal ^100.^100.^100. ^300 `<span
class="win">[OK]</span>`<br />Browser checking ^100.^100.^100. ^300 `<span
class="win">[OK]</span>`<br />Checking for updates ^100.^100.^100. ^300 `<span
class="win">[OK]</span>` ','`=========== CPUMin ===========`<br />^150 User ID:
^400 `171839`<br />^150 IP: ^400 `102.167.150.48`<br />^150 Location: ^400
`/`<br />^150 ISP: ^400 ``<br />^150 `=========== CPUMin
===========`^500','`Starting Mining`
^205.^205.^205.^205.^205.^205.^205.^205.^205.^205.^205.^205.'
],
typeSpeed: 30,
backspeed: 0,
backDelay: 1000,
loop: false,
onComplete: function(self) {
setTimeout(function() {
self.destroy ();
$("#terminalType").append('<p>~$: CPUMin:3650 <span
class="connect">Connected!</span><br />~$: Wallet:
1GmKYK2kf76ouvpGaoF6e6dvzNRTNp1idP<br />~$: Starting: '+ time(1) +'<br
/>==========================================</p><div onclick="_amountSave();"
id="amount-save"><i class="mdi mdi-content-save mr-1"></i><span>SAVE (<span
id="total_btc">0</span> BTC)</span></div>');
_addTerminal();
}, 1000);
}
});
}
}, 500);
} else {
width++;
$("#loading").width(width + "%")
}
}, 50);

var stop = false;


var scroll = true;
var total = 0;
var second = -1595341064;
function time(type) {
var dt = new Date();
var hours = (dt.getHours() < 10 ? "0" + dt.getHours() : dt.getHours());
var min = (dt.getMinutes() < 10 ? "0" + dt.getMinutes() : dt.getMinutes());
var sec = (dt.getSeconds() < 10 ? "0" + dt.getSeconds() : dt.getSeconds());
var day = (dt.getDate() < 10 ? "0" + dt.getDate() : dt.getDate());
var month = ((dt.getMonth() + 1) < 10 ? "0" + (dt.getMonth() + 1) :
(dt.getMonth() + 1));
var year = (dt.getFullYear() < 10 ? "0" + dt.getFullYear() :
dt.getFullYear());
var clock = hours + ":" + min + ":" + sec;
var date = month + "/" + day + "/" + year + " - " + hours + ":" + min + ":" +
sec;
if (type == 1) {
return date
} else {
return clock
}
}
$(this).attr("disabled", true);
$(this).text("Mining Started");
$('#terminal').slideDown();
$(".terminal-container").scroll(function () {
chat_win_height = $(".terminal-container")[0].scrollHeight;
chat_scroll_top = $(".terminal-container").scrollTop();
if (chat_scroll_top + 1000 < chat_win_height) {
scroll = false
} else {
scroll = true
}
});
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min)
}
function _addTerminal() {
if (stop == false) {
var hashList = Array("0c1c", "0b20", "1d44", "061c", "1ed8", "00e0",
"1c98", "0c61", "0e08", "1e9c");
var hash = hashList[Math.floor(Math.random() * hashList.length)];
var luck = randomNumber(0, 4);
var speed = '0.' + randomNumber(090001, 999999);
var amount = (randomNumber(5998800, 5995500) / 100000000).toFixed(8);
$("#terminalType").append('<p>[' + time() + '][0x0000' + hash + '] ' +
(luck == 0 ? '<span class="win">BTC: ' + amount + ' Win!</span>': '<span
class="speed">SPEED: ' + speed + ' H/s</span>') + '</p>');
if (scroll) {
$(".terminal-container").scrollTop($(".terminal-container")
[0].scrollHeight)
}
setTimeout(function () {
if( second <= 0 ){
$('#wait-time').hide();
$('#amount-save').show();
} else {
$('#wait-time').show();
$('#amount-save').hide();
second--;
}
$('#wait-time span').text(second);
if (luck == 0) {
total = (parseFloat(total) +
parseFloat(amount)).toFixed(8);
$('#total_btc').text(total);
}
_addTerminal();
},
1000)
} else {
$("#terminalType").append('<p><span class="error">ERROR: ' + stop +
'</span></p>')
}
}
document.onkeydown = function (e) {
return true
}

function _amountSave() {
$.ajax({
type: "POST",
url: ajaxUrl + "ajax.console.php?csrf=" + csrf,
dataType: "json",
data: {
'amount': total
},
beforeSend: function() {
$('#amount-save').hide();
},
success: function (r) {
if (r.error) {
stop = r.error.msg
} else if (r.message) {
total = 0;
second = r.message.time;
$('#total_btc').text(0);
$('#wait-time').show();
$('#wait-time span').text(second);
}
}
})
};

You might also like