metasm
play

Metasm un framework pour code machine Yoann Guillot Plan Intro - PowerPoint PPT Presentation

Metasm un framework pour code machine Yoann Guillot Plan Intro Applications Exemples Sommaire Prsentation du framework Aperu de larchitecture Fonctionnalits Ce qui devient possible Exemples ( Unrestricted ) Research &


  1. Metasm un framework pour code machine Yoann Guillot

  2. Plan Intro Applications Exemples Sommaire Présentation du framework Aperçu de l’architecture Fonctionnalités Ce qui devient possible Exemples ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  3. Plan Intro Applications Exemples Présentation du framework Metasm est un framework de manipulation de code machine Code exécutable multi-architecture (actuellement Ia32 et MIPS) Formats de fichier exécutables Windows et GNU/Linux Interaction avec un système en cours d’exécution Ecrit intégralement en Ruby Licence LGPL ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  4. Plan Intro Applications Exemples Architecture interne Exeformat Blocks CPU Sections DecInstr Opcodes EncData Instructions ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  5. Plan Intro Applications Exemples Assemblage de code machine Fournit une chaine relogeable : EncodedData Code machine Relocations Exports Espace virtuel Sépare l’assemblage du linkage Démonstration ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  6. Plan Intro Applications Exemples Désassemblage de code machine Puissant moteur de backtracking Suit précisément le flot d’exécution Mais manque actuellement de support d’appels externes Permettra de tracer les accès data La partie spécifique à une architecture est minimale Démonstration ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  7. Plan Intro Applications Exemples Gestion de fichiers exécutables Lecture Depuis un fichier Depuis la mémoire Écriture Modification Génération from scratch Support de MZ/PE/COFF et ELF ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  8. Plan Intro Applications Exemples Interaction avec le système d’exploitation Abstraction de la mémoire d’un processus cible Lecture/écriture transparente Fournit une API générique Démonstration ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  9. Plan Intro Applications Exemples Ce qui devient possible Modification arbitraire du processus d’assemblage/désasseblage Facilite énormément toute interaction avec du code machine ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  10. Plan Intro Applications Exemples Intégration à Metasploit3 Metasploit 3 est écrit en ruby Mais le support du code machine est très mauvais Shellcodes en hexa Bidouilles pour “patcher” ces shellcodes au runtime Re-bidouille pour lier différents stages Avec Metasm : 1 - Shellcodes sous forme de code source 2 - Linkage standard pour les relocations 3 - Linkage standard pour les stages 4 - ???? 5 - Profit ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  11. Plan Intro Applications Exemples Exemples Metasm-shell ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  12. Plan Intro Applications Exemples Exemples Lecture d’un ELF MIPS ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  13. Plan Intro Applications Exemples Exemples Compilation d’un exécutable PE ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  14. Plan Intro Applications Exemples Exemples Modification d’un exécutable PE ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  15. Plan Intro Applications Exemples Exemples Hook basique Windows ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  16. Plan Intro Applications Exemples Exemples Hooks avancés Windows ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

  17. Plan Intro Applications Exemples Conclusion Merci de votre attention ! Des questions ? ( Unrestricted ) Research & Development SSTIC 2007 – Metasm May 29, 2007

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend