Search results for 'winappdbg'

SendMessage by winappdbg

2013. 6. 12. 15:27

특정 Control에 특정 메세지를 전송.

target window 아래 child window을 뒤져 원하는 핸들값을 찾아내고 메시지를 전송.


from winappdbg import System, version, HexDump, win32
import sys, time

def send_input(hwnd, msg):
    for c in msg:
            win32.SendMessage(hwnd, user32.WM_CHAR, ord(c), 0)
            time.sleep(0.5)

user32 = win32.user32

txt = 'I am Legend.\n'

system = System()

for window in system.get_windows():
    if window.classname == 'Notepad':
        tmp =  user32.EnumChildWindows(window)
        for x in tmp:
            if user32.GetClassNameA(x) == 'Edit':
                send_input(x, txt)


'Code > Python' 카테고리의 다른 글

decode captcha by python  (0) 2012.11.12
handling HTTP by python module  (0) 2011.07.04
ISEC 2009 level3 solution by winappdbg  (0) 2010.09.16
hust 8th level D - python  (0) 2009.10.17

badcob Code/Python

ISEC 2009 level3 solution by winappdbg

2010. 9. 16. 22:14

Level : 3


This program is Encoder.
I encoded the plaintext And memo the encoded string.
But I fotget the plaintext!!!
SHIT, What the...!!!
I don't have decoder!
I hope you decode this string!

Encoded string : A1 FD 7E F6 F0 70 98 D6 E5 F8 FF F8 78 B8 DE ED 0D

p.s) You should input the key which are removed the space in plaintext!
ex.) a b cd(x) => abcd(o)

풀이



Python code


WinAppDbg Tutorial & Reference



불량식품이랑 문제 풀이는 철이 지나야 제맛.

'Code > Python' 카테고리의 다른 글

SendMessage by winappdbg  (0) 2013.06.12
decode captcha by python  (0) 2012.11.12
handling HTTP by python module  (0) 2011.07.04
hust 8th level D - python  (0) 2009.10.17

badcob Code/Python