Options
All
  • Public
  • Public/Protected
  • All
Menu

Module helpers/route

Index

Executable

Importable

Executable

  • main(ns: NS): Promise<void>
  • Get route to a host using the Terminal.

    export
    example

    Gets route to single passed in host.

    run /helpers/backdoor.js [host0]
    
    example

    Gets route to multiple passed in hosts.

    run /helpers/backdor.js [host0] ... [hostn]
    

    Parameters

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Importable

  • printRoute(ns: NS, route: false | string[]): void
  • Print the route to a host.

    export

    Parameters

    • ns: NS

      The Netscript object.

    • route: false | string[]

      Route to use to backdoor, including target.

    Returns void

Generated using TypeDoc