[Need Help] How to UnObfuscate this batch file?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
pearlyour
Posts: 2
Joined: 23 Dec 2018 01:13

[Need Help] How to UnObfuscate this batch file?

#1 Post by pearlyour » 23 Dec 2018 01:26

Done for all, mod please help me close topic. Thank all!
Last edited by pearlyour on 27 Dec 2018 05:13, edited 1 time in total.

dbenham
Expert
Posts: 2461
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: [Need Help] How to UnObfuscate this batch file?

#2 Post by dbenham » 23 Dec 2018 13:13

The simplest way to quickly see the underlying code is to modify the script as follows:

1) Add ECHO ON after the @ECHO OFF line.
2) On all of the subsequent lines, prefix each line with REM<space>. The <space> represents a single space character.

Now simply run the modified script, and all of the REM lines will be unobfuscated and printed to the screen. If you want, you can use redirection to capture the output in a text file and then use your favorite text editor to look at the code.


Dave Benham

pearlyour
Posts: 2
Joined: 23 Dec 2018 01:13

Re: [Need Help] How to UnObfuscate this batch file?

#3 Post by pearlyour » 24 Dec 2018 01:28

dbenham wrote:
23 Dec 2018 13:13
The simplest way to quickly see the underlying code is to modify the script as follows:

1) Add ECHO ON after the @ECHO OFF line.
2) On all of the subsequent lines, prefix each line with REM<space>. The <space> represents a single space character.

Now simply run the modified script, and all of the REM lines will be unobfuscated and printed to the screen. If you want, you can use redirection to capture the output in a text file and then use your favorite text editor to look at the code.


Dave Benham
Thank you very much, Dave. Merry Christmas

Post Reply