Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
1.7 kB
2
Indexable
Never
//erreur ca devait etre un fichier au nom different; à recopier

var servershack = [
	"microdyne",
	"powerhouse-fitness",
	"solaris",
	"titan-labs",
	"microdyne",
	"powerhouse-fitness",
	"solaris",
	"titan-labs",
	"omnitek",
	"vitalife",
	"fulcrumtech",
	".",
	"blade",

];

nuke("ecorp"); //highest money

for (var i = 0; i < servershack.length; ++i) {
	var serv = servershack[i];
	var smr = getServerRam(serv);
	var amr = getScriptRam("HS.script");//target ecorp change to call args
	var numberofThread = Math.floor(smr[0] / amr);
	/*tprint(serv);
	*tprint(smr);
	*tprint(amr);
	tprint(numberofThread);*/

	if (getServerNumPortsRequired(serv) == 0) {

		nuke(serv);
	
		scp("HS.script", serv);
		exec("HS.script", serv, numberofThread);
	}
	else if (getServerNumPortsRequired(serv) == 1) {

		httpworm(serv);
		nuke(serv);
	
		scp("HS.script", serv);
		exec("HS.script", serv, numberofThread);
	}
	else if (getServerNumPortsRequired(serv) == 2) {
		httpworm(serv);
		ftpcrack(serv);
		nuke(serv);

		scp("HS.script", serv);
		exec("HS.script", serv, numberofThread);

	}

	else if (getServerNumPortsRequired(serv) == 3) {
		httpworm(serv);
		ftpcrack(serv);
		sqlinject(serv);
		nuke(serv);
	
		scp("HS.script", serv);
		exec("HS.script", serv, numberofThread);

	}

	else if (getServerNumPortsRequired(serv) == 4) {
		httpworm(serv);
		ftpcrack(serv);
		sqlinject(serv);
		relaysmtp(serv);
		nuke(serv);
		
		scp("HS.script", serv);
		exec("HS.script", serv, numberofThread);

	}
	else if (getServerNumPortsRequired(serv) == 5) {


		httpworm(serv);
		ftpcrack(serv);
		sqlinject(serv);
		relaysmtp(serv);
		brutessh(serv);
		nuke(serv);
	
		scp("HS.script", serv);
		exec("HS.script", serv, numberofThread);
	}


}