Skip to content

Commit aee534f

Browse files
xassizxassiz
authored andcommitted
Fix initial ACK string
1 parent 84d9235 commit aee534f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mssqlclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def proxy_start(mssql, args):
162162
mssql.batch("DECLARE @ip varchar(15); SET @ip=TRIM(CONVERT(char(15), CONNECTIONPROPERTY('client_net_address')));"
163163
"EXEC msdb.dbo.%s '%s', @ip, %d" % (PROCEDURE_NAME, args.reciclador, lport), tuplemode=False, wait=False)
164164
data = mssql.socket.recv(2048)
165-
if 'this is my Child' in data:
165+
if 'Powered by blackarrow.net' in data:
166166
logging.debug("ACK from server!")
167167
mssql.socket.sendall("ACK")
168168
else:
@@ -472,4 +472,4 @@ def do_exit(self, line):
472472
print("SQL> %s" % line, end=' ')
473473
shell.onecmd(line)
474474

475-
ms_sql.disconnect()
475+
ms_sql.disconnect()

0 commit comments

Comments
 (0)