Click here to Skip to main content
1,350 members
Home / Discussions / SysAdmin discussions
   

SysAdmin discussions

 
Praisencat --proxy option non-client-server connection issues Pin
Member 99818-Oct-16 4:28
Member 99818-Oct-16 4:28 
Praisencat --proxy option non-client-server connection issues Pin
Member 99818-Oct-16 4:26
Member 99818-Oct-16 4:26 
hi, iv tried NCat with client->server and everthing worked fine
that is,
what i sent from client to server (client->server) appeared on server
what i sent from server to client (server->client) appeared on client
<code>
server:nc -l -v 31338
client:nc -v grex.org 31338
</code>

then i tried using a proxy (with a 3rd shell) in between, but now connection between client AND server
(client<->server) is broken. that is
what i sent from client to server (client->server) DOES NOT appeared on server
what i sent from server to client (server->client) DOES NOT appeared on client
BUT proxy sees both adresses

NOTE: real IPs are replaced by {0.0.0.0 128.128.128.128 255.255.255.255}
	client IP 128.128.128.128
	server IP 255.255.255.255
	proxy IP 0.0.0.0

i v tried both with/without --proxy-type option and for with --proxy-type iv tried putting "--proxy-type http"
before (b) AND after (c) --proxy option but got the same result;NOTHING

a) without
<code>
ncat -l -vvvvv 31336									# proxy
nc -l -vvvvv 31338									# server
ncat -vvvvv 255.255.255.255 -p 31338  --proxy 0.0.0.0:31336				# client
</code>

b) with before
<code>
ncat -l -vvvvv 31336									# proxy
nc -l -vvvvv 31338									# server
ncat -vvvvv 255.255.255.255 -p 31338  --proxy-type http --proxy 0.0.0.0:31336		# client
</code>

c) with after
<code>
ncat -l -vvvvv 31336									# proxy
nc -l -vvvvv 31338									# server
ncat -vvvvv 255.255.255.255 -p 31338  --proxy 0.0.0.0:31336 --proxy-type http		# client
</code>

using -vvvvv option, verbose, on proxy i see

<code>
Ncat: Version 7.01 ( https://nmap.org/ncat )
NCAT DEBUG: Initialized fdlist with 103 maxfds
Ncat: Listening on :::31336
NCAT DEBUG: Added fd 3 to list, nfds 1, maxfd 3
Ncat: Listening on 0.0.0.0:31336
NCAT DEBUG: Added fd 4 to list, nfds 2, maxfd 4
NCAT DEBUG: Added fd 0 to list, nfds 3, maxfd 4
NCAT DEBUG: Initialized fdlist with 100 maxfds
NCAT DEBUG: selecting, fdmax 4
NCAT DEBUG: select returned 1 fds ready
NCAT DEBUG: fd 4 is ready
Ncat: Connection from 128.128.128.128.
NCAT DEBUG: Swapping fd[0] (3) with fd[2] (0)
NCAT DEBUG: Removed fd 3 from list, nfds 2, maxfd 4
NCAT DEBUG: Swapping fd[1] (4) with fd[1] (4)
NCAT DEBUG: Removed fd 4 from list, nfds 1, maxfd 0
Ncat: Connection from 128.128.128.128:31338.
NCAT DEBUG: Added fd 5 to list, nfds 2, maxfd 5
NCAT DEBUG: Added fd 5 to list, nfds 1, maxfd 5
NCAT DEBUG: selecting, fdmax 5
NCAT DEBUG: select returned 1 fds ready
NCAT DEBUG: fd 5 is ready
CONNECT 255.255.255.255:31337 HTTP/1.0

NCAT DEBUG: selecting, fdmax 5
NCAT DEBUG: select returned 1 fds ready
NCAT DEBUG: fd 5 is ready
NCAT DEBUG: Closing connection.
NCAT DEBUG: Swapping fd[1] (5) with fd[1] (5)
NCAT DEBUG: Removed fd 5 from list, nfds 1, maxfd 0
NCAT DEBUG: Swapping fd[0] (5) with fd[0] (5)
NCAT DEBUG: Removed fd 5 from list, nfds 0, maxfd -1
</code>

can someone put light on this, plz ?

thx

Praisefew issued with -g -G -s --sctp NCat options Pin
Member 99816-Oct-16 7:43
Member 99816-Oct-16 7:43 
Generalunautherized/illegal use of ncat Pin
Member 99813-Oct-16 8:21
Member 99813-Oct-16 8:21 
GeneralISC DHCP Server Linux Pin
Emmanuel Medina8-Jul-13 13:14
professionalEmmanuel Medina8-Jul-13 13:14 
GeneralFedora 18 Installation Pin
Michael Martin1-Mar-13 23:11
Michael Martin1-Mar-13 23:11 
GeneralRe: Fedora 18 Installation Pin
ledtech322-Aug-13 15:30
ledtech322-Aug-13 15:30 
QuestionRecovery of data from Raid 5 hard drives after failure. Pin
SoMad29-Jan-13 14:04
professionalSoMad29-Jan-13 14:04 
AnswerRe: Recovery of data from Raid 5 hard drives after failure. Pin
ledtech320-Feb-13 11:08
ledtech320-Feb-13 11:08 
GeneralRe: Recovery of data from Raid 5 hard drives after failure. Pin
SoMad20-Feb-13 11:19
professionalSoMad20-Feb-13 11:19 
GeneralRe: Recovery of data from Raid 5 hard drives after failure. Pin
ledtech320-Feb-13 11:29
ledtech320-Feb-13 11:29 
GeneralRe: Recovery of data from Raid 5 hard drives after failure. Pin
SoMad20-Feb-13 11:51
professionalSoMad20-Feb-13 11:51 
GeneralRe: Recovery of data from Raid 5 hard drives after failure. Pin
Michael Martin22-Feb-13 20:51
Michael Martin22-Feb-13 20:51 
GeneralRe: Recovery of data from Raid 5 hard drives after failure. Pin
SoMad22-Feb-13 23:22
professionalSoMad22-Feb-13 23:22 
QuestionUser name from IP Address Pin
uspatel20-Aug-12 2:35
uspatel20-Aug-12 2:35 
NewsWindows updates breaks RDP!!! Pin
Vince Yonemitsu18-May-12 5:01
Vince Yonemitsu18-May-12 5:01 
GeneralRe: Windows updates breaks RDP!!! Pin
ledtech323-May-13 13:16
ledtech323-May-13 13:16 
SuggestionNew Section For Questions Pin
ledtech316-May-12 22:13
ledtech316-May-12 22:13 
GeneralRe: New Section For Questions Pin
Vince Yonemitsu18-May-12 5:01
Vince Yonemitsu18-May-12 5:01 
GeneralRe: New Section For Questions Pin
ledtech318-May-12 5:28
ledtech318-May-12 5:28 
GeneralHelp for VPS sysadmin noob Pin
jonas haggstrom14-May-12 21:54
jonas haggstrom14-May-12 21:54 
GeneralRe: Help for VPS sysadmin noob Pin
Vince Yonemitsu18-May-12 5:10
Vince Yonemitsu18-May-12 5:10 
GeneralRe: Help for VPS sysadmin noob Pin
jonas haggstrom18-May-12 5:20
jonas haggstrom18-May-12 5:20 
GeneralRe: Help for VPS sysadmin noob Pin
Vince Yonemitsu18-May-12 5:24
Vince Yonemitsu18-May-12 5:24 
GeneralRe: Help for VPS sysadmin noob Pin
jonas haggstrom18-May-12 6:23
jonas haggstrom18-May-12 6:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.