Skip to content

Commit

Permalink
Using raw IP in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregwar committed Oct 20, 2015
1 parent 9c7e687 commit 0a47fe1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions main.cpp
Expand Up @@ -491,16 +491,7 @@ void *mitm_sniffer(void*d) {
mitm_packets_replayed++;
sendto(sock,buffer, n, 0, (struct sockaddr*)&addr, sizeof(struct sockaddr_ll));
if (tunneling) {
if (vid == 1) {
for (int i=0; i<6; i++) {
eth->source[i] = victimA.mac[i];
}
} else {
for (int i=0; i<6; i++) {
eth->source[i] = victimB.mac[i];
}
}
ti_write(ifreplay, buffer, n);
ti_write(ifreplay, buffer+sizeof(struct eth_header), n-sizeof(struct eth_header));
}
}
if (n <= 0) {
Expand Down

0 comments on commit 0a47fe1

Please sign in to comment.