Skip to content

Commit

Permalink
Close the original socket to better avoid a connection to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
friedkeenan committed Jan 17, 2023
1 parent 9f6474e commit f4bec3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/HandshakeLeakerSocket.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ package {

public class HandshakeLeakerSocket extends Socket {
private var flush_callback: Function;

public var written_bytes: ByteArray = new ByteArray();
private var written_bytes: ByteArray = new ByteArray();

public function HandshakeLeakerSocket(flush_callback: Function) {
this.flush_callback = flush_callback;
Expand Down
3 changes: 3 additions & 0 deletions src/TFMSecretsLeaker.as
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ package {
return;
}

/* Close the socket to better avoid any connection to the server. */
socket.close();

this.removeEventListener(Event.ENTER_FRAME, this.try_replace_socket);

/*
Expand Down

0 comments on commit f4bec3d

Please sign in to comment.