Giter Site home page Giter Site logo

fausecteam / faustctf-2017-smartmeter Goto Github PK

View Code? Open in Web Editor NEW
1.0 7.0 1.0 1.08 MB

FAUST CTF 2017 service "SmartMeter"

Home Page: https://2017.faustctf.net

License: ISC License

Makefile 1.35% Python 4.18% Assembly 0.01% Shell 1.11% PLpgSQL 0.22% C 87.58% HTML 3.90% C++ 1.61% CSS 0.04%
capture-the-flag ctf-challenges c kore power-meter internet-of-things

faustctf-2017-smartmeter's Introduction

SmartMeter

This is the source code for the "SmartMeter" service from FAUST CTF 2017.

As it was written for a CTF service, the code is deliberately insecure and contains exploitable bugs. It is provided for educational purposes only, do not even think about (re-) using it for anything productive!

The code is released under the ISC License, see LICENSE.txt for details.

Example Exploits

  • The files retdeobfu.py, smartmeter.py and reanalyze.py show how a IDA Python script could deobfuscate the binary. They don't actually correctly deobfuscate though, because we stopped at the point where we'd shown that and how it's possible.
  • The file sql_injection.py performs a blind SQL injection to steal all currently stored flags.
  • The file dir_traversal.py uses a directory traversal to steal the database of the toaster service.
  • The file buffer_overflow_chall.py exploits a buffer overflow to execute a ROP chain that calls system() to dump all flags from the database over the existing TCP connection (but necessarily without the TLS tunnel). Please note that this script was developed for a different compile run than the actual CTF, so the exact addresses for the ROP chain are likely to be slightly different.

faustctf-2017-smartmeter's People

Contributors

maltek avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

int3dev

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.