forked from faangbait/phoenix-os-bitburner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbin.sudo.js
40 lines (31 loc) · 912 Bytes
/
sbin.sudo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/** @param {import(".").NS } ns */
export async function main(ns) {
let targ = ns.args[0];
try {
ns.brutessh(targ);
ns.ftpcrack(targ);
ns.relaysmtp(targ);
ns.httpworm(targ);
ns.sqlinject(targ);
} catch (e) {ns.print(e); }
try {
ns.nuke(targ);
await ns.scp([
"bin.gr.future.js",
"bin.gr.futureloop.js",
"bin.gr.loop.js",
"bin.gr.once.js",
"bin.hk.future.js",
"bin.hk.futureloop.js",
"bin.hk.loop.js",
"bin.hk.once.js",
"bin.wk.future.js",
"bin.wk.futureloop.js",
"bin.wk.loop.js",
"bin.wk.once.js",
"bin.prep.js",
"bin.share.loop.js",
"bin.universal.loop.js",
], "home", targ);
} catch (e) {ns.print(e); }
}