From d6b1d32b3b49311fc5a0de4f09483845958db51f Mon Sep 17 00:00:00 2001 From: earl86 Date: Thu, 13 Mar 2025 13:53:07 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bfc5b85..2987e1a 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ Please note that `ip_forward` is not enabled on the assistant server. For example (assuming 10.110.12.17 is the IP address of the target server): -`./tcpcopy -x 3306-10.110.12.17:3306 -s 10.110.12.18` +`./tcpcopy -x 3306-10.110.12.17:3306 -s 10.110.12.18 -c 10.110.12.15` -`tcpcopy` captures MySQL packets (assuming MySQL listens on port 3306) on the current server, modifies them as needed, and forwards them to port 3306 on `10.110.12.17` (the target MySQL server). It also connects to `10.110.12.18` to request that `intercept` forwards the response packets to it. +`tcpcopy` captures MySQL packets (assuming MySQL listens on port 3306) on the current server and modify all client ip to 10.110.12.15, modifies them as needed, and forwards them to port 3306 on `10.110.12.17` (the target MySQL server). It also connects to `10.110.12.18` to request that `intercept` forwards the response packets to it. ## Note