From cde6eca6b5f29bb33a5c0575d10b3275ceb9c219 Mon Sep 17 00:00:00 2001 From: Jesse Clark Date: Tue, 29 Mar 2022 14:27:30 -0700 Subject: [PATCH] Set `mv` ram cost to ScriptReadWriteRamCost This seems a bit high but avoids an exploit due to setting it lower than `rm`. --- src/Netscript/RamCostGenerator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Netscript/RamCostGenerator.ts b/src/Netscript/RamCostGenerator.ts index 595fb739a..779afa461 100644 --- a/src/Netscript/RamCostGenerator.ts +++ b/src/Netscript/RamCostGenerator.ts @@ -200,6 +200,7 @@ export const RamCosts: IMap = { readPort: 0, getPortHandle: 0, rm: RamCostConstants.ScriptReadWriteRamCost, + mv: RamCostConstants.ScriptReadWriteRamCost, scriptRunning: RamCostConstants.ScriptArbScriptRamCost, scriptKill: RamCostConstants.ScriptArbScriptRamCost, getScriptName: 0,