Draco18s

Bitburner Exploits

Oct 11th, 2022 (edited)
759
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const doc = eval("document");
  2.  
  3. async function PrototypeTampering(ns) {
  4.     const tamper = {
  5.         toExponential: () => {
  6.             return 0;
  7.         }
  8.     }
  9.     const orig = Number.prototype;
  10.     Object.assign(Number.prototype, tamper);
  11.     await ns.sleep(5000);
  12.     Object.assign(Number.prototype, orig);
  13. }
  14.  
  15. function Undocumented(ns) {
  16.     ns.exploit();
  17. }
  18.  
  19. function Unclickable() {
  20.     const unclick = doc.getElementById("unclickable");
  21.     const handler = Object.keys(unclick)[1];
  22.     unclick[handler].onClick({ target: unclick, isTrusted: true });
  23. }
  24.  
  25. function Bypass(ns) {
  26.     eval("ns.bypass(document)");
  27. }
Advertisement
Add Comment
Please, Sign In to add comment