the pepsi place | Albatross: Breaking out of pyjail with your hands tied.
blog.pepsipu.com·2h
🔄Subinterpreters
Preview
Report Post

Introduction

In redpwnctf this year, there was a really cool python exploit challenge! The goal was to take advantage of an eval to read a flag from the server. There were a couple catches though.

  • No ASCII characters!
  • No built in functions!
  • No strings!
  • No more than 102 characters!

Woah, that’s not looking too easy. But it’s alright, since we can use a couple tricks up our sleeves to get a shell and ultimately read the flag. Let’s go over each requirement and how we are going to bypass it.

No ASCII characters?

That’s alright! The target python version, python 3.7, allows you to use italized characters to write your expressions, which aren’t ascii. We encoded our payloads using italics on [this website](https://lingojam.com/Ital…

Similar Posts

Loading similar posts...