Rupuz Posted June 21, 2007 Share Posted June 21, 2007 How can I open .exe -file? I need only an simple php -code. Quote Link to comment Share on other sites More sharing options...
ryeman98 Posted June 21, 2007 Share Posted June 21, 2007 This place is usually for people that have code that may have an error in it. Do you have any code at all? Your post lacks both detail and code. Quote Link to comment Share on other sites More sharing options...
Rupuz Posted June 21, 2007 Author Share Posted June 21, 2007 No, I don't have any code at all. But do you know a code for that. Moderator will move this topic (if this is in wrong place) to the right place. Quote Link to comment Share on other sites More sharing options...
Orio Posted June 21, 2007 Share Posted June 21, 2007 What do you mean by open? Do you want to read it's content, or do you want to execute it? Orio. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 21, 2007 Share Posted June 21, 2007 a .exe isn't going to get you anywhere there is no useable data php can decifer out of a .exe without writing a complete reverse engineering complier which would be pointless. Your question is probably because you don't know where what you need is located ask that. Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 First Study exec() well from php.net manual. Then try something yourself and then post if you have faced any error. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 neel i think they are talking more along the lines of fopen not executable execution although i did not know you could do that in php and that gives me a very interesting cross language conncection between C/C++ and php allowing me to do some kool stuff Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 How can I open .exe -file? I need only an simple php -code. I thought He means execution.that can be done with exec(). Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 I guess its a mystery, but using an fopen(anything.exe) will result in meaningless results Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 If you open it on b+ (Binary mode) and use fread on it it will open its Binary Data. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 true but even with the binary data there isn't much to do. You "could" reverse engineer from there but i don't see php as your go to source for .exe reverse engineering Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 I dont think reverse engeniearing is Possible here. As both of this code cout<<"hi hello"; and cout<<"hi"<<" hello"; would Output the same .exe file. So what you will get after reversing ?? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 ??? I'm talking reversing the binary, but wouldn't that require extensive libraries that could reverse the binary into some psedo code/language such as C it be like writing in assembly, pointless. be like taking 0001000100101100010010001 and it somehow returns $var = "test"; Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 You might do it with some advanced debuger I donno wheather somthing to do that exists or not.. But I still believe its not that much possible. and if possible it must not be perfect it can just give you a Overview. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 yeah at best you be able to pull out the memory allocations and their names probably, but php is one powerful language and you might be surprised at what you can find in it. I'd love to write a whole OS in php one day and run it with a distributed application kinda idea. Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 var = "Value" here var is not the variable its just variable Name Value is teh value and variable is the memory address in RAM that has been allocated for that var. so the variable is something like 1045 or like that. So here 0001000100101100010010001 Means Value "Value" is in address 1045. So how your reverse it in the var = "value" the .exe file made By C/C++ probabbly doesn't remember's the Variable names. It just uses memory Addresses. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 yeah compilers index the string variables into an array of memory indexes so you could return all the memory allocations, possibly values, but not know what the programmer labeled those variables as. could be useful, but I don't see much use of it. Quote Link to comment Share on other sites More sharing options...
corillo181 Posted June 22, 2007 Share Posted June 22, 2007 i bet the guy was just trying to open a virus on some page, but at this level he has no idea of what you 2 are talking about . Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 lol don't give me ideas i was just thinking of executing a command cmd.exe -telent open->$userip don't it work, but if some novice had portforwarding on their computer it could work Quote Link to comment Share on other sites More sharing options...
corillo181 Posted June 22, 2007 Share Posted June 22, 2007 the easiest way to do it is with image type.. closes down the page .. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 that answers the question of can you actually read a person's HD content and copy it because you could in a telenet, that be a nasty page telnet in copy HD then run a NET SEND Shutdown -s if they on windows Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 22, 2007 Share Posted June 22, 2007 make a switch for different OS i should stop talking Quote Link to comment Share on other sites More sharing options...
neel_basu Posted June 22, 2007 Share Posted June 22, 2007 i bet the guy was just trying to open a virus on some page, but at this level he has no idea of what you 2 are talking about . Hey from where you got the word Virus in this thread. Quote Link to comment Share on other sites More sharing options...
Rupuz Posted June 27, 2007 Author Share Posted June 27, 2007 I think that I'm going to code it by PHP. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.