load without any analysis (file header at offset 0x0): r2 -n /path/to/file
- analyze all:
aa - show sections:
iS - list functions:
afl - list imports:
ii - list entrypoints:
ie - seek to function:
s sym.main
| from pwn import * | |
| import sys | |
| # NOTE : Tekan CTRL+D pada saat shell interactive pertama | |
| ch = process('./checker') | |
| #ch = remote("35.197.134.203", 8031) | |
| context.terminal = ['tmux', 'splitw', '-h'] | |
| gdb_cmd = """ | |
| source /home/ramdhan/ctf/tools/peda/peda.py | |
| b* 0x08048E50 | |
| """ |
Run below command to apply the patch.
$ base64 -d patch.b64 > patch
$ bspatch 010editor 010editor.patched patch
now you can run ./010editor.patched, you can register with your name and any serial number
| # Claas Heuer, August 2015 | |
| # | |
| # urls: | |
| # http://stackoverflow.com/questions/847179/multiple-glibc-libraries-on-a-single-host | |
| # http://www.gnu.org/software/libc/download.html | |
| cd $HOME | |
| mkdir glibc_update | |
| cd glibc_update |
| // This source code comes from: | |
| // http://stackoverflow.com/questions/8941711/is-is-possible-to-set-a-gdb-watchpoint-programatically | |
| // with additional tricks from: | |
| // https://code.google.com/p/google-breakpad/source/browse/trunk/src/client/linux/handler/exception_handler.cc?r=1361 | |
| #include <errno.h> | |
| #include <signal.h> | |
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |
| command SelectTag call SelectTag() | |
| nnoremap <silent> <leader>p :SelectTag<CR> | |
| function SelectTag() | |
| let tagident = expand("<cword>") | |
| let curname = expand('%:p') | |
| exe "stjump ".tagident | |
| let newname = expand('%:p') | |
| if curname != newname | |
| exe "norm q" | |
| exe "tab drop ".newname |
| from bs4 import BeautifulSoup | |
| import requests | |
| import json | |
| url = "https://ctf.asgama.web.id" | |
| class CTFDAutoSubmit: | |
| nonce_submit = 0 | |
| def __init__(self, url, user, pasw): | |
| self.ctf = requests.Session() |
| from pwn import * | |
| context.log_level = 'error' | |
| context.terminal = 'tmux splitw -h'.split() | |
| DEBUG = 0 | |
| cmd = """ | |
| """ | |
| libc = ELF('./libc.so.6') | |
| elf = ELF('./zeus') | |
| p = process("./zeus") |
| from pwn import * | |
| context.terminal = "tmux splitw -h -f".split() | |
| #p = process("./data_bank") | |
| p = remote("35.200.202.92", 1337) | |
| DEBUG = 0 | |
| cmd = "" | |
| libc = ELF('./libc.so.6') | |
| if DEBUG: | |
| gdb.attach(p, cmd, gdb_args=["--init-eval-command='source /ctf/tools/gef/gef.py'"]) |
| e scr.utf8 = true | |
| e scr.color = 3 | |
| ec func_var_type white | |
| ec func_var #61afef | |
| ec func_var_addr #4b5263 | |
| ec b0x00 #c678dd | |
| ec b0xff #be5046 | |
| ec prompt #d19a66 | |
| ec fname #56b6c2 | |
| ec label rgb:0f3 |