ncat --chat
옵션? 다른 클라이언트가 아닌 단일 클라이언트에게 문자열/텍스트를 보내는 방법.
안녕하세요, 단일 클라이언트에 문자열/텍스트를 보내기 위해 다른 구분 기호 구문을 시도했습니다. 입력: :: . <>: <>:: 클라이언트 이름과 메시지 사이:
0) user5:string-0 # :
1) user5::string-1 # ::
2) user5.string-2 # .
3) <user5>:string-3 # <>:
4) <user5>::string-4 # <>::
그러나 다른 모든 클라이언트는 문자열/텍스트를 수신합니다.
노트:명령 앞의 ..은 (0)
문자열/텍스트의 일부가 아닙니다. (4)
이는 참고용입니다. #은 문자열/텍스트의 일부가 아닌 주석입니다. 이것은 단지 캐릭터의 사용법을 명확히 하기 위한 것입니다. 클라이언트와 서버의 실제 호스트 이름은 client-0.org에서 client-4.org 및 서버로 대체됩니다. 클라이언트/서버 실제 IP는 255.255.255.251에서 255.255.255.255로 대체됩니다.
위의 구분 기호를 사용해 보았습니다: :: . <>: <>:: 클라이언트와 서버에서 실행했지만 동일한 결과를 얻었습니다. 물론 키보드 조합의 모든 문자를 시도해 볼 수도 있습니다.
아래는 4개의 클라이언트와 서버의 출력입니다.
*********************************************
server.org :
Ncat: Version 7.60 ( https://nmap.org/ncat )
Ncat: Generating a temporary 1024-bit RSA key. Use --ssl-key and --ssl-cert to use a permanent one.
Ncat: SHA-1 fingerprint: XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX
Ncat: Listening on :::31337
Ncat: Listening on 0.0.0.0:31337
Ncat: Connection from 255.255.255.255 on file descriptor 5.
Ncat: Connection from 255.255.255.255:59186.
Ncat: Connection from 255.255.255.254 on file descriptor 6.
Ncat: Connection from 255.255.255.254:34210.
Ncat: Connection from 255.255.255.253 on file descriptor 7.
Ncat: Connection from 255.255.255.253:44194.
Ncat: Connection from 255.255.255.252 on file descriptor 8.
Ncat: Connection from 255.255.255.252:58691.
server.org
user5:client-0.org-00
user5::client-0.org-01
user5.client-0.org-02
<user5>:client-0.org-03
<user5>::client-0.org-04
^D
^D
^C
client-0.org :
Ncat: Version 6.47 ( http://nmap.org/ncat )
Ncat: Connected to 255.255.255.251:31337.
<announce> 255.255.255.255 is connected as <user5>.
<announce> already connected: nobody.
<announce> 255.255.255.254 is connected as <user6>.
<announce> already connected: 255.255.255.255 as <user5>.
<announce> 255.255.255.253 is connected as <user7>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>.
<announce> 255.255.255.252 is connected as <user8>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>, 255.255.255.253 as <user7>.
client-0.org
<user8> client-2.org
<user7> client-1.org
<user6> client-3.org
<user0> server.org
<user0> user5:client-0.org-00
user0:server.org-00
<user6> user0:server.org-00
<user7> user0:server.org-00
<user8> user0:server.org-00
user5::client-0.org-01
<user0> user5::client-0.org-01
<user0> user5.client-0.org-02
<user0> <user5>:client-0.org-03
<user0> <user5>::client-0.org-04
user0::server.org-01
<user6> user0::server.org-01
<user7> user0::server.org-01
<user8> user0::server.org-01
user0.server.org-02
<user6> user0.server.org-02
<user7> user0.server.org-02
<user8> user0.server.org-02
<user0>:server.org-03
<user6> <user0>:server.org-03
<user7> <user0>:server.org-03
<user8> <user0>:server.org-03
<user0>::server.org-04
<user6> <user0>::server.org-04
<user7> <user0>::server.org-04
<user8> <user0>::server.org-04
<announce> <user8> is disconnected.
<announce> <user7> is disconnected.
<announce> <user6> is disconnected.
Ncat: 131 bytes sent, 1223 bytes received in 3474.43 seconds.
client-1.org :
Ncat: Version 7.60 ( https://nmap.org/ncat )
Ncat: Connected to 255.255.255.251:31337.
<announce> 255.255.255.253 is connected as <user7>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>.
<announce> 255.255.255.252 is connected as <user8>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>, 255.255.255.253 as <user7>.
<user5> client-0.org
<user8> client-2.org
client-1.org
<user6> client-3.org
<user0> server.org
<user0> user5:client-0.org-00
<user5> user0:server.org-00
<user6> user0:server.org-00
user0:server.org-00
<user8> user0:server.org-00
<user5> user5::client-0.org-01
<user0> user5::client-0.org-01
<user0> user5.client-0.org-02
<user0> <user5>:client-0.org-03
<user0> <user5>::client-0.org-04
<user5> user0::server.org-01
<user6> user0::server.org-01
user0::server.org-01
<user8> user0::server.org-01
<user5> user0.server.org-02
<user6> user0.server.org-02
user0.server.org-02
<user8> user0.server.org-02
<user5> <user0>:server.org-03
<user6> <user0>:server.org-03
<user0>:server.org-03
<user8> <user0>:server.org-03
<user5> <user0>::server.org-04
<user6> <user0>::server.org-04
<user0>::server.org-04
<user8> <user0>::server.org-04
<announce> <user8> is disconnected.
Ncat: 108 bytes sent, 991 bytes received in 3445.98 seconds.
client-2.org :
Connection to server.org 31337 port [tcp/*] succeeded!
<announce> 255.255.255.252 is connected as <user8>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>, 255.255.255.253 as <user7>.
<user5> client-0.org
client-2.org
<user7> client-1.org
<user6> client-3.org
<user0> server.org
<user0> user5:client-0.org-00
<user5> user0:server.org-00
<user6> user0:server.org-00
<user7> user0:server.org-00
user0:server.org-00
<user5> user5::client-0.org-01
<user0> user5::client-0.org-01
<user0> user5.client-0.org-02
<user0> <user5>:client-0.org-03
<user0> <user5>::client-0.org-04
<user5> user0::server.org-01
<user6> user0::server.org-01
<user7> user0::server.org-01
user0::server.org-01
<user5> user0.server.org-02
<user6> user0.server.org-02
<user7> user0.server.org-02
user0.server.org-02
<user5> <user0>:server.org-03
<user6> <user0>:server.org-03
<user7> <user0>:server.org-03
<user0>:server.org-03
<user5> <user0>::server.org-04
<user6> <user0>::server.org-04
<user7> <user0>::server.org-04
<user0>::server.org-04
^D
^D
^C
client-3.org :
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connected to 255.255.255.251:31337.
<announce> 255.255.255.254 is connected as <user6>.
<announce> already connected: 255.255.255.255 as <user5>.
<announce> 255.255.255.253 is connected as <user7>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>.
<announce> 255.255.255.252 is connected as <user8>.
<announce> already connected: 255.255.255.255 as <user5>, 255.255.255.254 as <user6>, 255.255.255.253 as <user7>.
<user5> client-0.org
<user8> client-2.org
<user7> client-1.org
client-3.org
<user0> server.org
<user0> user5:client-0.org-00
<user5> user0:server.org-00
user0:server.org-00
<user7> user0:server.org-00
<user8> user0:server.org-00
<user5> user5::client-0.org-01
<user0> user5::client-0.org-01
<user0> user5.client-0.org-02
<user0> <user5>:client-0.org-03
<user0> <user5>::client-0.org-04
<user5> user0::server.org-01
user0::server.org-01
<user7> user0::server.org-01
<user8> user0::server.org-01
<user5> user0.server.org-02
user0.server.org-02
<user7> user0.server.org-02
<user8> user0.server.org-02
<user5> <user0>:server.org-03
<user0>:server.org-03
<user7> <user0>:server.org-03
<user8> <user0>:server.org-03
<user5> <user0>::server.org-04
<user0>::server.org-04
<user7> <user0>::server.org-04
<user8> <user0>::server.org-04
<announce> <user8> is disconnected.
<announce> <user7> is disconnected.
Ncat: 113 bytes sent, 1126 bytes received in 3454.57 seconds.