[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a FreeBSD program with OpenBSD



Hm...
After hacking the binary with "echo FreeBSD | dd of=/path/to/binary
bs=1 seek=8 count=7 conv=notrunc" I get:

 19923 ktrace   RET   ktrace 0
 19923 ktrace   CALL  execve(0xdfbfdb27,0xdfbfdaf0,0xdfbfdaf8)
 19923 ktrace   NAMI  "./proxyper"
 19923 proxyper EMUL  "native"
 19923 proxyper RET   execve 0
 19923 proxyper CALL  access(0x80a0104,0x4)
 19923 proxyper NAMI  "/etc/localtime"
 19923 proxyper RET   access 0
 19923 proxyper CALL  open(0x80a0104,0,0)
 19923 proxyper NAMI  "/etc/localtime"
 19923 proxyper RET   open 3
 19923 proxyper CALL  fstat(0x3,0xdfbfda04)
 19923 proxyper RET   fstat 0
 19923 proxyper CALL  read(0x3,0xdfbfb6f8,0x1f08)
 19923 proxyper GIO   fd 3 read 961 bytes
 /* lots of mess */
 19923 proxyper RET   read 961/0x3c1
 19923 proxyper CALL  close(0x3)
 19923 proxyper RET   close 0
 19923 proxyper CALL  gettimeofday(0xdfbfda80,0)
 19923 proxyper RET   gettimeofday 0
 19923 proxyper CALL  gettimeofday(0xdfbfda6c,0)
 19923 proxyper RET   gettimeofday 0
 19923 proxyper CALL  [342]
 19923 proxyper PSIG  SIGSYS SIG_DFL code -528270072
 19923 proxyper NAMI  "proxyper.core"

And - ewentually - I get a coredump again. The program started working
a little bit more. Initially it didn't display anything, just died.
After patching it writes out some welcome screens and then dies.

mike



Visit your host, monkey.org