From c17e0d8d8414e1c12f908507f2d5211de9d877ad Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 2 Apr 2022 12:07:49 -0400 Subject: [PATCH] Updated rootkit to include HTTPWorm & SQLInject --- scripts/rootkit.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/rootkit.js b/scripts/rootkit.js index 827b127..1b944d0 100644 --- a/scripts/rootkit.js +++ b/scripts/rootkit.js @@ -45,13 +45,17 @@ export async function main(ns) { // Run exploits ns.brutessh(args['device']); if(!args['silent']) { - await slowPrint(ns, `Attacking over SSH (${args['device']}:22)...`, 0.5, 1.5); + await slowPrint(ns, `Checking SSH (:22)...`, 0.5, 1.5); spacer = true; } ns.ftpcrack(args['device']); - if(!args['silent']) await slowPrint(ns, `Attacking over FTP (${args['device']}:24)...`, 0.5, 1.5); + if(!args['silent']) await slowPrint(ns, `Checking FTP (:24)...`, 0.5, 1.5); ns.relaysmtp(args['device']); - if(!args['silent']) await slowPrint(ns, `Attacking over SMTP (${args['device']}:25)...`, 0.5, 1.5); + if(!args['silent']) await slowPrint(ns, `Checking SMTP (:25)...`, 0.5, 1.5); + ns.httpworm(args['device']); + if(!args['silent']) await slowPrint(ns, `Checking HTTP (:80)...`, 0.5, 1.5); + ns.sqlinject(args['device']); + if(!args['silent']) await slowPrint(ns, `Checking SQL (:3306)...`, 0.5, 1.5); } catch { } finally { try {