Skip to content

Commit

Permalink
fixed bug with iptables cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianVollmer committed Oct 13, 2017
1 parent 79907bd commit b9559e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ set_iptables_2 () {
function finish {
echo "[*] Cleaning up..."
set +e
set_iptables_2 D "$VICTIM_IP" "$ATTACKER_IP" "$ORIGINAL_DEST" 2> /dev/null 1>&2
set_iptables_3 D "$VICTIM_IP" "$ATTACKER_IP" 2> /dev/null 1>&2
set_iptables_1 D 2> /dev/null 1>&2
set_iptables_2 D 2> /dev/null 1>&2
printf "%s" "$IP_FORWARD" > /proc/sys/net/ipv4/ip_forward
kill $ARP_PID_1 2> /dev/null 1>&2
kill $ARP_PID_2 2> /dev/null 1>&2
Expand Down

0 comments on commit b9559e8

Please sign in to comment.