1.

Solve : Can't read a .com file?

Answer»

I have downloaded a program and it came with a .com file. I want to see what this file does as it opens a cmd window on XP but it closes before I can see what happens.

Any ideas as to how/if I can read it or see the source?



Or at least how to pause the cmd window the .com file opens while it is running?i can help u with how to convirt the .com file or to read its commands
put i can help u to see the out put of the .com file :

open an command prompt
and go th the directory where the .com file is and then execute it like this
directorypath>filename.com
then the output of the file will be seen unlis it contain the exit command at the en of it if so do this
directorypath>filename.com > outputfile.txt
next executing it the file outputfile.txt will have the output of the .com file

i hope its helpful for u Well those ideas while great, did not help.
I looked at the file in HEX and it says "This program cannot be run in DOS mode. "

The NAME of the file is op.com and it came with a version of opera I downloaded. What else could this THING be? It definitely pops open a cmd window.This is Opera USB, right? Running off PortApps Toolbar? If so this is down to PortApps not working properly with Opera. Start Opera by clicking DIRECTLY on the exe file and the problem should go away.



Yes, but I don't know what PortApps Toolbar is. There really is no problem with opera.

The file op.com opens a cmd window and makes some directory change updates. This happens whether I start with opera.exe or op.com.


I want to see what op.com is doing but it closes too quickly for me to catch it all. I want to see what code is written in op.com so that I can figure out what all it is doing.
com files are MACHINE code files. You would need a disassembler to see the the assembly language, and you would need to know what it meant.

That's what I was afraid of.

Think there would be any way to decipher the call to opena cmd window and alter it to stay open? I don't know that much about x86 but if the directories were readable I could probably make a slight alteration.Have you seen this online disassembler?

http://pvdasm.reverse-engineering.net/PVPHP.php



Thanks!

An online Disassembler is a pretty neat idea



Discussion

No Comment Found