[App] samyGOso for D55xx/57xx/69xx MIPS/MSTAR
Posted: Sun Jan 18, 2015 6:47 pm
samyGOso is a command line tool useful to inject .so patches to TV.
- Extract attached archive, FTP to TV and copy samyGOso file (not folder) to /mtd_rwdata/widgets/user/SamyGO/SamyGO/opt/privateer/bin
- Telnet to TV 23 port
- set file permissions
Code: Select all
chmod 775 /mtd_rwdata/widgets/user/SamyGO/SamyGO/opt/privateer/bin/samyGOso
- now loading non-existent .so will not succeed
- added -n option so now you can use procname instead of pid
- added -D,-A,T for using standard proc names (exeDSP,exeAPP,exeTV)
- added -B switch which causes samyGOso to use exeDSP if exeAPP/exeTV fails
- place test.so file to /tmp directory
Code: Select all
. /dtv/SGO.env samyGOso -d -A -B -l /tmp/test.so
SpoilerShowCode: Select all
samyGOso v1.2.4 (c) bugficks 2013, sectroyer 2014 usage: samyGOso [-p PID | -n procname | -A | -T | -D ] [-B ] {-c CONFIG | -l /full/path/to/inject.so [-r (=resident)]} [-d (=debug on)] [-a (=add libc addressoffset )] [arg0,...,argN]
Code: Select all
_mandatory parameters: __targeting (choose one of these parameters): -p [PID] specifies target process by PID [decimal value] (old parameter, usually used like -p `pidof exeDSP` to automatically get the right PID) -n [procname] specifies target process by name of process -A specifies "exeAPP" as target process name -D specifies "exeDSP" as target process name -T specifies "exeTV" as target process name ___optional additional targeting: -B usable in combination with -A -T, sets "exeDSP" as fallback target (need more details here) __source lib -l [path to lib] specifies the lib*.so to be used _optional parameters: -r switch on resident mode, causes samyGOso to inject the libso in resident mode, depending on type of libso wether it's necessary -d switch on debug mode, causes samyGOso to create a Logfile with debug output in /dtv (tmpfs, deleted at poweroff/reboot) -a [0x#######] sets an addtess offset [?bit hex value], only use if you exactly know why (need more details here) you may additionally add arguments to be passed to lib*.so to influence its behavior