Skip to content

Instantly share code, notes, and snippets.

View PwnVerse's full-sized avatar

Ritvik PwnVerse

View GitHub Profile
@PwnVerse
PwnVerse / exp_5.py
Last active September 20, 2022 18:52
from shellcode import shellcode, setuid, bin_sh
import sys
def p32(integer):
return integer.to_bytes(4, byteorder='little').decode('latin-1')
RET_ADDR = 0xffff80cc
SHELLCODE_ADDR = 0xffffd8e0
def exp():
@PwnVerse
PwnVerse / Main.java
Created April 19, 2021 09:41
Compiler RD Parser Lab exam
import java.util.*;
import java.io.*;
import java.lang.*;
/*
*
* program -> prog block
* block -> begin stmtlist end
* stmtlist -> stmt morestmt
@PwnVerse
PwnVerse / chap_1.md
Created January 10, 2020 12:20
Chapter 1 of PBA

Chapter 1:

The compilation process :

Preprocessing , Compilation , Assembly , Linking

Preprocessing : Expands any #define and #include directives in source file To stop at preprocessing phase : gcc -E -P file.c

Compilation : Preprocessed code is translated into assembly