개발
-
-
-
-
[Python] Hash-result개발 2021. 8. 2. 01:24
파일의 해시를 계산 + 같은 해시를 갖은 파일 검색 함수를 많이 만들어서 코딩을 해야 할 것 같다. https://github.com/fxploit/hash-result/blob/master/hash.py import os import hashlib import sys print("============== Select Menu ==============") print("(1) Hash Calculation (2) Hashset (3) Exit") menu = int(input("Select >>> ")) if menu == 1: filename = input('FileName >>> ') f1 = open(filename, 'rb') data = f1.read() f1.close() md5 = hash..
-
[Python] JPEG-signature-search개발 2021. 8. 2. 01:20
왜 하나만 바꾸고 프로그램이 종료 되는지 모르겠다. 나중에 시간이 좀 생기면 디버깅 해봐야겠다. https://github.com/fxploit/JPEG-signature-search/blob/master/signature.py import os import binascii import shutil import sys def file_Load(path_dir): file_list = os.listdir(path_dir) print("\n[*] File Load ...") file = [] for i in file_list: print("[+] File Name >>> "+i) file.append(i) return file def search(file_li, path): print("\n[*] File ..
-
MakeFile 생성개발 2021. 7. 28. 16:18
여러 파일들을 하나로 묶어 컴파일 명령을 내리기 힘들기 때문에 MakeFile로 만들어 놓고 컴파일 한다. 자세한 내용 -> https://velog.io/@hidaehyunlee/Makefile-%EB%A7%8C%EB%93%A4%EA%B8%B0 #Makefile all: sum-test sum-test: sum.o main.o g++ -o sum-test sum.o main.o main.o: sum.h main.cpp sum.o: sum.h sum.cpp clean: rm -f sum-test rm -f *.o