FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Hex editing in PHP





Mgccl
Hex editing in PHP
I have some exe files, and I want to add patches to them by using the PHP way...
Suppose there are only 2 things I want to do, that is
Find HEX String $hex1 in offset $offset (a offset is where the $hex1 located)
in a file file.exe
and replace it by string $hex2

ok, this seems easy... but....
I thought when we read file in PHP, it uses it as text files, but how can I let PHP read it as HEX files? and replace things in it?
Nyizsa
So you want to apply patches to .exe files. I think you can choose better tools than PHP... C, for example. Or apply the patches and host the patched file on the server.
If it's only an experiment, then good luck!
Related topics
Image Editing (PHP)
Editing a file in DirectAdmin
Tool for editing web content via ftp
Dreamweaver
Free php Editor
[Official] Best PHP Editor
Disabling "This is a string with a $var"?
Programming
HALO Requires no skill
NotePad Replacements
Login Screen
open/edit files within a file
Resident Evil 2 Problem, Help me
25$ for just a little tip. for Beginners' website
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.