본문 바로가기

Python18

powershell(ubuntu version)에서 python 호출하기 powershell(ubuntu version)에서 python 호출하기 1. class1.py #!/usr/bin/python3 import json # Define a class with a method that returns JSON class returnsjson: def method1(this): return json.dumps(['foo', { 'bar': ('baz', None, 1.0, 2), 'buz': ('foo1', 'foo2', 'foo3') }, 'alpha', 1,2,3]) c = returnsjson() print (c.method1()) 2. class1.ps1 # # Wrap Python script in such a way to make it easy to # consum.. 2016. 8. 22.
Generating a Bitcoin Private Key and Address Generating a Bitcoin Private Key and Address ecdsa 설치 sudo pip install ecdsa 1.소스 import ecdsa import ecdsa.der import ecdsa.util import hashlib import os import re import struct b58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def base58encode(n): result = '' while n > 0: result = b58[n%58] + result n /= 58 return result def base256decode(s): result = 0 for c in s: result = re.. 2016. 8. 18.
python hello world 찍기 python hello world 찍기 1.소스 print "hello world" 결과 hacker@ubuntu:~/python$ python helloworld.py hello world 2016. 7. 21.
vbs로 만든 shell code를 mfc로 자동 포팅 하기 vbs로 만든 shell code를 mfc로 자동 포팅 하기우리는 종종 word파일 안에 매크로의 shellcode를 보게 됩니다.. 그런 shellcode를 자동으로 읽어 와서 mfc 만드는 툴을 만들어 봤습니다... 1. 사용법 2. 파일 기능 설명 * vba_to_cpp.py는 vba로 만든 shellcode를 mfc로 변경 해주는 툴 * vba_shellcode.txt는 vba로 만든 shellcode 3. 실행 4. 실행이 성공하면 vba_shellcode.cpp가 생성된다. 5. 입력할 파일 vba_shellcode.txt arrShellCode(0) = CLng("&H51EC8B55") arrShellCode(1) = CLng("&H0000E850") arrShellCode(2) = CLng.. 2016. 7. 11.