본문 바로가기

반응형

Programming/Python

(10)
Python/Code/중복없는 정수 난수 뽑기 # 소스12345678910111213141516171819#made by hyeonbell import random S = [] for i in range(26): S.append(i+1) T = []while T.__len__()
Python/Python *.pyd의 의미 # 의미- *.pyd파일은 윈도우에서 *.dll과 같다.모듈은 C로 프로그래밍 언어로 구현하고 C모듈을 임포트해서 사용하기도 함.https://wikidocs.net/4236
Python/tensorflow/Erorr and Solve # 오류 1- AttributeError: module 'tensorflow' has no attribute 'mul' # 해결- 더 이상 mul, sub, neg를 쓰지 않는다.대체됨multiply, subtract, negative로 바뀜. # 오류 2- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 # 해결 - 경고 무시# Just disables the warning, doesn't enable AVX/FMAimport osos.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # 오류3- Expected int32, got list containing Tensors ..
Python/파이썬 암호 모듈 설치(Windows) # pycrypto- 더 이상 유지보수 하지 않음. - 2015년https://github.com/dlitz/pycrypto/issues/16(리눅스 설치법은 많아서 windows환경)- 설치(windows) : py -2 -m pip install pycrypto- 오류 해결 : http://aka.ms/vcpython27 설치Microsoft Visual C++ Compiler for Python 2.7 # pycryptodome- 설치 : py -m pip install pycryptodome # cryptography - 설치 : py -m pip install pycryptodome
Python/IPython 설치 # IPython- python 쉘에서 시스템 명령과 각종 편의 기능을 추가한 강력한 파이썬 실행 환경 # 장점- 대화형 컴퓨팅으로 분석 프로그래밍 최적합- 운영체제의 쉘 파일 시스템과 통합되어 있음- 웹기반의 대화형 노트북 지원으로 수식, 표, 그림 등을 표현 가능- 가볍고 빠른 병렬컴퓨팅 엔진 이용- 코딩과 문서화, 테스트까지 한화면 - Code assist 기능 # 기본 키 기능 - 출처 : http://studymake.tistory.com/600 # 설치- sudo pip install ipython # 의존성 해결- sudo pip install requests- sudo pip install jinja2 sphinx pyzmq pygments tornado nose readline- sudo..
Python/자료 목록/Python Exploit Development # 목록- PeachPy- Peda- moneyshot- libformatstr : 포맷스트링 exploit - Sulley, PaiMei : fuzzing suites- riusksk/ shellsploit-library- Python Haystack : Heap FrameWork- Radium keylogger : 키로거- kitty- PEDAL- hexdump- angr - shellnoob- one_gadget- libc-database- checksec- xrop- ROPgadget- pwntools- QIRA- pwndbg- hugsy / gef - svenito / exploit-pattern-mgeeky / Exploit-Development-Tools- roissy / IOI- amons..
Programming/Python/문자열의 Hex,문자 빈도수 체크하는 프로그램 # 문자열의 문자 빈도수, HEX 빈도수를 검사하여 가장 큰 빈도를 출력하는 프로그램 CODE12345678910111213141516171819202122232425262728# Made by hyeonbell# 2018/01/21 import sys filename = sys.argv[1]f = open(filename)data = f.read()result = {} hexdata = data.encode("hex")s = ''i = 0 while i
Programming/Python/모듈 다루기 # 모듈 path 확인이나, import 시킬때 맞을 수 있는 문제나 에러에대해서 포스팅하고 업데이트할 예정입니다. # 업데이트 내역- 2018/01/17 ++ 기본 내용 - 설치된 모듈 확인하기# pydoc modules# python -c 'help("modules")'# pip list# pip freeze# python -c 'import pip,pprint; pprint.pprint(pip.get_installed_distributions())'- modulename.__file__ : 모듈이 로드된 path를 알아내는 방법입니다.1234567import moduleprint module.__file__ #orimport ospath = os.path.abspath(module.__file__)..

반응형