GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Oct-2016, 08:21
h4x0r4fr33d0m h4x0r4fr33d0m is offline
New Member
 
Join Date: Oct 2016
Posts: 7
h4x0r4fr33d0m has a little shameless behaviour in the past

ncat --proxy option non-client-server connection issues


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 ( nmap.org )
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HostPlay.Com ★ XEN & OpenVZ VPS's in 3 Locations ★Linux & Windows VPS Hosting 20% Off IWSNetworks Managed / Dedicated Servers 0 19-Feb-2015 19:30
Virtual host uncle22 Apache Web Server Forum 2 02-Oct-2013 23:58
Winsock Application Trouble pma07pg C++ Forum 5 25-Nov-2011 03:54
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 06:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 02:26

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:49.


vBulletin, Copyright © 2000 - 2017, Jelsoft Enterprises Ltd.