socket activity #fix

This commit is contained in:
iddoeldor 2019-04-17 15:34:08 +03:00 committed by GitHub
parent 2b87e7e6bc
commit 0dd0f51bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,8 @@
```js
Module.enumerateExportsSync(
// finding socket module path
Process.enumerateModulesSync().filter(function(m){·
return m.name === { linux: 'libc.so', darnwin: 'libSystem.B.dylib', windows: 'ws2_32.dll' }[Process.platform]
Process.enumerateModulesSync().filter(function(m){
return m.name === { linux: 'libc.so', darwin: 'libSystem.B.dylib', windows: 'ws2_32.dll' }[Process.platform]
})[0].path
).forEach(function(ex){
if (
@ -106,8 +106,8 @@ Android example
Java.perform(function(){
Module.enumerateExportsSync(
// finding socket module path
Process.enumerateModulesSync().filter(function(m){·
return m.name === { linux: 'libc.so', darnwin: 'libSystem.B.dylib', windows: 'ws2_32.dll' }[Process.platform]
Process.enumerateModulesSync().filter(function(m){
return m.name === { linux: 'libc.so', darwin: 'libSystem.B.dylib', windows: 'ws2_32.dll' }[Process.platform]
})[0].path
).forEach(function(ex){
if (