Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- PowerShell
- TCP Socket
- c# 프로그램 종료
- hex2bin
- anti vm
- c# 파일 IO
- 파이썬
- UDP Server/Client
- c# 디렉토리 파일 조회
- c# 파일 읽기쓰기
- vbscript
- pdf 악성코드
- VMware
- Universal ShellCode
- Python GetProcAddress
- 악성코드
- c# xml 파싱
- c# 파일명 변경
- 파이썬 외부프로그램 실행
- 한글 악성코드
- Mouse Over
- Python LoadLibrary
- FTP Server/Client
- TCP Server/Client
- Hover Action
- Python Win32 API
- 최순실 악성코드
- PPT Malware
- c# 외부 프로그램 실행
- 파워쉘
Archives
- Today
- Total
목록hex2bin (1)
그냥저냥
Hex2Bin
123456789101112131415161718#!/usr/bin/pythonimport os, sysimport re if os.path.isfile(sys.argv[1]): sc = open(sys.argv[1]).read()else: sc = sys.argv[1] bin_sc = re.sub('%u(..)(..)',lambda x: chr(int(x.group(2),16))+chr(int(x.group(1),16)),sc) try: FILE = open(sys.argv[2],"wb") FILE.write(bin_sc) FILE.close() except Exception, e: print 'Cannot save binary to disk %s' % eColored by Color Scriptercs
Dev./Python
2017. 2. 12. 00:10