def web_socket_do_extra_handshake(request): msgutil._write( request, "HTTP/1.1 101 WebSocket Protocol Handshake\x0D\x0AUpgrade: WebSocket\x0D\x0AConnection: Upgrade\x0D\x0ASec-WebSocket-Origin: " + request.ws_origin + "\x0D\x0ASec-WebSocket-Location: " + request.ws_location + "\x00\x0D\x0A\x0D\x0A" + request.ws_challenge_md5 + "\xFF\x00")
def web_socket_transfer_data(request): time.sleep(2) msgutil._write( request, urllib.unquote(request.ws_location.split( '?', 1)[1]).decode("string-escape")) time.sleep( 1 ) #for some reason the server does an abortive close after this so we sleep for a second to make sure the client receives the data.
def web_socket_transfer_data(request): while True: line = msgutil.receive_message(request) if line == 'exit': return str = line.decode("string-escape") for c in str: msgutil._write(request, c) time.sleep(0.1)
def web_socket_do_extra_handshake(request): msgutil._write(request, 'x') time.sleep(2) msgutil._write(request, 'x') time.sleep(2) msgutil._write(request, 'x') time.sleep(2) msgutil._write(request, 'x') time.sleep(2) msgutil._write(request, 'x') time.sleep(2)
def web_socket_do_extra_handshake(request): msgutil._write( request, "HTTP/1.1 101 WebSocket Protocol Handshake\x0D\x0AUpgrade: WebSocket\x0D\x0AConnection: Upgrade\x0D\x0ASec-WebSocket-Origin: " + request.ws_origin + "\x0D\x0ASec-WebSocket-Location: " + request.ws_location + "\x0D\x0ASec-WebSocket-Protocol: foobar\x0D\x0A\x0D\x0A" + request.ws_challenge_md5 + "\xFF\x00", )
def web_socket_do_extra_handshake(request): str = "HTTP/1.1 101 WebSocket Protocol Handshake\x0D\x0AUpgrade: WebSocket\x0D\x0AConnection: Upgrade\x0D\x0ASec-WebSocket-Origin: " + request.ws_origin + "\x0D\x0ASec-WebSocket-Location: " + request.ws_location + "\x0D\x0ASec-WebSocket-Protocol: foobar\x0D\x0A\x0D\x0A" + request.ws_challenge_md5 + "\xFF\x00" for c in str: msgutil._write(request, c) time.sleep(0.01)
def web_socket_transfer_data(request): time.sleep(2) msgutil._write(request, urllib.unquote(request.ws_location.split('?', 1)[1]).decode("string-escape")) time.sleep(1) #for some reason the server does an abortive close after this so we sleep for a second to make sure the client receives the data.
def web_socket_transfer_data(request): time.sleep(10) msgutil._write( request, urllib.unquote(request.ws_location.split( '?', 1)[1]).decode("string-escape"))
def web_socket_transfer_data(request): msgutil._write(request, urllib.unquote(request.ws_location.split('?', 1)[1]).decode("string-escape")) time.sleep(2)
def web_socket_transfer_data(request): msgutil._write(request, '\x80' + ('\x80' * 34999) + '\x03LOL\x00test\xFF')
def web_socket_do_extra_handshake(request): msgutil._write(request, "HTTP/1.1 101 WebSocket Protocol Handshake\x0D\x0AUpgrade: WebSocket\x0D\x0AConnection: Upgrade\x0D\x0ASec-WebSocket-Origin: "+request.ws_origin+"\x0D\x0ASec-WebSocket-Location: "+request.ws_location+"\x0D\x0A\x0D\x0A1234567890123456\xFF\x00")
def web_socket_do_extra_handshake(request): msgutil._write(request, urllib.unquote(request.ws_location.split('?', 1)[1]).decode("string-escape")+"\x0D\x0A\x0D\x0A"+request.ws_challenge_md5+"\xFF\x00")