Tips and Hacks

Convert EXE file to BAT File using exe2powershell

exe2powershell tool is used to convert EXE to BAT files. The previously version is well known as exe2bat, this is used for Modern Windows OS.

This tool will convert .exe file to a BAT file. The resulting BAT file contains only echo commands followed by a PowerShell command to re-create the original binary file.

exe2powershell tool can be useful during a pen-test . With echo and PowerShell the auditor is able to upload any binary file to the target system.

This is modern version of exe2bat as exe2bat having some limitation:

  • Needs debug.exe available on the target computer (16-bit application which was removed in Windows 7 x64 but available in Windows 7 x86)
  • Limits input exe size to 64kB

exe2powershell replaces the need of debug.exe by using a PowerShell command line which is available on all Windows since Windows 7 / 2008 and there is no more limitation in input exe size.

C:\exe2powershell\bin>exe2powershell.exe
      [ exe2bat reborn in exe2powershell for modern Windows ]
 [ initial author surajs, based on riftor work, and modernized by ycam ]
 [ exe2powershell version 1.0 - keep up2date: asafety.fr / synetis.com ]
 
 [*] Usage : exe2powershell.exe inputfile outputfile
 [*] e.g.  : exe2powershell.exe nc.exe nc.bat

Suraj Salunkhe

Suraj Salunkhe is working Professional with reputed company. As an engineer he loves technology, blogging and Penetration . He also have experience in web-design, QA and Mobile application development.

One thought on “Convert EXE file to BAT File using exe2powershell

  • Where can a valid download be found?

Leave a Reply

Your email address will not be published. Required fields are marked *

19 − two =

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.