Cracking

samedi 3 janvier 2015, 02:28  #1
erreur sur mac : zsh : exec format error : ./ch1.bin
Anonyme

Bonjour
je n arrive pas a executer le .bin du ELF - 0 protections.
En effet il m annonce une erreur de format, pourtant sur ma vm linux, avec le meme fichier, ca fonctionne.
Auriez vous une idee pour me debloquer ?
merci

ps : je suis sous Yosemite

samedi 3 janvier 2015, 16:25  #2
erreur sur mac : zsh : exec format error : ./ch1.bin
haxelion
  • 9 posts

Hum ...
Est-ce que tu t’attendais vraiment à autre chose quand t’as lancé un binaire linux sous mac ?

dimanche 15 mars 2015, 05:23  #3
erreur sur mac : zsh : exec format error : ./ch1.bin
Znkbh
  • 3 posts

Déterrage, euuh je comprend pas pourquoi, le langage C est multi plateforme et surtout que le programme doit être simple donc pourquoi c’est pas le bon format ?

vendredi 25 mars 2016, 13:00  #4
erreur sur mac : zsh : exec format error : ./ch1.bin
hivian42
  • 5 posts

Sinon Docker/Boot2docker tu connais ? Ca devrait résoudre ton problème.

dimanche 8 janvier 2017, 10:33  #5
erreur sur mac : zsh : exec format error : ./ch1.bin
sploadie
  • 1 posts

C is multi-platform, but must be compiled for each.
Compiled C is certainly not multi-platform.

These binaries tend to be linux 32bit, and therefore must be run on linux with lib32 installed (or you know, on a 32bit image).
Using Docker was a nightmare for me, bugs with gdb tripled my solution time.

I now use just Vagrant and it’s awesome !

vagrant init ubuntu/trusty32
vagrant up
(Make sure to read the output for the username and port.)
vagrant ssh-config
(Add the ssh private key, aka IdentityFile, with)
ssh-add $USERPATH$/.vagrant/machines/default/virtualbox/private_key