![]() |
win 2k scripting
ok i need a command to change the file permissions on a folder
background: i need to lock down my computer so i wrote a script to first remove all shares (even c$, admin$ ipc$...) then it remaps them to random folders on my drive i then want to deny access to these folders to everyone so that they can not be acessed. here is what i have so far. md c:\goaway\A$ md c:\goaway\B$ ... md c:\goaway\Z$ REM this makes all the directories to be mapped they go to net share A$ /delete net share B$ /delete ... net share Z$ /delete net share ADMIN$ /delete net share IPC$ /delete REM this removes all the hidden shares net share A$=c:\goaway\a$ net share B$=c:\goaway\b$ ... net share A$=c:\goaway\a$ REM this remaps all the shares to the folders. Cacls c:\goaway\a$ /d everyone Cacls c:\goaway\b$ /d everyone ... Cacls c:\goaway\c$ /d everyone REM this changes the permission to deny for the usergroup everyone the only problem is that i have to accept by pressing y and enter to confirm it, i cant have this confirm i need it to run with out confirmation. and help? |
ah i figured it out
ECHO Y |Cacls c:\goaway /d everyone teh ECHO Y drops the y for me and accepts it, while were at it, any one here script? the old art of .bat files? |
I've done a little batch file hacking. Nothing to serious though.
|
this is legit hacking though, its in school and we are alowed to hack the teachers computer to learn security
its loads of fun |
All times are GMT -8. The time now is 08:45 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project