목록2021/06 (2)
Self-Improvement
fragrouter -B1과 같은 포워딩은 따로 필요 from scapy.all import * from colorama import Fore import os import sys if len(sys.argv) is not 4: print(Fore.YELLOW+"[-] Example : python broadARP.py "+Fore.RESET) sys.exit() iface2=sys.argv[1] mymac=sys.argv[2] targetip=sys.argv[3] os.system("ifconfig | grep broadcast | awk '{print $6}' > broadip.txt") f2=open("broadip.txt",'r') broadip=f2.readline().replace("\r\n"..
1. 무선 패킷 중에서 type이 0, subtype이 8 이면 AP가 브로드캐스트로 광고하는 패킷이며 이를 스니핑하겠다는 뜻. from scapy.all import * def packet_handler(pkt) : # if packet has 802.11 layer, and type of packet is Data frame if pkt.haslayer(Dot11) and pkt.type == 0 and pkt.subtype == 8: # do your stuff here print(pkt.show()) sniff(iface="wlan0mon", prn=packet_handler) 2. 무선 패킷 중에서 type이 2이면 데이터 패킷이며 이를 스니핑 하겠다는 뜻 from scapy.all import..