Search results

  1. Depov

    PowerShell deobfuscation: parsing for CTF

    Why would the attackers obfuscate PowerShell PowerShell is a regular Windows tool, stands on every machine starting with Windows 7. According to the classification MITRE ATT&CK this technique PowerShell (T1059.001, Execution), eh Powershell.exe included in LoLBAS catalog (Living Off The Land...
  2. Depov

    Ghidra for Beginners: Assemblyless Analysis p2

    Navigation: Cross links and call graph Static analysis of binary files is not a consistent reading of code from top to bottom. These are jumps between functions along the call chain: from a suspicious string to a function that uses it, from the function to the one who calls it. Crosslinks...
  3. Depov

    Ghidra for Beginners: Assemblyless Analysis p1

    What is Ghidra and why is it needed for the analysis of binary Ghidra is a free, reversed-down software tool released by the NSA in 2019. Before its introduction, the market of disassemblers held an IDA Pro with the Hex-Rays plugin - a bundle of powerful, but with a price tag that closed the...
  4. Depov

    exiftool in CTF: extracting file metadata part 2

    PDF Metadata Analysis: Hidden Objects and Streams PDF is one of the most underrated formats in CTFS. Everyone drives EXIF in pictures, and PDF files in the meantime hide more: embedded files, JavaScript code, hidden objects and invisible text. ExifTool on PDF. Launch exiftool document.pdf...
  5. Depov

    exiftool in CTF: extracting file metadata part 1

    What metadata hide in CTF tasks Metadata — file information embedded in the file itself. Depending on the format, they live in different containers, and each is a potential place for a flag. EXIF (Exchangeable Image File Format) is the standard for JPEG, TIFF, RAW. Camera model, date of...
  6. Depov

    Buffer Overflow from scratch: solving the first pwn-task part 1

    GDB analysis of binary file: find offset up to return address Theoretically offset = buffer size (64) + size RBP (8) = 72 bytes. But the compiler can add an alignment padding or redraw the frame. Therefore, the offset is always tested experimentally. It's a habit that saves debugging hours...
  7. Depov

    Buffer Overflow from scratch: solving the first pwn-task part 2

    Stack overflow: how data overwrites return address The stack in x86-64 grows from senior addresses to juniors. When you call the function, the processor creates a stack frame - a stack is placed on the stack return address (the address of the instruction where the management will return after...
  8. Depov

    Reverse engineering for beginners: . NET and Java

    Why . NET and Java – the best start in reverse engineering All Russian-language guides on reverse engineering for beginners start the same: “learn the assembler x86, put Ghidra, open the ELF-binary.” The way is working, but hard – the beginner sees the wall of mov, cmp, jmp and loses motivation...
  9. Depov

    SSTI vulnerability in CTF: Jinja2 and Twig from 0 to RCE part 2

    Operation of SSTI Jinja2: from arithmetic to RCE Flask Jinja2 vulnerability is the most frequent SSTI scenario on CTF. The problem arises when the developer writes render_template_string(user_input) instead of safe render_template("page.html", name=user_input). In the first case, the user input...
  10. Depov

    SSTI vulnerability in CTF: Jinja2 and Twig from 0 to RCE part 1

    SSTI vs XSS: differences that determine the attack vector Server-side template injection and XSS start the same way – custom input is displayed on the page. The difference is where the processing takes place. XSS-payload is performed in the victim's browser: the attacker implements JavaScript...
  11. Depov

    Bash scripts for CTF: Automation routine part 2

    Parsing files and preparing data in bash The third block of CTF routine is file processing. Download the archive, unpack, find among the hundreds of nested files the one where the flag is hidden. By hand, it takes forever. The Linux command line for CTF solves the task in seconds via the...
  12. Depov

    Bash scripts for CTF: Automation routine part 1

    Why bash on CTF if there is Python and AutoRecon Bash is everywhere. There are no stripped CTF containers and minimal Python images, but sh, grep and wget There are even BusyBox. I met tasks where there was nothing in a remote car except sh and awk - and that was enough for full file system...
  13. Depov

    JWT attacks in CTF: none, a weak secret and confusion part 2

    Overkill of the JWT secret key hashcat is the main tool for the JWT secret key brother. The regime -m 16500 designed for JWT (covers HS256, HS384, HS512). echo -n "<JWT_TOKEN>" > jwt.txt && hashcat -a 0 -m 16500 jwt.txt /usr/share/wordlists/rockyou.txt Flag -a 0 - dictionary attack. At the...
  14. Depov

    JWT attacks in CTF: none, a weak secret and confusion part 1

    Where to search for JWT and what to check first JWT is a three-part string separated by points: header.payload.signature. Each part is encoded in base64url. The token is hidden in one of four places: cookies (names jwt, token, session, auth), the title Authorization: Bearer <token>, URL...
  15. Depov

    https://www.youtube.com/watch?v=W2ZTE2o5BhE

  16. Depov

    Pro Hacker: The 5 Best OSINT Tools

Top Bottom