View Single Post
  #7   (View Single Post)  
Old 3rd November 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

You might try running the file utility on the program, it can sometimes tell you what OS/Version a binary was compiled for. Here is an example from FreeBSD:

Code:
Terry@dixie$ file /bin/sh                                                  7:59
/bin/sh: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.0 (700109), dynamically linked (uses shared libs), FreeBSD-style, stripped
Terry@dixie$ file /usr/local/lib/linux-flock/flock-bin                     8:01
/usr/local/lib/linux-flock/flock-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
Terry@dixie$                                                               8:01
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote