0c0a0d090b20
They will end input to functions such as scanf("%s").
| Byte | Escape Sequence | Name |
|---|---|---|
| 0c | \f | form-feed |
| 0a | \n | newline |
| #!/usr/bin/env python3 | |
| # -*- coding:utf-8 -*- | |
| # Towel 2017 | |
| from math import ceil, sqrt | |
| def bsgs(g, h, p): | |
| ''' | |
| Solve for x in h = g^x mod p given a prime p. |
| /* SeeSP: Print the value of the stack pointer. | |
| * Build: gcc SeeSP.c -o SeeSP | |
| * | |
| * Towel - 2017 | |
| */ | |
| #include <stdio.h> | |
| #include <inttypes.h> | |
| int main(void) | |
| { |
| /* Naslr: Starts a bash shell with no ASLR | |
| * Build: gcc naslr.c -o naslr | |
| * | |
| * Towel - 2017 | |
| */ | |
| #include <sys/personality.h> | |
| #include <syscall.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <err.h> |
| /* | |
| * ------------------------------------------------------------ | |
| * "THE MATEWARE LICENSE" (Revision 1): | |
| * <author> wrote this code. As long as you retain this notice, | |
| * you can do whatever you want with this code. If you meet | |
| * <author> someday, and you think this code is worth it, | |
| * you can buy <author> a mate in return. | |
| * ------------------------------------------------------------ | |
| */ |
| " My bare-minimum, portable vimrc | |
| inoremap <special> jk <ESC> | |
| inoremap <special> kj <ESC> | |
| set clipboard^=unnamedplus | |
| set relativenumber | |
| set number | |
| set backspace=eol,start,indent | |
| set whichwrap+=<,>,h,l | |
| set ignorecase |
| BITS 32 | |
| global _start | |
| section .text | |
| SYS_EXECVE equ 0x0b | |
| _start: | |
| xor ecx, ecx ; argv to zero | |
| mul ecx ; envp to zero, eax to zero | |
| add al, SYS_EXECVE ; syscall 11 for execve |
| #!/usr/bin/env sage | |
| # -*- coding: utf-8 -*- | |
| # Towel 2019 | |
| """ | |
| Solution to 'Biggars' challenge from FireShell CTF 2019. | |
| A multi-prime RSA computation with large N requiring CRT | |
| to compute d rather than normal fast-power algorithm. | |
| """ |
| [context] | |
| clear_screen = True | |
| layout = regs code stack memory args extra | |
| show_registers_raw = False | |
| nb_lines_stack = 6 |
| #!/usr/bin/env python3 | |
| """A small example utility to demonstrate r2pipe scripting | |
| by extracting resources from a file. | |
| Written as an example for someone on IRC. | |
| --Towel, 2019 | |
| """ | |
| import r2pipe |