Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected EOF from the server (SQL server) #98

Open
meichengg opened this issue Aug 29, 2024 · 4 comments
Open

Unexpected EOF from the server (SQL server) #98

meichengg opened this issue Aug 29, 2024 · 4 comments

Comments

@meichengg
Copy link

Detailed error description

Hi, i have used v3-v5 but all gave me the same result when i tunneling and connecting to MSSQL server, sometimes when clicking on some random databases, random tables, it shows me this error then it crashed the connection to the DB, i had to reconnect but same thing happened again. I have tried to switch to other DB management apps but nothing changed.

[01000] [FreeTDS][SQL Server]Unexpected EOF from the server (20017)
[01000] [FreeTDS][SQL Server]Adaptive Server connection failed (20002)
[08001] [FreeTDS][SQL Server]Unable to connect to data source (0)

2024-08-29 at 11 48 17@2x

Operating environment

Client:

  • System: macOS M2
  • python version: 3.12.5

Server:

  • System: windows server 2016
  • Web file: aspx
  • web middleware: IIS
  • Language platform version: .NET 4.0.30319

neoreg.py running output (please bring -vvv parameter, output detailed information to improve repair efficiency)

(venv) ~/Neo-reGeorg on masterpython neoreg.py -u 'http://2016.local/tunnel-v5.aspx' -k '123456' --cookie 'a=b' -vvv


          "$$$$$$''  'M$  '$$$@m
        :$$$$$$$$$$$$$$''$$$$'
       '$'    'JZI'$$&  $$$$'
                 '$$$  '$$$$
                 $$$$  J$$$$'
                m$$$$  $$$$,
                $$$$@  '$$$$_          Neo-reGeorg
             '1t$$$$' '$$$$<
          '$$$$$$$$$$'  $$$$          version 5.2.0
               '@$$$$'  $$$$'
                '$$$$  '$$$@
             'z$$$$$$  @$$$
                r$$$   $$|
                '$$v c$$
               '$$v $$v$$$$$$$$$#
               $$x$$$$$$$$$twelve$$$@$'
             @$$$@L '    '<@$$$$$$$$`
           $$                 '$$$


    [ Github ] https://github.com/L-codes/Neo-reGeorg

+------------------------------------------------------------------------+
  Log Level set to [DEBUG]
  Starting SOCKS5 server [127.0.0.1:1080]
  Tunnel at:
    http://2016.local/tunnel-v5.aspx
+------------------------------------------------------------------------+
[INFO    ]  [Ask NeoGeorg] Checking if NeoGeorg is ready
[DEBUG   ]  [HTTP] Ask NeoGeorg Request
[DEBUG   ]  [HTTP] Ask NeoGeorg Response => HttpCode: 200
[INFO    ]  [Ask NeoGeorg] NeoGeorg says, 'All seems fine'
[DEBUG   ]  [SOCKS5] Version5 detected
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] CONNECT Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] CONNECT Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03s
[INFO    ]  [CONNECT] [b'192.168.30.28':1433] Session mark: sIJ5tiKeSJGVrykQ
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.02s
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.05
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.1 >>>> [58 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.1 <<<< [43 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.2 >>>> [331 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.2 <<<< [1568 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.02s
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.3 >>>> [101 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.3 <<<< [59 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.02
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.4 >>>> [241 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.4 <<<< [397 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.5 >>>> [54 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.5 <<<< [175 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.6 >>>> [56 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.6 <<<< [35 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.7 >>>> [66 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.7 <<<< [21 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.8 >>>> [312 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.8 <<<< [219 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.9 >>>> [152 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.9 <<<< [80 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.10 >>>> [260 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.10 <<<< [913 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03s
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03s
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.02s
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.11 >>>> [68 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.11 <<<< [203 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.12 >>>> [66 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.12 <<<< [21 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.13 >>>> [554 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.13 <<<< [434 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.14 >>>> [342 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.14 <<<< [51 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (sIJ5tiKeSJGVrykQ) => HttpCode: 200, Time: 0.03
[INFO    ]  [b'192.168.30.28':1433] [sIJ5tiKeSJGVrykQ] No.15 >>>> [248 byte]
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (sIJ5tiKeSJGVrykQ)
[DEBUG   ]  [SOCKS5] Version5 detected
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] CONNECT Request (u4vN/YavSJ2czG/M)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] CONNECT Response (u4vN/YavSJ2czG/M) => HttpCode: 200, Time: 0.03s
[INFO    ]  [CONNECT] [b'192.168.30.28':1433] Session mark: u4vN/YavSJ2czG/M
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Request (u4vN/YavSJ2czG/M)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Request (u4vN/YavSJ2czG/M)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] READ Response (u4vN/YavSJ2czG/M) => HttpCode: 200, Time: 0.02s
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] FORWARD Response (u4vN/YavSJ2czG/M) => HttpCode: 200, Time: 0.07s
[WARNING ]  [FORWARD] [b'192.168.30.28':1433] Error: Object reference not set to an instance of an object.
[DEBUG   ]  [DISCONNECT] [b'192.168.30.28':1433] Closing localsocket
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] DISCONNECT Request (u4vN/YavSJ2czG/M)
[DEBUG   ]  [HTTP] [b'192.168.30.28':1433] DISCONNECT Response (u4vN/YavSJ2czG/M) => HttpCode: 200, Time: 0.03s
@L-codes
Copy link
Owner

L-codes commented Aug 29, 2024

Observe the output and it is running normally. It is recommended to use other tunnel tools to test whether the server is normal.

@meichengg
Copy link
Author

Can you try on your end using DBeaver to connect to the database?

@meichengg
Copy link
Author

Here is the error when Test connection to DB with the MSSQL account through the tunnel.

[ERROR   ]  [FORWARD] [10.0.115.15:1433] HTTP [200]: Status: [FAIL]: Message ['POST request read filed'] Shutting down

When i press retry then it behaves normal, very random errors which make it unstable.

@L-codes
Copy link
Owner

L-codes commented Aug 29, 2024

OK, I'll test it out when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@L-codes @meichengg and others