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

SysAdmin discussions

 
Praisencat --proxy option non-client-server connection issues Pin
Member 99818-Oct-16 3:28
Member 99818-Oct-16 3:28 
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
<br />
server:nc -l -v 31338<br />
client:nc -v grex.org 31338<br />


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
<br />
ncat -l -vvvvv 31336									# proxy<br />
nc -l -vvvvv 31338									# server<br />
ncat -vvvvv 255.255.255.255 -p 31338  --proxy 0.0.0.0:31336				# client<br />


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


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


using -vvvvv option, verbose, on proxy i see

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


can someone put light on this, plz ?

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