You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-up for the challenge Linker Chess from OMH CTF 2021
OMH International CTF 2021 Linker Chess
This is a write-up for the misc challenge of the problem Linker Chess from OMH CTF 2021
Problem
In this problem, we are required to craft a linker script which spawns a shell. We can't manipulate anything from the compilation process, as the source code of the challenge is fixed as the problem script below.
this is a zer0pts2020 writeup for the pwn task syscallkit.
problem
we are provided with binary called chall and its source code main.cpp. It's basically a system-call emulator, which lets you execute some system calls directly. But there are two limitations about it. Firstly, you can only execute system calls that it allows. juicy system calls like read, write...or execve is not allowed. Secondly, you can only execute 10 system calls.
goal
It's pwn problem. Besides getting a shell, what are you trying to do?
analysis
First things first, let's take a look at their blacklist.
This is the Write-Up from the CTF codegate 2020 teaser.
concept
This problem analyzes, predicts and executes the user's expression. Various expressions are supported, starting from arithmatic operations to things such as loops, conditionals, and randoms. User can create a variable, assign a value to it, or print its value. The After parsing the input without syntax errors, it predicts the script's behavior by simulating it, preventing malicous behaviours such as reference to an undefined variable, or print of a negative number, which is going to be our main topic. The behaviours of variables are predicted using a domain, which is really a domain of all the numbers that a variable can be.
For example, assigning the random from 1 to 10 will make the variable's domain to [1,10]. Using the ternary operator of x > 5 to x = [1, 10] will split this domain into two, a True domain of x = [6, 10] and a False domain of x = [1, 5].
And adding two doma
This is a writeup for the pwn challenge Variable-Machine in Defenit CTF 2020.
Problem
We are only provided with a binary called main .
Goal
Pwn problem. Get the shell
Analysis
As the name says, this program has a slot for 256 variables. There are three variable types, INT, CHAR, and STRING. They are all managed by a structure. I named it variable.