Is writing bytes at the end of an EXE file safe?

I heard that if we add a few bytes to the end of the EXE file, it can still work properly. Is this true in all cases? And is it safe?

I intend to write a demo using the data in the program execution file, so it can be safe (at least to a normal user), and I do not need to store the data anywhere else.

+3
source share
1 answer

It is not possible to respond with a specific Yes or No.

, . , , .

, , . , . ( , , - - , .)

, , . , , , , .

, tripwire mtree, . rpm -qa debsums . .

. - , , . ( , , AppArmor, SELinux, TOMOYO SMACK , . .)

.

. , Linux /proc/self/exe, () (b) (c) .

: (ftell(3) fseek(3)), . : , , . , . , , . , . , .

, . .

+5

All Articles