Build Linux kernel TIL for IDA - Write up Physical Test CodeGate Quals 2024
Hello and Happy new year!!
Today I will write about building til for IDA. The Physical Test challenge is used for exampling.
Why this time? Because I’m too lazy.
But now I’ve not only written the solution for the challenge but also introduced a new way to reverse the Linux module file, which helps you reduce the time it takes to reverse; use that time to pwn.
You can get challenge’s files here.
What is TIL“TIL” stands for “Type Library” . It includes defenitions of many structors, functions tha ...
Write up ACS 2024
This is write-up for challenges which I solved during the event.
You can find attachments (included unsolved challenges) here.
Quals roundUnfortunally, I couldn’t solve any pwnable challenges because they are too hard but luckily there is a challenge in Audit catagory that I could solve it.
no-name minorA float variable stop incrementing at 16777216
First, I load $16777216$ and buy a name. I loan one by one, and my cash increases, but the debt doesn’t change.
After buying the name, we can call ...
Write up babybs of bi0s CTF 2024
Last week, we - m1cr0$oft 0ff1c3 team participated in this event and got 21th place.
These pwn challenges are so damm hard, I did only solve 2 challenges.
This is the write-up for babybs challenge with the intentded way ( I used this way during the CTF event ).
Attachment: babybs.tar.gz
Check the files:
At the first time, I had thought the OS booting had to take a long time so I had been waiting for it. But then when read the description , I decied to analyze the babybs.bin file with IDA.
This i ...
Write up Securinets Quals 2023
Last week, we - m1cr0$oft 0ff1c3 team participated in this event and got 11th place.
I’ve solved all Pwn challenges. But now I only show the solution for the “Swix” challenge. ( I feel this is only the “real” pwn challegne ).
Attachemnt: Swix.zip
We are provided the source code of this binray:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031 ...
Write up CorCTF 2023
This year, I’ve played for m1cr0$oft 0ff1c3 team. We were in 24th place.
zerodayAttachment
Not like a normal Linux kernel exploit challenge. This challenge doesn’t provide any vulnerable driver.
Then, I did check run.sh again carefully.
1234567891011#!/bin/shqemu-system-x86_64 \ -m 128M \ -nographic \ -kernel "./bzImage" \ -append "console=ttyS0 loglevel=3 oops=panic panic=-1 pti=on" \ -no-reboot \ -cpu qemu64,+smep,+smap \ -smp 2 \ -initrd "./i ...
Write up BFSMatrix Offsensive Con 2023
Write up BFSMatrix Offsensive Con 2023The original tweet
Attachment
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485struct matrix{ int rows; // number of rows in the matrix int cols; // number of columns in the matrix uint8_t* data; // 1-d backing data (rows x cols size) char name[MAX_MATRIX_NAME]; // name of the matrix struct matri ...
Writeup Zer0pts CTF 2023
Zer0pts CTF 2023 writeupaush
Attachment
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465#include <fcntl.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#define LEN_USER 0x10#define LEN_PASS 0x20int setup(char *passbuf, size_t passlen, char *userbuf, size_t userlen) { int ret, fd; // TODO: change it to password/username file if ((fd = open("/dev/urandom", O_RDONLY)) == -1) ...
Write up UIUCTF 2023
Write up UIUCTF 2023Năm nay mình chơi với team m1cr0$oft 0ff1c3. Anh em tryhard overnight 2 đêm cuối cùng được top 22 🐸.
Mình giải được 4 bài, 3 bài pwn và 1 bài rev. Hơi tiếc là còn 2 bài pwn cũng thú vị nhưng mình không kịp giải ra 😭.
Bài rev mình làm ra chỉ là baby-brute-force nên mình xin không viết write up nữa, dưới đây là write up các bài pwn.
Chainmail
Attachment: Chainmail.zip
123456789101112131415161718192021222324252627282930#include <stdio.h>#include <stdlib.h>#include ...
Write up Google CTF 2023
Write up Google CTF 2023Giải năm này tuy hay nhưng cũng có vẻ dễ thở hơn so với năm ngoái. Năm nay mình chơi với team Green Onions, mình giải được 5 bài pwn và 1 bài rev ( so với năm ngoái là 0 bài 🐸 ).
ZERMATT1Roblox made lua packing popular, since we'd like to keep hanging out with the cool kids, he's our take on it.
Attachment: ZERMATT.zip
Đề đưa một file LUA script bị làm rối.
Không nghĩ nhiều, mình thử debug LUA bằng gdb rồi tìm flag trong memory, lúc đầu không nghĩ nó thành côn ...
Write up PWN Nahamcon CTF 2023
Write up PWN Nahamcon CTF 2023
2 ngày tryhard cùng team m1cr0$oft 0ff1c3
Giải năm nay có 7 bài pwn, dưới đây là write up 3 bài All Patched Up, Web Applicaton Firewall và Limitations
All Patched UpAttachment:
all_patched_uplibc-2.31.so
12345678int __cdecl main(int argc, const char **argv, const char **envp){ char buf[512]; // [rsp+0h] [rbp-200h] BYREF write(1, &unk_402004, 2uLL); read(0, buf, 0x400uLL); return 0;}
Một bài ROP đơn giản, tuy nhiên không có gadget nào để control ...