subprocess3 [python] 데몬 띄워서 감시하다 특정 문자열 오면 restart하기 2023. 2. 22. wget wget class ][ robots.txt 받아오기 1) subprocess 버전 # -*- coding: utf-8 -*- # # write by kyoung chip , jang # # python 3.6 # pip list # import subprocess class CWget : def __init__( self ) : pass def getFile( self, location , url ) : proc = subprocess.Popen( ['wget', '-O',location, url], stdout = subprocess.PIPE ) out,err = proc.communicate() print ( ( "output = %s \nerror = %s") % ( out , err ) ) if.. 2017. 10. 6. whitehat cft 문제 whitehat cft 문제 급하게 짜느라고 소스는 엉망이지만 , 나중을 위해 기록^^ from pwn import * from re import findall from subprocess import check_output c = remote("121.78.147.159", 55511) r = c.recvuntil("input Opcode") print r code = "" i=0 eax = 0xeb172f5b ebx = 0x5be4d5fa ecx = 0x8aabb74e edx = 0xca568210 esp = 0xb0a6bd97 ebp = 0x2044ada2 esi = 0xefc7fe7a edi = 0x6f9d6a62 for s in findall(".{3} = 0x.{0,8}", r): s = s... 2016. 10. 10. 이전 1 다음