howdays

JIN's Lab

Browsing Category: Development

Development

gdb thread attach 기능 추가

~/Pwngdb/pwngdb.py 수정 https://github.com/scwuaptx/Pwngdb def at(self,*arg): “”” Attach by processname “”” (processname,) = normalize_argv(arg,1) if not processname : processname = getprocname(relative=True) if not processname : print(“Attaching program: “) print(“No executable file specified.”)… Continue Reading

Development

hexdump in C

void hexdump(char *buf, size_t len) { int i , j; for(i=0; i<len/16+1; i++) { printf(“%02d | “,i); for(j=0; j<16; j++) { if(i*16+j >= len) break; printf(“%02x “,buf[i*16+j]&0xff); } printf(“| “);… Continue Reading