How to change the content of a file w/o changing it's size?

More than just game modification.

Moderator: wizme

SandsOfTime
Death Warrior
Death Warrior
Posts: 92
Joined: Sat Jun 19, 2010 12:08 pm

How to change the content of a file w/o changing it's size?

Post by SandsOfTime »

No idea where this should go so i posted it here.
My uncle recently asked me to modify a file for him however the catch is, it must be of the same size of the original despite changing it's contents.
How do i go about doing this ?
a Simple tut/ URL will be very much appreciated.
User avatar
KFSPC8
Master of Darkness
Master of Darkness
Posts: 494
Joined: Sat Jun 05, 2010 6:18 pm
Location: Singapore

Re: How to change the content of a file w/o changing it's si

Post by KFSPC8 »

what kind of modification do u wnt to do on the file? a .txt file?
keeping it the original size sounds sneaky :P
guyz92
The Emperor
The Emperor
Posts: 503
Joined: Sat Aug 29, 2009 8:52 am

Re: How to change the content of a file w/o changing it's si

Post by guyz92 »

Possible Hex editing.
Image

ADSL:
Image

Fibre:
Image
SandsOfTime
Death Warrior
Death Warrior
Posts: 92
Joined: Sat Jun 19, 2010 12:08 pm

Re: How to change the content of a file w/o changing it's si

Post by SandsOfTime »

It's an .Exe file, He asked me to change some letters inside so it'll read another file instead of the intended one.
I've tried using EditPlus however all i get are some squares and chinese characters.

When i try to view em in hex using Edit plus, i'm unable to edit them o.o

Edit: When i change it from a .exe to a .txt to edit it and back to an .exe to use it.
The icon changes from a picture to the standard. exe picture. Does this affect anything?
wizme
Destiny General
Destiny General
Posts: 297
Joined: Sat Sep 05, 2009 1:40 pm

Re: How to change the content of a file w/o changing it's si

Post by wizme »

you cant change a .exe to a .txt and hope it will become plain text. exe is a binary.
Unlike science, love is like magic, there's no reason to it - wizme =)
Learn more of security, click here =)
SandsOfTime
Death Warrior
Death Warrior
Posts: 92
Joined: Sat Jun 19, 2010 12:08 pm

Re: How to change the content of a file w/o changing it's si

Post by SandsOfTime »

So i'll have to open it with a programme right? I've tried edit plus X: but i get squares, have tried various encoding options but still squares /:
wizme
Destiny General
Destiny General
Posts: 297
Joined: Sat Sep 05, 2009 1:40 pm

Re: How to change the content of a file w/o changing it's si

Post by wizme »

Depending on the binary, most of them cannot be reversed engineered to see the source. You can try to use cheat engine to change the exe.

P.S. You cant change the size to a smaller size than the original but you can increase the size of a file by padding it.
Unlike science, love is like magic, there's no reason to it - wizme =)
Learn more of security, click here =)
SandsOfTime
Death Warrior
Death Warrior
Posts: 92
Joined: Sat Jun 19, 2010 12:08 pm

Re: How to change the content of a file w/o changing it's si

Post by SandsOfTime »

Oh alright, any cheat engine will do?
What's padding? do you have a guide for it? thanks><
wizme
Destiny General
Destiny General
Posts: 297
Joined: Sat Sep 05, 2009 1:40 pm

Re: How to change the content of a file w/o changing it's si

Post by wizme »

Why dont you upload the exe and tell us what you wish to do
We'll see if we can help you
Unlike science, love is like magic, there's no reason to it - wizme =)
Learn more of security, click here =)
SandsOfTime
Death Warrior
Death Warrior
Posts: 92
Joined: Sat Jun 19, 2010 12:08 pm

Re: How to change the content of a file w/o changing it's si

Post by SandsOfTime »

The File can be downloaded from here:
http://www.mediafire.com/?054eykf2hc7maxd

It's an exe file though, how do i post a virus scan? incase you guys want it.
My uncle wants me to change the G e n P a r a inside the file to a P e n P a r a.

Thanks.
Post Reply