LOCAL_IP="10.60.12.4"#customization for ruCTFe2018
#ROTATE_TIME="$((10*60))" # seconds for subdumps
touch"$DUMP_DIR/logfile"
echo"Starting capturing on interface $DUMP_IF to file $DUMP_DIR/$DUMP_FILE"
tcpdump -i"eth0"-zgzip-w"$DUMP_DIR/$DUMP_FILE"-s 0 -nn-U-vvv"(src host $LOCAL_IP and not src port $SSH_PORT) or (dst host $LOCAL_IP and not dst port $SSH_PORT)">>"$DUMP_DIR/logfile" &
tcpdump -i"eth0"-zgzip-w"$DUMP_DIR/$DUMP_FILE"-s 0 -nn-U-vvv"(src host $LOCAL_IP and not src port $SSH_PORT and not src port $SMB_PORT1 and not src port $SMB_PORT2 and not src port $SMB_PORT3 and not src port $SMB_PORT4) or (dst host $LOCAL_IP and not dst port $SSH_PORT and not dst port $SMB_PORT1 and not dst port $SMB_PORT2 and not dst port $SMB_PORT3 and not dst port $SMB_PORT4)">>"$DUMP_DIR/logfile" &