Re: Determine FreeBSD version of binary

2007-11-08 Thread Chuck Robey
John Smith wrote: I was wondering if it was possible to determine for what version of FreeBSD a binary was compiled, purely by examining the binary? As a suggestion, use the 'ldd' command to see what version of the libc is linked in with the binary. You didn['t mention if the binary was lin

Re: Determine FreeBSD version of binary

2007-11-08 Thread Dan Nelson
In the last episode (Nov 08), Erik Osterholm said: > On Thu, Nov 08, 2007 at 03:47:54PM -0600, Dan Nelson wrote: > > In the last episode (Nov 08), John Smith said: > > > On Nov 8, 2007 6:59 PM, Yuri Pankov <[EMAIL PROTECTED]> wrote: > > > > May be not entirely correct, but close: > > > > > > > > ld

Re: Determine FreeBSD version of binary

2007-11-08 Thread Erik Osterholm
On Thu, Nov 08, 2007 at 03:47:54PM -0600, Dan Nelson wrote: > In the last episode (Nov 08), John Smith said: > > On Nov 8, 2007 6:59 PM, Yuri Pankov <[EMAIL PROTECTED]> wrote: > > > May be not entirely correct, but close: > > > > > > ldd binary | grep libc.so > > > > Yes, that helps somewhat. At l

Re: Determine FreeBSD version of binary

2007-11-08 Thread Dan Nelson
In the last episode (Nov 08), John Smith said: > On Nov 8, 2007 6:59 PM, Yuri Pankov <[EMAIL PROTECTED]> wrote: > > May be not entirely correct, but close: > > > > ldd binary | grep libc.so > > Yes, that helps somewhat. At least I now know that it's FreeBSD 4.x. > And before I again forget somethi

Re: Determine FreeBSD version of binary

2007-11-08 Thread Roland Smith
On Thu, Nov 08, 2007 at 10:16:38PM +0100, John Smith wrote: > On Nov 8, 2007 6:59 PM, Yuri Pankov <[EMAIL PROTECTED]> wrote: > > > > May be not entirely correct, but close: > > > > ldd binary | grep libc.so > > > > Yes, that helps somewhat. At least I now know that it's FreeBSD 4.x. > And before I

Re: Determine FreeBSD version of binary

2007-11-08 Thread John Smith
On Nov 8, 2007 6:59 PM, Yuri Pankov <[EMAIL PROTECTED]> wrote: > > May be not entirely correct, but close: > > ldd binary | grep libc.so > Yes, that helps somewhat. At least I now know that it's FreeBSD 4.x. And before I again forget something I forgot to mention earlier on: I also have a file cal

Re: Determine FreeBSD version of binary

2007-11-08 Thread Yuri Pankov
On Thu, Nov 08, 2007 at 06:01:40PM +0100, John Smith wrote: > Hi, > > > > I was wondering if it was possible to determine for what version of > FreeBSD a binary was compiled, purely by examining the binary? > > > Any and all help and suggestions are greatly appreciated, > > > > Thanks, > >

Re: Determine FreeBSD version of binary

2007-11-08 Thread John Smith
On Nov 8, 2007 6:45 PM, Chris Haulmark <[EMAIL PROTECTED]> wrote: > > Try using strings to examine the binary file for clues. > Thanks, but... exactly what kind of 'clues' should I be looking for ? Is there anything in particular that could be helpful or give me some kind of hint ? Regards, Jo

RE: Determine FreeBSD version of binary

2007-11-08 Thread Chris Haulmark
> Hi, > > > > I was wondering if it was possible to determine for what version of > FreeBSD a binary was compiled, purely by examining the binary? Try using strings to examine the binary file for clues. Chris > > > Any and all help and suggestions are greatly appreciated, > > > > Tha