Notes for Pwn

kazma 成大資安社 創辦人/社長

Notes for Pwn

整理一些常用的腳本和工具。

Template

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pwn import *
import warnings
warnings.filterwarnings("ignore", category = BytesWarning)

DEBUG_MODE = True

def setgdb(filename : str):
r = process(filename)
context.terminal = ["tmux", "splitw", "-h"]
context.log_level = 'debug'
gdb.attach(r)
return r

if __name__ == '__main__':
if(DEBUG_MODE):
r = setgdb('')
else:
r = remote("", )

r.interactive()
  • Title: Notes for Pwn
  • Author: kazma
  • Created at : 2024-02-11 15:24:06
  • Updated at : 2024-02-11 15:48:10
  • Link: https://kazma.tw/2024/02/11/Note-for-Pwn/
  • License: This work is licensed under CC BY-NC-SA 4.0.
 Comments
On this page
Notes for Pwn