- The tool gathers data on local account statuses across all computers on a given server.
- It generates informative CSV reports detailing user account types (standard, admin, "backdoor admin"), FileVault status, account distributions, and their associations with specific computers.
- Its behavior is read-only and makes no alterations to any data.
- Read local account data on all computers.
- As of 2024-01-09, this tool is strictly read-only and does not modify any data; it only draws inferences.
- The script's execution time is influenced by the number of computers on the server. For instance, running it on a server with 3,500 computers may take over 9 minutes. Additionally, performance may vary depending on hardware specifications, operating system, and internet quality.
- Ensure you have Node.js installed.
-
Open your terminal and navigate to the program's main directory (directory should contain the file called
package.json
).npm install
-
For production (manual login credentials prompted on each run):
-
Ensure these variables found inside
./helpers/prompts.mjs
are all set tonull
:// set these to `null` in prod const testHostname = null; const testUsername = null; const testPassword = null;
-
Then run:
node ./index.mjs
-
-
For testing or development (automates login process using predefined credentials in plaintext):
-
Edit
./helpers/prompts.mjs
with your desired login credentials. Example:// set these to `null` in prod const testHostname = "rocketman.jamfcloud.com"; const testUsername = "myUsername"; const testPassword = "myPassword";
-
Then run with the
--test
flag:node ./index.mjs --test
-
- The output is stored in the
/data
subdirectory under the current working directory.
- The tool creates
/data/1
the first time it's run under the current working directory, storing output files in/1
. - Subsequent runs create new directories (
/2
,/3
, etc.) inside/data
to store subsequent outputs.
-
All data gathered, modified, and created are placed into the
/data
directory. -
The "meat" of this tool are the three
.csv
files found inside/data
:-
backdoorAdminAccountReport.csv
:- A list of all "backdoor admin" accounts and the number of computers each is found on.
-
localUserAccountReport.csv
:- A list of all users across all computers, listing details for the computer each user belongs to (ID, serial number, computer name), user's account name, and their admin/backdoor-admin/FileVault status.
-
computerReport.csv
:- A list of all computers and their corresponding counts of different account types (e.g. standard, admin, backdoor admin).
-