Bitburner – Exploit: Edit Achievement Guide

Some code to get the achievement hackers!

How to Obtain Exploit: Edit Achievement

All credit goes to Scrzbbles!

How-To

Instructions below!

  • Go to your home computer and type this:
nano devmenu.ns
  • Now just copy and paste the code from this guide into it and save it.
  • Then you can go to your home computer again and run it:
run devmenu.ns
  • Now you should see that you got the achievement!
  • Don’t forget to kill the script with:
kill devmenu.ns

This is the important code to get the achievement:

/** @param {NS} ns **/

let getProps = (obj) => Object.entries(obj).find(entry => entry[0].startsWith("__reactProps"))[1].children.props;
let hasPlayer = (obj) => 
{
	try
	{
		return getProps(obj).player ? true : false;
	}
	catch(ex)
	{
		return false;
	}
}

export async function main(ns) {
	let boxes = Array.from(eval("document").querySelectorAll("[class*=MuiBox-root]"));
	let box =  boxes.find(x => hasPlayer(x));

	if(box)
	{
		ns.tprintf("INFO className: \"" + box.className + "\"");

		let props = getProps(box);

		// get a 10% cash bonus
		props.player.money = props.player.money * 1.1;

		//  open dev menu
		props.router.toDevMenu();
	}
}

Egor Opleuha
About Egor Opleuha 7697 Articles
Egor Opleuha, also known as Juzzzie, is the Editor-in-Chief of Gameplay Tips. He is a writer with more than 12 years of experience in writing and editing online content. His favorite game was and still is the third part of the legendary Heroes of Might and Magic saga. He prefers to spend all his free time playing retro games and new indie games.

Be the first to comment

Leave a Reply

Your email address will not be published.


*