์๋
ํ์ธ์. scapy๋ ํ์ด์ฌ ํจํท์ ๋ค๋ฃจ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค ๊ฐ์ฅ ๊ฐ๋ ฅํ๊ณ ๊ธฐ๋ฅ์ด ๋ค์ํฉ๋๋ค. ์ด๋ฒ ์๊ฐ์๋ ๋ด ์ปดํจํฐ์ ์ค๊ณ ๊ฐ๋ ํจํท์ ์บก์ฒํ๋ ๊ฐ์ฅ ๊ฐ๋จํ ์ฝ๋๋ฅผ ์ดํด๋ณด๊ฒ ์ต๋๋ค. scapy.net Scapy Packet crafting for Python2 and Python3 scapy.net pip install scapy ์ ๋ช
๋ น์ด๋ก scapy๋ฅผ ์ค์นํด ์ค๋๋ค. from scapy.all import * from scapy.arch.windows import IFACES import time n = 50 iface = "Intel(R) Ethernet Connection (7) I219-V" IFACES.show() def cap(): for i in range(0, n): packet = s..
๐ป๊ธฐ์ /Python
๋จผ์ ์๋ ๋ช
๋ น์ด๋ฅผ ํตํด OpenCV ๋ฅผ ์ค์นํด์ค๋๋ค.pip install opencv-python ์ ์ฒด์ฝ๋ ์
๋๋คimport cv2 import numpy as np cascadeFace = cv2.CascadeClassifier("./haarcascade_frontalface_alt.xml") cascadeHand = cv2.CascadeClassifier("./haarcascade_hand.xml") def removeFace(img, cascade): gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) gray = cv2.equalizeHist(gray) rects = cascade.detectMultiScale(gray, 1.4, 5) return rects def ..