

@startuml

title 服务端渗透客户端

actor 访客 as User

package "服务端（公网）"{
     component [服务端开放端口]{
         [默认UI页面端口:6001]
         [默认tcp端口:7001] as tcp
         [开放给客户端访问的端口:13306]
     }

}

package "客户端（私有网络）"{

      component [客户端端口]{
            [默认UI页面端口:6004]
        }

      database "客户端所在网络中的mysql:3306" as target {
      }
}

[User] ...right...> [开放给客户端访问的端口:13306]: 发送请求到 http://ip:13306
[开放给客户端访问的端口:13306] ...down...> [target]: 发送真实二进制请求到真实服务

note "无法直接访问" as N2
(User) .... N2
N2 ... (target)

@enduml


@startuml

title 服务端渗透服务端

actor 访客 as User

package "服务端（局域网）"{
     component [服务端开放端口]{
         [默认UI页面端口:6001]
         [默认tcp端口:7001] as tcp
         [开放给服务端访问的端口:13306]
     }
     database "服务端所在网络中的mysql:3306" as target {
     }
}


[User] ...right...> [开放给服务端访问的端口:13306]: 发送请求到 http://ip:13306
[开放给服务端访问的端口:13306] ...down...> [target]: 发送真实二进制请求到真实服务

note "无法直接访问" as N2
(User) .. N2
N2 .. (target)


@enduml

@startuml

title 客户端渗透服务端

actor 访客 as User

package "服务端（公网）"{
     component [服务端开放端口]{
         [默认UI页面端口:6001]
         [默认tcp端口:7001] as tcp
     }

     database "服务端所在网络中的mysql:3306" as target {
     }

}

package "客户端（私有网络）"{

      component [客户端端口]{
            [默认UI页面端口:6004]
            [客户端开放端口:13306]
        }


}

[User] ...right...> [客户端开放端口:13306]: 发送请求到 http://ip:13306
[客户端开放端口:13306] ...up...> [target]: 发送真实二进制请求到真实服务

note "无法直接访问" as N2
(User) ...up... N2
N2 ...up.. (target)

@enduml

@startuml

title 客户端渗透客户端

actor 访客杭州 as User

package "服务端（公网）" as server{
     component [服务端开放端口]{
         [默认UI页面端口:6001]
         [默认tcp端口:7001] as tcp
     }
}

package "客户端（私有网络--杭州）" as client_hangzhou{

      component [客户端端口]{
            [默认UI页面端口:6004]
            [客户端开放端口:13306]
        }
}

package "客户端（私有网络--上海）" as client_shanghai{
      component [上海客户端端口]{
            [上海默认UI页面端口:6004]
        }
      database "服务端所在网络中的mysql:3306" as target {
      }
}

server ...down...> client_hangzhou
server <...right... client_shanghai

[User] ...right...> [客户端开放端口:13306]: 发送请求到 http://ip:13306
[客户端开放端口:13306] ...up...> [target]: 发送真实二进制请求到真实服务

note "无法直接访问" as N2
(User) ...up... N2
N2 ...up.. (target)

@enduml