OVH Cloud OVH Cloud

option --proxy de ncat ne foncionne pas

Aucune réponse
Avatar
h4x0r4f33dom
Bonjour,
salut, j ai essayé Ncat avec client-> serveur et tout a bien fonctionné
c'est,
ce que j'envoyé du client au serveur (client-> serveur) est apparu sur le serveur
ce que j'envoyé du serveur au client (server-> client) est apparu sur le client
<Code>
serveur: nc -l -v 31338
client: nc -v grex.org 31338
</ Code>

alors j'essayé d'utiliser un proxy (avec une 3ème shell) entre les deux, mais maintenant la connexion entre le client et le serveur
(Client <-> serveur) est cassé. c'est
ce que j'envoyé du client au serveur (client-> serveur) N'apparu sur le serveur
ce que j'envoyé du serveur au client (server-> client) N'apparu sur le client
MAIS proxy voit les deux adresses

NOTE: real IPs sont remplacés par {0.0.0.0 128.128.128.128 255.255.255.255}
client 128.128.128.128 IP
serveur 255.255.255.255 IP
0.0.0.0 proxy IP

j ai essayé les deux avec / sans l'option de type --proxy et avec de type --proxy j ai essayé de mettre "type --proxy http"
avant (b) et après (c) l'option --proxy mais a obtenu le même résultat; RIEN

a) sans
<Code>
NCAT -l -vvvvv 31336 # proxy
nc -l -vvvvv 31338 # serveur
NCAT -vvvvv 255.255.255.255 -p 31338 --proxy 0.0.0.0:31336 # client
</ Code>

b) avec avant
<Code>
NCAT -l -vvvvv 31336 # proxy
nc -l -vvvvv 31338 # serveur
NCAT -vvvvv 255.255.255.255 -p 31338 --proxy type http --proxy 0.0.0.0:31336 # client
</ Code>

c) avec après
<Code>
NCAT -l -vvvvv 31336 # proxy
nc -l -vvvvv 31338 # serveur
NCAT -vvvvv 255.255.255.255 -p 31338 --proxy 0.0.0.0:31336 --proxy type http # client
</ Code>

en utilisant l'option -vvvvv, verbeux, le proxy que je vois

<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>

quelqu'un peut mettre la lumière la dessus , svp ?

merci

Réponses