Giter Site home page Giter Site logo

picoctf2018-magic_padding_oracle's Introduction

picoCTF2018 - Magic Padding Oracle

Text

Can you help us retreive the flag from this crypto service? Connect with nc 2018shell.picoctf.com 24933. We were able to recover some Source Code.

Port may be different.

Hints

Paddding Oracle Attack

Solution

TODO (see script comments)

Usage

Simply run padding.py and insert port to which to connect:

$ python padding.py
picoCTF port: 24933

5 blocks of 16 bytes.

Block 5 of ciphertext: 00000000000000000000000000000000

  Retrieving block 4 of ciphertext...
    Byte 16: 0x24
    Byte 15: 0x6c
...
...
    Byte 2: 0xdf
    Byte 1: 0x43

Block 1 of ciphertext: [40, 242, 142, 183, 142, 136, 242, 147, 104, 210, 173, 177, 252, 243, 155, 240]

Ciphertext: 28f28eb78e88f29368d2adb1fcf39bf061ea7ba267c562e51c4a2cc8b910b194f6f9a97bcc224d04c050abd512f721f700aa911a4da9e8ef474f2e48deac6d2600000000000000000000000000000000

Flag: picoCTF{0r4cl3s_c4n_l34k_ae6a1459}

picoctf2018-magic_padding_oracle's People

Contributors

princeofborgo avatar

Watchers

 avatar

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.