User Tools

Site Tools


challenges-anssi-ecsc-pwn-armory

This is an old revision of the document!


ANSSI ECSC ~~ Challenges pwn ~~ Armory

Présentation

Saurez-vous exploiter le binaire fourni et extraire le flag ?

nc challenges.ecsc-teamfrance.fr 4003

+ fichier armory sans extension

1 - file

file armory

armory: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=aaa2d5ba6d3a6cf3958eb9073e673795c2f1e24e, not stripped

2 - gdb

Comme on peut s'y attendre, s'agissant d'un fichier ARM, impossible de le lancer sur x86_64.

gdb ./armory

GNU gdb (Debian 8.2.1-2) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./armory...(no debugging symbols found)...done.
(gdb) r
Starting program: /mnt/c/Users/didier/Documents/ANSSI-ECSC/armory
/bin/bash: /mnt/c/Users/didier/Documents/ANSSI-ECSC/armory: cannot execute binary file: Exec format error
/bin/bash: /mnt/c/Users/didier/Documents/ANSSI-ECSC/armory: Success
During startup program exited with code 126.
(gdb) q

3 - qemu-user

Article intéressant : https://ownyourbits.com/2018/06/13/transparently-running-binaries-from-any-architecture-in-linux-with-qemu-and-binfmt_misc/

qemu-arm armory

/lib/ld-linux.so.3: No such file or directory
challenges-anssi-ecsc-pwn-armory.1558006292.txt.gz · Last modified: 2019/05/16 13:31 by didzkovitchz