CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2008
    Location
    C:\Windows\System32
    Posts
    47

    Execute Protected exe/bat files?

    Hey guys,
    I have a bat file named "Trainshow.bat" or for other example "svchost.exe" that when i doubleclick it it doesn't execute.
    It has some kind of protection or something i don't know ... it can be executed from the original program that needs it but not bare handed if u know what i mean . Is there a way to execute it from a MFC application ?
    Thanks in advance.

    PS: Merry Christmas to you all, All best wishes.

    ~Cha0sBG

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Execute Protected exe/bat files?

    "Not everything which flies is good to be eaten".

    Just beware: do not double-click something without knowing what it does!
    Last edited by ovidiucucu; December 26th, 2008 at 03:04 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Feb 2007
    Location
    Craiova, Romania
    Posts
    326

    Re: Execute Protected exe/bat files?

    In addition to what Ovidiu said, if you still want to run the batch file from a C++ application, you can do it with CreateProcess by passing NULL to the lpApplicationName parameter and "%comspec% /k "PathToBatchFile"" as the lpCommandLine parameter.

  4. #4
    Join Date
    Aug 2008
    Location
    C:\Windows\System32
    Posts
    47

    Re: Execute Protected exe/bat files?

    not working the bat is protected here is a dl link:
    http://rapidshare.com/files/176705128/bat.rar
    u try to make it with CreateProcess and see

  5. #5
    Join Date
    Feb 2007
    Location
    Craiova, Romania
    Posts
    326

    Re: Execute Protected exe/bat files?

    Come on... I just had a look at it... it is not a batch file. it is an executable who's extension was changed to bat.

    if you want to try it then change its extension to exe and run it (at your own risk, of course).

  6. #6
    Join Date
    Aug 2008
    Location
    C:\Windows\System32
    Posts
    47

    Re: Execute Protected exe/bat files?

    it's not something malicious it's an info tool for a game executed from a bot only... and it came as a bat file ... it's protected.... that's why i wanna know how to execute it. i know what's it do etc i can give a screen when i login with the bot but i wanna execute it w/o the bot. If i change it to .exe it still can't be executed.

  7. #7
    Join Date
    Feb 2007
    Location
    Craiova, Romania
    Posts
    326

    Re: Execute Protected exe/bat files?

    Well, in that case I can't help you. I can only say it is not a typical windows batch file.
    Probably it is some sort of dll (a plugin, etc) and it should be loaded by some other application.

    Good luck!

  8. #8
    Join Date
    Aug 2008
    Location
    C:\Windows\System32
    Posts
    47

    Re: Execute Protected exe/bat files?

    well yeah it needs some parameters i guess :S

  9. #9
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Execute Protected exe/bat files?

    Quote Originally Posted by Cha0sBG View Post
    it's not something malicious it's an info tool for a game executed from a bot only... and it came as a bat file ... it's protected.... that's why i wanna know how to execute it. i know what's it do etc i can give a screen when i login with the bot but i wanna execute it w/o the bot. If i change it to .exe it still can't be executed.
    Just ask the guy(s) who made it.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  10. #10
    Join Date
    Aug 2008
    Location
    C:\Windows\System32
    Posts
    47

    Re: Execute Protected exe/bat files?

    yee ask them .... well it's made to be executed only from the bot and i don't think the big bot company will answer me lol ;D
    2: I've opened it with ollydbg and i saw it required valid parameters to be parsed to it to be executed. But i don't know how to execute it with parsing those parameters ... can u guys tell me ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured