Create an exe from bat file

53 views
Skip to first unread message

Mohit Chawla

unread,
May 13, 2011, 4:40:31 PM5/13/11
to null-...@googlegroups.com
Hi all,

Does anyone know how can we create an executable file from a batch script?

Navin Pai

unread,
May 14, 2011, 4:51:21 PM5/14/11
to null-...@googlegroups.com
http://lmgtfy.com/?q=batch+file+to+executable

On Sat, May 14, 2011 at 2:10 AM, Mohit Chawla <mohit.c...@gmail.com> wrote:
Hi all,

Does anyone know how can we create an executable file from a batch script?

--
null - Spreading the right Information
null Mailing list charter: http://null.co.in/section/about/null_list_charter/
 
This list is supported by Institute of Information Security http://iisecurity.in
Learn information security at your own pace – eLearning programs at http://elearning.iisecurity.in



--
_________________________My Siggie!!________________________________

..::o0CanSomeoneTellMeTheLocationOfTheSpacebar???0o::.

« ¤ º NoRmaL PeOplE ScAre Me º ¤ »

The Most Nonsensical Blog On Earth: http://lifeofnavin.blogspot.com/

Mayur Mahajan

unread,
May 14, 2011, 4:57:15 PM5/14/11
to null-...@googlegroups.com

Use Bat to EXE Converter Tool
Here is Download link:


-Thanks & Regards

Mayur Mahajan

+91-9773434139

 (C|EH)


Mayur Shah

unread,
May 15, 2011, 1:49:12 AM5/15/11
to null-...@googlegroups.com, Mohit Chawla, Mayur Shah
Dear Mohit

please find the link

http://www.computerhope.com/dutil.htm
download utility
Bat_To_Exe_Converter.exe

Allows users to convert their batch files to executable files, allowing others not to see the source code and keep it hidden

you can also convert the .bat file to .com using bat_to_com.zip utility


Mayur Shah

Pune




On 5/14/2011 2:10 AM, Mohit Chawla wrote:
Hi all,

Does anyone know how can we create an executable file from a batch script?
--
null - Spreading the right Information
null Mailing list charter: http://null.co.in/section/about/null_list_charter/
�

This list is supported by Institute of Information Security http://iisecurity.in
Learn information security at your own pace � eLearning programs at http://elearning.iisecurity.in

Mohit Chawla

unread,
May 15, 2011, 6:55:51 AM5/15/11
to null-...@googlegroups.com
Thanks all for your valuable replies.
But, I feel there is a need to rephrase my question.

Using batch programming, I want to create an exe file, such that there is some original exe data in some variable in some encoded format inside the bat file and the bat create a new file and write the decoded data into it and execute then it.

Also, I was just thinking "Why one would like to convert a bat file to exe?", because anyway both are executables in Windows.
Same is the case with screensaver files.

If someone could enlighten me, why would there be such need?

On Sun, May 15, 2011 at 11:19 AM, Mayur Shah <eh....@gmail.com> wrote:
Dear Mohit

please find the link

http://www.computerhope.com/dutil.htm
download utility
Bat_To_Exe_Converter.exe

Allows users to convert their batch files to executable files, allowing others not to see the source code and keep it hidden

you can also convert the .bat file to .com using bat_to_com.zip utility


Mayur Shah

Pune




On 5/14/2011 2:10 AM, Mohit Chawla wrote:
Hi all,

Does anyone know how can we create an executable file from a batch script?
--
null - Spreading the right Information
null Mailing list charter: http://null.co.in/section/about/null_list_charter/
 
This list is supported by Institute of Information Security http://iisecurity.in
Learn information security at your own pace – eLearning programs at http://elearning.iisecurity.in


Anant Shrivastava

unread,
May 15, 2011, 7:36:49 AM5/15/11
to null-...@googlegroups.com
one of the simplest reason would be to hide the code.... bat file is essentially text file with script in it..
exe is binary.

others may give more details also
Anant Shrivastava 
 CEH | RHCE
Mob : 91-9764899904
E-mail : an...@anantshri.info
Web : http://anantshri.info

sachins...@gmail.com

unread,
May 15, 2011, 8:04:24 AM5/15/11
to mohit.c...@gmail.com, null-...@googlegroups.com
May be i am not getting it but it looks simple.with data or buffer in variable all we need is file IO write operation (echo with >> ). Please explain with more details if this is not you r lookin 4.

Thanks,
cons0ul

----------
Sent via Nokia Email

------Original message------
From: Mohit Chawla <mohit.c...@gmail.com>
To: <null-...@googlegroups.com>
Date: Sunday, May 15, 2011 4:25:51 PM GMT+0530
Subject: Re: [null] Create an exe from bat file

Thanks all for your valuable replies.
But, I feel there is a need to rephrase my question.

Using batch programming, I want to create an exe file, such that there is
some original exe data in some variable in some encoded format inside the
bat file and the bat create a new file and write the decoded data into it
and execute then it.

Also, I was just thinking "Why one would like to convert a bat file to
exe?", because anyway both are executables in Windows.
Same is the case with screensaver files.

If someone could enlighten me, why would there be such need?

On Sun, May 15, 2011 at 11:19 AM, Mayur Shah <eh....@gmail.com> wrote:

> Dear Mohit
>
> please find the link
>
> http://www.computerhope.com/dutil.htm

> download utility *Bat_To_Exe_Converter.exe*
> *Allows users to convert their batch files to executable files, allowing
> others not to see the source code and keep it hidden*

Vizay Soni

unread,
May 15, 2011, 11:30:35 AM5/15/11
to null-...@googlegroups.com
Yes u can...
In Backtrack's Windows Tools...you will find exe2bat.exe..the output of this tool is not in genral Batch program..
it creates an Assembly lang. equivalent code which is executable by windows's Debug.exe....
i used to create netcat.exe equivalent in batch...
Hope it helps...


--vs

Rascal♥♥♥

unread,
May 15, 2011, 11:13:42 AM5/15/11
to null-...@googlegroups.com
You mean like this

echo "#include<stdio.h> void main() { printf(\"hi\",a); return 0;} " > temp.c
gcc temp.c  -o exectutable

i think u can figure similar windows bath file command , try any other command line compling utilities for windows ..
i cant exactly understand your question , provided with what info i know 

On Sun, May 15, 2011 at 4:25 PM, Mohit Chawla <mohit.c...@gmail.com> wrote:



--
-Vengadanathan
"I am ready to change the world , but no one is ready to give the source code .."

NE3R@J

unread,
May 15, 2011, 11:33:26 AM5/15/11
to null-...@googlegroups.com
yes you can do it by using bat2exe covertor.
Its a small program around 400-500 kb available free of cost and works on both windows and linux environment.......

Ajit Hatti

unread,
May 16, 2011, 2:36:42 AM5/16/11
to null-...@googlegroups.com

This report has few snap shots of classified data.

http://www.thehackernews.com/2011/05/exclusive-report-is-department-of.html

Enjoy
~Ajit

GAGANDEEP SINGH KHURANA

unread,
May 18, 2011, 5:16:41 AM5/18/11
to null-...@googlegroups.com
Vengadanathan suggested exactly the method which is the idea of the poster... but the problem is that without actually having gcc or any c compiler installed in the system (windows) much is not possible... moreover i personally would have used powershell programming... all the stuff that can be done with batch file only and there is no such need of a binary as such :)

On Sun, May 15, 2011 at 8:33 AM, NE3R@J <coolnee...@gmail.com> wrote:
yes you can do it by using bat2exe covertor.
Its a small program around 400-500 kb available free of cost and works on both windows and linux environment.......

--
null - Spreading the right Information
null Mailing list charter: http://null.co.in/section/about/null_list_charter/
 
This list is supported by Institute of Information Security http://iisecurity.in
Learn information security at your own pace – eLearning programs at http://elearning.iisecurity.in



--
Gagandeep Singh Khurana
Reply all
Reply to author
Forward
0 new messages