Skip to content

Commit

Permalink
Update for Transformice 1.810
Browse files Browse the repository at this point in the history
  • Loading branch information
friedkeenan committed Apr 11, 2024
1 parent e4c1fb8 commit bb94be0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/leakers/TransformiceLeaker.as
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,24 @@ package leakers {
super("http://www.transformice.com/Transformice.swf", true);
}

private static function all_numbers(parameters: XMLList) : Boolean {
for each (var param: * in parameters) {
if (param.attribute("type") != "Number") {
return false;
}
}

return true;
}

private function get_socket_method_name(domain: ApplicationDomain, description: XML) : String {
for each (var method: * in description.elements("method")) {
var parameters: * = method.elements("parameter");
if (parameters.length() != 2) {
if (parameters.length() != 3) {
continue;
}

if (parameters[0].attribute("type") != "Number") {
if (!all_numbers(parameters)) {
continue;
}

Expand Down

0 comments on commit bb94be0

Please sign in to comment.