View Full Version : help linux shared linked library
celestezhu
August 17th, 2004, 21:09
hi all
i have a damn question.
i have a linux shared linked library(*.so) now.
i must crack it.
i want to know the information of interface and interface's parameters in this library.
i use objdump -dx to get the interface information.
but, how can i get the information of interface's parameters.
thks.
Kayaker
August 18th, 2004, 01:37
There's no need to crosspost on different forums. The way to attract specific attention is to create a descriptive title, not multiple postings. I changed your title to include the word 'linux', else some linux-knowledgable people may ignore the posting entirely.
Kayaker
dELTA
August 18th, 2004, 07:18
If they are anything like Windows shared libraries (DLLs), you cannot do this automatically in a good and 100% secure way...
SiNTAX
August 18th, 2004, 10:25
On C++ libs you can get some more information by demangling the functions. Use the -C option on objdump to demangle the names.
Alternatively you can use the c++filt command to demangle a name.
e.g.
libstdc++
has 0008b870 w DF .text 0000002c GLIBCXX_3.4 _ZNSt14codecvt_bynameIwc11__mbstate_tED2Ev
If you use objdump -CT or pipe the line above through c++filt you get:
std::codecvt_byname<wchar_t, char, __mbstate_t>::~codecvt_byname [not-in-charge]()
Which is a bit more readable

celestezhu
August 18th, 2004, 22:28
thank you all.
i have made a little progress.
i have got some call tree in the library.
but,
how can i get the parameter of interface in library, it's a c library.
i only can get interface's name.
SiNTAX
August 19th, 2004, 01:55
AFAIK you can't. You will have to disassemble the library to know which params are passed to it.
Checkout ltrace & strace
celestezhu
August 20th, 2004, 01:13
isn't there a existing tool can do such thing?
god bless me.
the question is i am not very familiar with Assembly.
is there any chance you could possilbly recomment some guide for me?
thank you.
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.