Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 10-30-2003, 01:36 AM   #1 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
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?
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
Old 10-30-2003, 02:07 AM   #2 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
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?
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
Old 10-30-2003, 03:16 AM   #3 (permalink)
"Officer, I was in fear for my life"
 
hrdwareguy's Avatar
 
Location: Oklahoma City
I've done a little batch file hacking. Nothing to serious though.
__________________
Gun Control is hitting what you aim at

Aim for the TFP, Donate Today
hrdwareguy is offline  
Old 10-31-2003, 12:32 PM   #4 (permalink)
Devils Cabana Boy
 
Dilbert1234567's Avatar
 
Location: Central Coast CA
this is legit hacking though, its in school and we are alowed to hack the teachers computer to learn security

its loads of fun
__________________
Donate Blood!

"Love is not finding the perfect person, but learning to see an imperfect person perfectly." -Sam Keen
Dilbert1234567 is offline  
 

Tags
scripting, win


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 10:24 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62