c - Modify env variable name inside a library with hex editor? -
is possible modify environmental variable's name inside library sort of editor. i'm thinking maybe hex editor ?
i wish modify name without altering length: envfoobar (9 chars) yellowbar (9 chars)
obviously, recompilation perfect not know exact flags used compile library.
what's stopping you? can use text editor (as long it's decent editor , knows how handle binary data, vim does). if library referring name of environment variable through string, , string in library in data segment (ie. it's not string built @ runtime), it's trivial edit library in way. don't delete or introduce new characters. i've done under linux. other oses may digitally sign binaries , prevent working. oses use standard checksum or hash in case you'll have recompute it.
Comments
Post a Comment