News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

look inside .lib file is it possible?

Started by zin, April 02, 2020, 09:52:28 PM

Previous topic - Next topic

zin

Hello everyone.
It is possible to reverse object file library to see the procedures and understand the code written there?

hutch--

Simplest way is to include a library in an executable and then disassemble it. This is not reverse engineering which will get you into legal problems, its just normal programming. You can also try the standard Microsoft tool like "dumpbin" and "editbin".

zin

hutch--
ok now i understand  :thup: thenks for the help and for the worning!

LiaoMi

Quote from: zin on April 02, 2020, 09:52:28 PM
Hello everyone.
It is possible to reverse object file library to see the procedures and understand the code written there?

Hi,

lib file is a zip archive, you can open it with any archiver  :icon_idea:

Vortex

You can use Pelles polib to extract the object modules if the library belongs to you.

TimoVJL

#5
TLPEView + TLPEPlgZydis3 ?
May the source be with you

zin

Thenk you all for the help.
TimoVJL and Vortex i dont really understand how to use this tools

mineiro

Quote from: zin on April 02, 2020, 09:52:28 PM
Hello everyone.
It is possible to reverse object file library to see the procedures and understand the code written there?
Yes.
go to https://osdn.net/projects/mingw/releases/70619
download binutils-2.32-1-mingw32-bin.tar.xz
uncompress/extract it
copy your lib file to uncompressed bin folder and execute in terminal/console "objdump -d library.lib".
Program have other switches, you should read and try.
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

aw27

It is just a Zip, so Open/Extract with 7-zip File Manager. Then disassemble with objconv.exe

nidud

#9
deleted

Vortex

Hi zin,

The EXPLODE option of Pelles library manager Polib extracts all the object modules :

\PellesC\bin\polib.exe /EXPLODE crt.lib

mineiro

Quote from: nidud on April 06, 2020, 01:54:02 AM
It's not a ZIP file but a Unix archive (ar) file.
yes, part of binutils package  :thumbsup:
"ar -t lib.lib" can list object files inside library
"ar -x lib.lib" can extrat object files inside library
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

K_F

Quote from: Vortex on April 06, 2020, 02:02:21 AM
The EXPLODE option of ...
:badgrin: :badgrin: :badgrin:

Bet you've (we've) just spilt the coffee over some NSA quisling's keyboard.
:greensml:
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'