Code Monkey home page Code Monkey logo

ctfjawn-binary-ctf-01's Introduction

CTFJawn, Binary Analysis Challenges, 01

!!! THIS IS A WORK IN PROGRESS !!!

The challenges included in this repo were made for those new to binary analysis. The first few challenges will introduce you to commonly used tools and techniques. You will be required to compile and debug the C programs that have been created for you. You are encouraged to modify these programs and experiment.

For each C program the required tools will be listed. Links to relevant resources will also be included.

The goals of these challenges are..

  • to teach you some of the basic techniques used to extract information from ELF (Linux) and PE (Windows) formatted binaries
  • to introduce you to some of the tools used to extract information from executables
  • TODO

ctfjawn-ba-01.c

Commands/Tools

  • strings
  • readelf
  • objdump
  • gcc
  • gdb

Compile ctfjawn-ba-01.c (linking against the shared library ctfjawn.so) and answer the following questions. You must copy ctfjawn.so to $HOME/lib or wherever you'd like.. just be sure to update the command provided below with the proper location.

gcc -g flag

Produce debugging information in the operating system's native format (stabs,
COFF, XCOFF, or DWARF). GDB can work with this debugging information.

Most binaries won't include debug information. However, for whatever reason, malware has been seen in the wild with debug info. Perhaps used as part of a disinformation campaign ๐Ÿคท.

gcc -g -o ctfjawn-ba-01 ctfjawn-ba-01.c -L$HOME/lib -lctfjawn

View the ELF program header

readelf -h ctfjawn-ba-01

Answer the following questions for the ctfjawn-ba-01 binary and the shared library, libctfjawn.so.

  • What's the entry point address?
  • At what address does main start?
  • Number of program headers?
  • Size of section headers?
  • Number of section headers?

ctfjawn-binary-ctf-01's People

Contributors

clayball avatar sasc-clayw avatar

Stargazers

Minh-Triet Pham Tran avatar  avatar

Watchers

 avatar James Cloos avatar

ctfjawn-binary-ctf-01's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.