Skip to content

Instantly share code, notes, and snippets.

@timsonner
Last active June 5, 2023 01:50
Show Gist options
  • Select an option

  • Save timsonner/51598871e230a0289604e9630820ade6 to your computer and use it in GitHub Desktop.

Select an option

Save timsonner/51598871e230a0289604e9630820ade6 to your computer and use it in GitHub Desktop.
Batch. Run “net user /domain > users.txt”. Remove the first 6 lines of users.txt, then the last line and finally run this script. Drop it into pass-spray.go.
@echo off
if "%~1" == "" (
echo Usage: %0 users.txt
exit /b 1
)
for /f "usebackq tokens=1,2,3*" %%A in (%1) do (
echo %%A
echo %%B
echo %%C
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment