Skip to content

Connection lost #1

@hi3ec

Description

@hi3ec

Hello, and thank you for this great tool.

On the server-side, I run the following command:

python pivotsuite.py -S -W

On the client-side, I run the following command:

python pivotsuite.py -C -O SP --server-ip IP --server-port PORT

That's the IP and PORT, I replaced the ip and server port(7777).
After the connection, the following message is displayed:

DEBUG - [+] Client IP Client:44828 Connected
DEBUG - [+] Configure ProxyChains 0.0.0.0:1701 ==>> HOST IP Client

In the proxychains.conf file, in the last line, I added the following command:

socks5 127.0.0.1 1701

I added the following line in the client.py file to display the output:(line11: print(data , client.send(data)))

def exchange_loop(client, remote):

    while True:

        # wait until client or remote is available for read
        r, w, e = select.select([client, remote], [], [])
        if client in r:
            data = client.recv(4096)
        if remote.send(data) <= 0:
                break
        if remote in r:
            data = remote.recv(4096)
            print(data , client.send(data))
            if client.send(data) <= 0:
                break

After executing the command, it shows the closed port and the client connection is disconnected:

root@ubuntu:~# proxychains nmap -Pn -p 80 scanme.nmap.org
ProxyChains-3.1 (http://proxychains.sf.net)
Starting Nmap 7.60 ( https://nmap.org ) at 2019-07-23 02:32 EDT
|DNS-request| scanme.nmap.org
|S-chain|-<>-127.0.0.1:1701-<><>-4.2.2.2:53-<><>-OK
|DNS-response| scanme.nmap.org is 45.33.32.156
45.33.32.156/0 looks like an IPv6 target specification -- you have to use the -6 option.
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.15 seconds

The following message is displayed in the client console:

No handlers could be found for logger "root"
('\x00<\xa22\x81\x80\x00\x01\x00\x01\x00\x00\x00\x01\x06scanme\x04nmap\x03org\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04-! \x9c\x00\x00) \x00\x00\x00\x00\x00\x00\x00', 62)
('\x00<\xa22\x81\x80\x00\x01\x00\x01\x00\x00\x00\x01\x06scanme\x04nmap\x03org\x00\x00\x01\x00\x01\xc0\x0c\x00\x01\x00\x01\x00\x00\x0e\x10\x00\x04-! \x9c\x00\x00) \x00\x00\x00\x00\x00\x00\x00', 62)
('', 0)

And the connection is disconnected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions