Changes between Initial Version and Version 1 of Ticket #62276, comment 9


Ignore:
Timestamp:
Aug 2, 2021, 2:22:12 AM (3 years ago)
Author:
RobK88
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62276, comment 9

    initial v1  
    99  optool @0.1_0 (active)
    1010bash-3.2$
     11
     12bash-3.2$ optool
     13optool v0.1
     14
     15USAGE:
     16  install -c <command> -p <payload> -t <target> [-o=<output>] [-b] [--resign] Inserts an LC_LOAD command into the target binary which points to the payload. This may render some executables unusable.
     17
     18  uninstall -p <payload> -t <target> [-o=<output>] [-b] [--resign] Removes any LC_LOAD commands which point to a given payload from the target binary. This may render some executables unusable.
     19
     20  strip [-w] -t <target> Removes a code signature load command from the given binary.
     21
     22  restore -t <target> Restores any backup made on the target by this tool.
     23
     24  aslr -t <target> [-o=<output>] [-b] [--resign] Removes an ASLR flag from the macho header if it exists. This may render some executables unusable
     25
     26
     27OPTIONS:
     28  [-w --weak] Used with the STRIP command to weakly remove the signature. Without this, the code signature is replaced with null bytes on the binary and its LOAD command is removed.
     29
     30  [--resign] Try to repair the code signature after any operations are done. This may render some executables unusable.
     31
     32  -t|--target <target> Required of all commands to specify the target executable to modify
     33
     34  -p|--payload <payload> Required of the INSTALL and UNINSTALL commands to specify the path to a DYLIB to point the LOAD command to
     35
     36  [-c --command] Specify which type of load command to use in INSTALL. Can be reexport for LC_REEXPORT_DYLIB, weak for LC_LOAD_WEAK_DYLIB, upward for LC_LOAD_UPWARD_DYLIB, or load for LC_LOAD_DYLIB
     37
     38  [-b --backup] Backup the executable to a suffixed path (in the form of _backup.BUNDLEVERSION)
     39
     40  [-h --help] Show this message
     41
     42
     43(C) 2014 Alexander S. Zielenski. Licensed under BSD
     44bash-3.2$
    1145}}}