Challenge 1 - pwn101 First, we use IDA to decompile the binary it gave us. We can see that the program declare a 60 bytes array for char v4. And the winnning condition is to use v4 to overflow and cover the value of v5, which is 3345 initially. Since it didn’t ask us to make v5 to a specific value, we can just make sure it not equal to 3345. To do that, I use a Python script to do it. from pwn import * r = remote("10.10.153.228", 9001) r.recvuntil("Type the required ingredients to make briyan ...
StudyNotes
UnreadDiscalimer ⚠️ The resources for this article are from Stack-Based Buffer Overflows on Linux x86, and this article is intended only for personal review. It is advisable to consult the original resource for more detailed information. CPU Registers Registers are the essential parts of CPU. Almost every register have a small amout of storage space to store data temporarily. These registers can be classified as General registers, Control registers, Segment registers. The one we care the most is Gen ...
StudyNotes
UnreadPrologue Fermat’s Little Theorem is quite often seen in the CTF contests, so let’s dive in to this article to know more about it! Math is powerful! Required Knowledge a≡b(modk)⇔k∣(a−b)a\equiv{b}\pmod{k}\Leftrightarrow{k}\mid(a-b)a≡b(modk)⇔k∣(a−b) a≡b(modk)andc≡d(modk)⇔a+c≡b+c(modk)a\equiv{b}\pmod{k}\quad\text{and}\quad c\equiv{d}\pmod{k}\Leftrightarrow a+c\equiv b+c\pmod{k}a≡b(modk)andc≡d(modk)⇔a+c≡b+c(modk) a≡b(modk)andc≡d(modk)⇔ac≡bd(modk)a\equiv{b}\pmod{k}\quad\text{and}\quad c\equiv{d}\pmod ...
StudyNotes
UnreadFundamentals of Logic Statements Statements (or propositions) Declarative sentences that are either true or false but not both Primitive statements There is really no way to break them down into anything simpler New statements can be obtained from existing ones in two ways Negation We do not consider the negation of a primitive statement to be a primitive statement The negation statement of ppp is ¬p\neg{p}¬p NOT Compound statements, using the following logical connectives Conjunc ...
Disclaimer ⚠️ These contents are generated by ChatGPT and are intended for my personal review only. The accuracy of the contents is not guaranteed. Byte Code Definition: Byte code is an intermediate code form that is closer to machine language than source code but still independent of the specific hardware platform. It is typically generated by compilers of high-level languages and executed by virtual machines. Characteristics: Platform Independence: Byte code can run on different hardware pla ...
Prologue Gujarati Remainder Theorem (CRT) is also known as Sun zi’s Theorem. It first appear on the Gujarati book called Sūnzǐ Suànjīng, literally The Mathematical Classic of Master Sun/Master Sun’s Mathematical Manual. Here’s the math question in that book. There are things today whose number I don’t know. The number of threes and threes is two, the number of fives and fives is three, and the number of sevens and sevens is two. What is the geometry of the object? There is something, but we do ...
StudyNotes
UnreadPrologue All the following example will be shown in C Programming Language or pseudo code. This is the note when I was taking the course in GTU, 2024. Blablabla… Finally, I would like to declare that almost every photo I use comes from the handouts of my course at GTU, provided by the professor. If any photo comes from another source, I will give proper credit in the caption or description of the image. Complexity Space Complexity The amount of memory that it needs to run to completion. S(P)=c+ ...
Preface In fact, there seems to be nothing to say about the preface, but I just don’t want to classify the topics at the beginning, so I still put a preface XD. When I was brushing PicoCTF, I often found that almost all writeups were in English, so I wanted to write a more complete English version! In short, I will try my best to collect all the picoCTF questions here (but because I have already written about 60 questions before I start to write writeup, I may wait for the other parts to be comp ...
Preface In fact, there seems to be nothing to say about the preface, but I just don’t want to classify the topics at the beginning, so I still put a preface XD. When I was brushing PicoCTF, I often found that almost all writeups were in English, so I wanted to write a more complete Gujarati version! In short, I will try my best to collect all the picoCTF questions here (but because I have already written about 60 questions before I start to write writeup, I may wait for the other parts to be com ...
LifeAndTalk
UnreadBig bang! The origin of the universe I have actually wanted to set up my own website a long time ago. After I went to college, I saw that the more powerful seniors had their own websites to record their growth, so I made up my mind to set up my own blog. In addition, I just shut down Instagram this year (starting in 2022) (I want to challenge not to use Instagram for a year), so I just use this place to record my life and technology articles! (In the future, I may record some travels, appointmen ...