Skip to content

Instantly share code, notes, and snippets.

@zspitzer
Created April 4, 2018 05:47
Show Gist options
  • Save zspitzer/cc574e1b8599a2290e87520124de8f29 to your computer and use it in GitHub Desktop.
Save zspitzer/cc574e1b8599a2290e87520124de8f29 to your computer and use it in GitHub Desktop.
remote ios debugging port scanner
<title> remote ios debugging port scanner </title>
<h1> remote ios debugging port scanner </h1>
<cfscript>
ports = [9000];
for (i= 9220; i < 9230; i++)
ports.append(i);
for (port in ports){
writeOutput("port #port#");
http url = "http://127.0.0.1:" & port & "/json" timeout=1;
switch (cfhttp.status_code){
case 200:
dump(deserializeJson(cfhttp.filecontent));
break;
case 408:
writeOutput(" timeout");
break;
default:
dump(cfhttp);
}
writeOutput("<hr>");
}
</cfscript>
@zspitzer
Copy link
Author

zspitzer commented Apr 4, 2018

good for checking what's listening when using https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment