undeletable batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
kumar_kondapalli
Posts: 32
Joined: 08 Jul 2011 03:38

Re: undeletable batch file

#16 Post by kumar_kondapalli » 12 Jul 2011 02:01

Nitt,
Code:
@echo off
echo set fso = createobject("scripting.filesystemobject") : set file = fso.getfile("file.bat") : file.attributes = 2 > ~tmp.vbs
start ~tmp.vbs
ping 0 -n 1 > nul
del ~tmp.vbs

I tried the below code and it gives me an error message saying that ~tmp.vbs file not found. Can you fix this error or tell me what iam doing wrong?

Thanks,
SAN

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: undeletable batch file

#17 Post by Cleptography » 12 Jul 2011 07:12

Never mind I have changed my position asking rather trivial questions and revolving around what seems to be some rather unpleasant tasks is a no no. There shall be no help provided in the helping of creating malicious batch scripts.

@aGerman
...or some other mod where you at, you need to look into oranges comments and lock these threads.

kumar_kondapalli
Posts: 32
Joined: 08 Jul 2011 03:38

Re: undeletable batch file

#18 Post by kumar_kondapalli » 12 Jul 2011 07:16

Hey iam really sorry for that .. Sure i will search for the topics in this forum and then get back to you people who are very professional..

Thanks every one :-)

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: undeletable batch file

#19 Post by Ed Dyreen » 12 Jul 2011 07:32

'
Writing a batch "virus" is incredibly easy, although the easiest solution is detected as the batch delete virus by many AV software. We should just help people trying to write there "virusses".

Using only batch, they will likely not get very far..
Most of us are smart enough to see the intention of batch code.

All viruses are useful, if you are interested in security.

Cleptography
Posts: 287
Joined: 16 Mar 2011 19:17
Location: scriptingpros.com
Contact:

Re: undeletable batch file

#20 Post by Cleptography » 12 Jul 2011 07:37

Edward you disappoint me, there is no such thing as a batch virus in today's world, not at least by what the standards would be considered for worthy virus code. Batch does not hide itself and does not spread. If batch is a virus than simple over the counter Robitussin will knock that right out.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: undeletable batch file

#21 Post by aGerman » 12 Jul 2011 10:07

Writing a "virus" was never a question in this topic :? How ever, there is no way to write a real virus with batch. Virus and malware are not the same.
Since Cleptography explained conclusively that there is no way to make a batch file undeletable this topic is answered.

Regards
aGerman

Locked