Joined: Oct 12, 2008 Posts: 4 Points: 0 Location: Middle of Nowhere
Posted: Sun Oct 12, 2008 4:13 pm Post subject: Can u make a .bat file into a .exe?
can you?i think you can by just renaming it am i right?and i also want to learn about using windows to hack because ive noticed most hacking tools are basically a rip off from windows,and can u add stuff 2 windows?and if so how can u make that stuff?sorry 4 being such a noob,i just want to learn something.
That's not true
You can't just name it .exe and expect it to work,
Most .exe's are encrypted to work properly on your OS
Try Google searching Bat to EXE download
I think you'll like that =)
can you?i think you can by just renaming it am i right?
Windows uses the file extension of a file to help guess what type of file the file is. By changing the extension all your doing is asking the OS to execute the code in a different way.
When you execute a BAT file it passes the commands contained in ASCII form to your Shell. You know the command line interface found when you run 'CMD'.
If you rename it to an exe all it will do is try and execute it as a windows binary file, which will file because the data inside is encoded as ASCII.
One thing that you can do is system calls using a programming language, so you can pass from C++ to your shell, though that's as effective as just using a batch file. Though it helps when 'glueing' programs together.
So renaming doesn't re-encode, it just executes differently.
Quote:
and i also want to learn about using windows to hack because ive noticed most hacking tools are basically a rip off from windows,
That's so wrong it actually hurts me. Yes you can hack in Windows though it's not Windows that you're actually using, that's just the platform. The reason that most hackers of quality chose to use a *nix variation for the security work is that the system is a lot more flexible and the drivers (generally being open source themselves) are a lot more flexible and a lot easier to work with.
That's not to say that it's not possible to execute code upon Windows that would allow system penetration - I just recommend *nix due to its ease of use for less than standard operations.
Quote:
and can u add stuff 2 windows?
Really you don't add things to Windows - again you are just using Windows to execute third-party code. Windows is closed-source so it's hard to actually modify the OS itself.
Quote:
and if so how can u make that stuff?sorry 4 being such a noob,i just want to learn something.
It's good that you want to learn - as they say Google is your best friend. Though there are people around that are willing to help, give me specific questions and I'll show you where to find the answers.
As more making the stuff, if you want to make your own programs you need to learn to program. Take a look at a language like C++, get yourself a compiler (I run *nix so I use GCC, highly recommend it). It's hard work coding but it's worth it in the end.
You could also save some time with some tasks and use open-source tools, this way you can edit the code of an existing program to better suit your needs.
If there are specific tasks that you are trying to accomplish in your attempts to hack then ask more specific questions and I can help you more.
Quote:
Most .exe's are encrypted to work properly on your OS
Now now, code is not encrypted to work properly on your operating system - that's painful. To encrypt something is to make it unreadable to others. That's the idea. Take for example the Caesar Cipher of long ago, the idea was the Caesar could encrypt messages using his this cipher so that people couldn't read them.
I think you mean that the code is compiled to work properly on your OS. When you write code you pass it to a compiler that does a lot of should I say Gucci things (precompiling, linking, debugging and warning) and spits out the otherside a binary version of your code. It takes your chosen language and turns that into machine code that the CPU can execute. If it were encrypted the CPU couldn't read it.
Any BAT to EXE programs would just take the ASCII and use system calls to pass it to the Shell - which is about as effective as the batch file was in the first place.
INU, what specifically are you wanting to use the EXE for? Why are BATs not acceptable? Is there anything else I can help with related?