Is there any straightforward way to modify a binary from the commandline?
Let\'s say I know that my binary contains 1234abcd and i want to change it to 12FFabcd or FFFFabcd
If you don't need it to be scriptable, you could try the "hexedit" utility. It is available in many Linux distributions (if not installed by default, it can usually be found in the distro's package repository).
If your distro doesn't have it, you can build and install it from source.