mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-11 07:37:11 -07:00
updated bdfactory to latest commit
This commit is contained in:
parent
76fd67d245
commit
f51a458733
2 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 815add35f7db409bbc9faed898765272b93092a2
|
Subproject commit 89d87b2fa1a499998a2109a751d8869e52485e0c
|
|
@ -80,10 +80,10 @@ class AirPwn(Plugin):
|
||||||
response[Raw].load = open(rule[1]['response'], 'rb').read()
|
response[Raw].load = open(rule[1]['response'], 'rb').read()
|
||||||
# Calculate new ack
|
# Calculate new ack
|
||||||
response[TCP].ack = packet[TCP].seq + len(response[Raw].load)
|
response[TCP].ack = packet[TCP].seq + len(response[Raw].load)
|
||||||
#delete packet checksums
|
# Delete packet checksums
|
||||||
del response[IP].chksum
|
del response[IP].chksum
|
||||||
del response[TCP].chksum
|
del response[TCP].chksum
|
||||||
#Some scapy-fu to re-calculate all checksums
|
# Some scapy-fu to re-calculate all checksums
|
||||||
response = response.__class__(str(response))
|
response = response.__class__(str(response))
|
||||||
# Send the packet
|
# Send the packet
|
||||||
sendp(response, iface=self.mon_interface, verbose=False)
|
sendp(response, iface=self.mon_interface, verbose=False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue