This new pesky mode of CBC makes decrypting too hard >:(
ncat --ssl peskycbc.atreides.b01lersc.tf 8443
Attachments: pesky_cbc.py
In this writeup, I will share how I solved "Pycomment" from KalmarCTF 2025. It was one of the tougher pyjails this year and makes use of two really unique ideas.
Thanks for the challenge, @ChattyPlatinumCool 😛
Can you please help us comment our code? And please don't attack us.
Below are my writeups to the Cyber Jawara CTF that I played in last week.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
___=int(__import__('sys').argv[1] | |
);_=___*(___//___<<___//___+___// | |
___+___//___|___//___)//(___//___ | |
<<___//___+___//___+___//+___+___ | |
//___)+(___//___--___//___);__=(_ | |
//_+_//_--_//_)*(_+_+_-~_);print( | |
((_//_<<_//_+_//_+_//_|_//_+_//_)**___<<(_+_-~_<<_//_+_//_))//(( | |
((((_//_<<__*_*_)//~-(_//_<<__*_)*(((_//_<<(_*_*__<<_//_))//((_//+_<< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// find solutions in the form: | |
// lambda s:hash(s+'????')%3 | |
#include <stdio.h> | |
#define NUM 32 | |
#define MIN 1 | |
#define MAX 127 | |
#define HBASE 1000003 |