![]() |
|
#4
|
|||
|
|||
|
Hello. I managed to debug the daemon and run on gdb ? I trying to get the seed/info using freesoft method "
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ you can write a program such as: int main(int argc, char **argv) { for (int i = 0; i < argc, i++) { printf("%s\n", argv[i]); } return 0; } compile and replace your daemon, run lmgrd, you can get what you want. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ but it didnot work . I paste it below , please have a look the let me know ? step used : (1) run lmgrd and get -T 10.1.4.238 8.4 3 -c magma.lic --lmgrd_start 42c34512 (2) gdb daemon (3) run -T 10.1.4.238 8.4 3 -c magma.lic (4) managed to see reg info (5) replace the org daemon with the compile C daemon.c (6) run -T 10.1.4.238 8.4 3 -c magma.lic Nothing happen ? Please help ? == >>>>>> 9:57:55 (magma) FLEXlm version 8.4a 9:57:55 (magma) Vendor daemons must be run by lmgrd Program exited with code 060. (gdb) run -T 10.1.4.238 8.4 3 -c magma.lic Starting program: /home/wls/magma_tool/linux24_x86/flexlm/flex/magma -T 10.1.4.238 8.4 3 -c magma.lic Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed. Error while mapping shared library sections: : Success. Error while reading shared library symbols: : No such file or directory. (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols: : No such file or directory. Error while reading shared library symbols: : No such file or directory. 9:58:23 (magma) FLEXlm version 8.4a Error while reading shared library symbols: : No such file or directory. (no debugging symbols found)...Error while reading shared library symbols: : No such file or directory. Error while reading shared library symbols: : No such file or directory. (no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols: : No such file or directory. Error while reading shared library symbols: : No such file or directory. (no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols: : No such file or directory. 9:58:23 (magma) Server started on 10.1.4.238 for: BLAST_VIEW 9:58:23 (magma) BLAST_WRAP BLAST_SPEED BLAST_BUILDER Program received signal SIGINT, Interrupt. 0x55132462 in select () from /lib/i686/libc.so.6 (gdb) info reg eax 0xfffffdfe -514 ecx 0x80e0800 135137280 edx 0x80e0888 135137416 ebx 0x400 1024 esp 0xfefff4cc 0xfefff4cc ebp 0xfefff4f0 0xfefff4f0 esi 0x0 0 edi 0xfefff5a4 -16779868 eip 0x55132462 0x55132462 eflags 0x246 582 cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) run -T 10.1.4.238 8.4 3 -c magma.lic The program being debugged has been started already. Start it from the beginning? (y or n) n Program not restarted. (gdb) run -T 10.1.4.238 8.4 3 -c magma.lic The program being debugged has been started already. Start it from the beginning? (y or n) y `/home/wls/magma_tool/linux24_x86/flexlm/flex/magma' has changed; re-reading symbols. (no debugging symbols found) Starting program: /home/wls/magma_tool/linux24_x86/flexlm/flex/magma -T 10.1.4.238 8.4 3 -c magma.lic ]/bin/bash: line 1: /home/wls/magma_tool/linux24_x86/flexlm/flex/magma: cannot execute binary file /bin/bash: line 1: /home/wls/magma_tool/linux24_x86/flexlm/flex/magma: Success Program exited with code 01. warning: shared library handler failed to enable breakpoint You can't do that without a process to debug. (gdb) info reg The program has no registers now. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debugging Problem | Hexcode | General Discussion | 5 | 09-23-2021 05:16 |
| Problem debugging 32 bit system process with Olly | MCKSys Argentina | General Discussion | 4 | 02-11-2015 03:35 |
| IDA remote debugging problem | Av0id | General Discussion | 3 | 08-08-2011 18:51 |