목록Study/Python (7)
최근에 보고있는 파이썬 해킹 프로그래밍(원제: Gray Hat Python)에서 윈도우 디버거 구현 예제가 있었는데 심심해서 카톡에 물려봄 my_debugger_defines1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361..
Server12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616..
ctypes 라이브러리를 이용하면 C의 데이터타입, 라이브러리 함수를 사용할 수 있다. gray hat python 예제: 12345678910111213141516171819202122from ctypes import * msvcrt = cdll.msvcrtmessage_string = "Hello world!\n"msvcrt.printf("Testing: %s", message_string) seitz = c_char_p("loves the python")print seitz.value class barley_amount(Union): _fields_ = [ ("barley_long", c_long), ("barley_int", c_int), ("barley_char", c_char * 8), ] v..