diff --git a/README.md b/README.md index b841764..47631a9 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

# friTap -![version](https://img.shields.io/badge/version-1.2.7.1-blue) [![PyPI version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=py&r=r&ts=1683906897&type=6e&v=1.2.7.1&x2=0)](https://badge.fury.io/py/friTap) +![version](https://img.shields.io/badge/version-1.2.8.0-blue) [![PyPI version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=py&r=r&ts=1683906897&type=6e&v=1.2.8.0&x2=0)](https://badge.fury.io/py/friTap) friTap is a powerful tool designed to assist researchers in analyzing network traffic encapsulated in SSL/TLS. With its ability to automate key extraction, friTap is especially valuable when dealing with malware analysis or investigating privacy issues in applications. By simplifying the process of decrypting and inspecting encrypted traffic, friTap empowers researchers to uncover critical insights with ease. diff --git a/agent/android/android_agent.ts b/agent/android/android_agent.ts index 02ead6a..fec5acd 100644 --- a/agent/android/android_agent.ts +++ b/agent/android/android_agent.ts @@ -61,7 +61,7 @@ function hook_Android_Dynamic_Loader(module_library_mapping: { [key: string]: Ar }) - console.log(`[*] Android dynamic loader hooked.`) + log(`[*] Android dynamic loader hooked.`) } catch (error) { devlog("Dynamic loader error: "+ error) log("No dynamic loader present for hooking on Android.") diff --git a/agent/android/gnutls_android.ts b/agent/android/gnutls_android.ts index 1c75c83..6eee870 100644 --- a/agent/android/gnutls_android.ts +++ b/agent/android/gnutls_android.ts @@ -1,6 +1,7 @@ import {GnuTLS } from "../ssl_lib/gnutls.js"; import { socket_library } from "./android_agent.js"; +import { devlog } from "../util/log.js"; export class GnuTLS_Linux extends GnuTLS { @@ -22,7 +23,7 @@ export class GnuTLS_Linux extends GnuTLS { this.session = args[0] }, onLeave: function (retval: any) { - console.log(this.session) + devlog("[!] Logging session information: "+this.session); GnuTLS.gnutls_session_set_keylog_function(this.session.readPointer(), GnuTLS.keylog_callback) } diff --git a/agent/ios/ios_agent.ts b/agent/ios/ios_agent.ts index fabcac4..61c5888 100644 --- a/agent/ios/ios_agent.ts +++ b/agent/ios/ios_agent.ts @@ -43,7 +43,7 @@ function hook_iOS_Dynamic_Loader(module_library_mapping: { [key: string]: Array< }) - console.log(`[*] iOS dynamic loader hooked.`) + log(`[*] iOS dynamic loader hooked.`) } catch (error) { devlog("Loader error: " + error) log("No dynamic loader present for hooking on iOS.") diff --git a/agent/ios/openssl_boringssl_ios.ts b/agent/ios/openssl_boringssl_ios.ts index c719795..8fed914 100644 --- a/agent/ios/openssl_boringssl_ios.ts +++ b/agent/ios/openssl_boringssl_ios.ts @@ -11,6 +11,7 @@ export class OpenSSL_BoringSSL_iOS extends OpenSSL_BoringSSL { var CALLBACK_OFFSET = 0x2A8; var foundationNumber = Module.findExportByName('CoreFoundation', 'kCFCoreFoundationVersionNumber')?.readDouble(); + devlog("[*] Calculating offset to keylog callback based on the FoundationVersionNumber on iOS: "+foundationNumber) if(foundationNumber == undefined){ devlog("Installing callback for iOS < 14"); CALLBACK_OFFSET = 0x2A8; @@ -43,8 +44,9 @@ export class OpenSSL_BoringSSL_iOS extends OpenSSL_BoringSSL { var library_method_mapping: { [key: string]: Array } = {} // the iOS implementation needs some further improvements - currently we are not able to get the sockfd from an SSL_read/write invocation - library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"] - library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"] // currently those functions gets only identified if we at an asterisk at the end + //library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"] + library_method_mapping[`*${moduleName}*`] = ["SSL_CTX_set_info_callback"] + //library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"] // currently those functions gets only identified if we at an asterisk at the end super(moduleName,socket_library,is_base_hook,library_method_mapping); } diff --git a/agent/linux/linux_agent.ts b/agent/linux/linux_agent.ts index 43b916d..f4e763a 100644 --- a/agent/linux/linux_agent.ts +++ b/agent/linux/linux_agent.ts @@ -46,7 +46,7 @@ function hook_Linux_Dynamic_Loader(module_library_mapping: { [key: string]: Arra }) - console.log(`[*] Linux dynamic loader hooked.`) + log(`[*] Linux dynamic loader hooked.`) } catch (error) { devlog("Loader error: " + error) log("No dynamic loader present for hooking.") diff --git a/agent/linux/nss_linux.ts b/agent/linux/nss_linux.ts index 69363ca..bc6d9c8 100644 --- a/agent/linux/nss_linux.ts +++ b/agent/linux/nss_linux.ts @@ -63,8 +63,8 @@ export class NSS_Linux extends NSS { devlog("Callback Error") var getErrorText = new NativeFunction(Module.getExportByName('libnspr4.so', 'PR_GetErrorText'), "int", ["pointer"]) var outbuffer = Memory.alloc(200); // max out size - console.log("typeof outbuffer: " + typeof outbuffer); - console.log("outbuffer: " + outbuffer); // should be a pointer + devlog("typeof outbuffer: " + typeof outbuffer); + devlog("outbuffer: " + outbuffer); // should be a pointer getErrorText(outbuffer.readPointer()) devlog("Error msg: " + outbuffer) } else { diff --git a/agent/macos/openssl_boringssl_macos.ts b/agent/macos/openssl_boringssl_macos.ts index 0c802f2..2436030 100644 --- a/agent/macos/openssl_boringssl_macos.ts +++ b/agent/macos/openssl_boringssl_macos.ts @@ -12,7 +12,7 @@ export class OpenSSL_BoringSSL_MacOS extends OpenSSL_BoringSSL { var CALLBACK_OFFSET = 0x2A8; var foundationNumber = Module.findExportByName('CoreFoundation', 'kCFCoreFoundationVersionNumber')?.readDouble(); - devlog("[*] Calculating offset to keylog callback based on the FoundationVersionNumber: "+foundationNumber) + devlog("[*] Calculating offset to keylog callback based on the FoundationVersionNumber on MacOS: "+foundationNumber) if(foundationNumber == undefined){ CALLBACK_OFFSET = 0x2A8; devlog("Installing callback for MacOS < 14 using callback offset: "+CALLBACK_OFFSET); @@ -31,9 +31,7 @@ export class OpenSSL_BoringSSL_MacOS extends OpenSSL_BoringSSL { } Interceptor.attach(this.addresses[this.module_name]["SSL_CTX_set_info_callback"], { onEnter: function (args : any) { - var ssl_str_ptr = new NativePointer(args[0]); - var callback = new NativePointer(ssl_str_ptr).add(CALLBACK_OFFSET) - callback.writePointer(this.keylog_callback); + ptr(args[0]).add(CALLBACK_OFFSET).writePointer(OpenSSL_BoringSSL.keylog_callback); } }); @@ -46,8 +44,9 @@ export class OpenSSL_BoringSSL_MacOS extends OpenSSL_BoringSSL { var library_method_mapping: { [key: string]: Array } = {} // the MacOS implementation needs some further improvements - currently we are not able to get the sockfd from an SSL_read/write invocation - library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"] - library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"] // currently those functions gets only identified if we at an asterisk at the end + //library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"] + library_method_mapping[`*${moduleName}*`] = ["SSL_CTX_set_info_callback"] + //library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"] // currently those functions gets only identified if we at an asterisk at the end super(moduleName, socket_library, is_base_hook, library_method_mapping); } diff --git a/agent/ssl_lib/openssl_boringssl.ts b/agent/ssl_lib/openssl_boringssl.ts index 45cf1dc..cac4d45 100644 --- a/agent/ssl_lib/openssl_boringssl.ts +++ b/agent/ssl_lib/openssl_boringssl.ts @@ -74,7 +74,7 @@ export class OpenSSL_BoringSSL { static modReceiver: ModifyReceiver; - static keylog_callback = new NativeCallback(function (ctxPtr, linePtr: NativePointer) { + static keylog_callback = new NativeCallback(function (ctxPtr: NativePointer, linePtr: NativePointer) { devlog("invoking keylog_callback from OpenSSL_BoringSSL"); var message: { [key: string]: string | number | null } = {} message["contentType"] = "keylog" @@ -147,150 +147,158 @@ export class OpenSSL_BoringSSL { } - this.SSL_SESSION_get_id = new NativeFunction(this.addresses[this.moduleName]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); - this.SSL_get_fd = ObjC.available ? new NativeFunction(this.addresses[this.moduleName]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(this.addresses[this.moduleName]["SSL_get_fd"], "int", ["pointer"]); - this.SSL_get_session = new NativeFunction(this.addresses[this.moduleName]["SSL_get_session"], "pointer", ["pointer"]); + if(!ObjC.available){ + this.SSL_SESSION_get_id = new NativeFunction(this.addresses[this.moduleName]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); + this.SSL_get_fd = ObjC.available ? new NativeFunction(this.addresses[this.moduleName]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(this.addresses[this.moduleName]["SSL_get_fd"], "int", ["pointer"]); + this.SSL_get_session = new NativeFunction(this.addresses[this.moduleName]["SSL_get_session"], "pointer", ["pointer"]); + } } install_plaintext_read_hook(){ - function ab2str(buf: ArrayBuffer) { - //@ts-ignore - return String.fromCharCode.apply(null, new Uint16Array(buf)); - } - function str2ab(str: string ) { - var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char - var bufView = new Uint8Array(buf); - for (var i=0, strLen=str.length; i < strLen; i++) { - bufView[i] = str.charCodeAt(i); + if(!ObjC.available){ + function ab2str(buf: ArrayBuffer) { + //@ts-ignore + return String.fromCharCode.apply(null, new Uint16Array(buf)); } - bufView[str.length] = 0; - return buf; - } - - var lib_addesses = this.addresses; - var instance = this; - var current_module_name = this.module_name; - - Interceptor.attach(this.addresses[this.moduleName]["SSL_read"], - { - - onEnter: function (args: any) - { - this.bufLen = args[2].toInt32() - this.fd = instance.SSL_get_fd(args[0]) - if(this.fd < 0 && enable_default_fd == false) { - return + function str2ab(str: string ) { + var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char + var bufView = new Uint8Array(buf); + for (var i=0, strLen=str.length; i < strLen; i++) { + bufView[i] = str.charCodeAt(i); } - - - - - var message = getPortsAndAddresses(this.fd as number, true, lib_addesses[current_module_name], enable_default_fd) - message["ssl_session_id"] = instance.getSslSessionId(args[0]) - message["function"] = "SSL_read" - this.message = message - - this.buf = args[1] - - }, - onLeave: function (retval: any) { - retval |= 0 // Cast retval to 32-bit integer. - if (retval <= 0 || this.fd < 0) { - return - } - - - if(OpenSSL_BoringSSL.modReceiver.readmod !== null){ - //NULL out buffer - //@ts-ignore - Memory.writeByteArray(this.buf, new Uint8Array(this.bufLen)); - - //@ts-ignore - Memory.writeByteArray(this.buf, OpenSSL_BoringSSL.modReceiver.readmod); - retval = OpenSSL_BoringSSL.modReceiver.readmod.byteLength; - } - - this.message["contentType"] = "datalog" - + bufView[str.length] = 0; + return buf; + } + + var lib_addesses = this.addresses; + var instance = this; + var current_module_name = this.module_name; + + Interceptor.attach(this.addresses[this.moduleName]["SSL_read"], + { + onEnter: function (args: any) + { + this.bufLen = args[2].toInt32() + this.fd = instance.SSL_get_fd(args[0]) + if(this.fd < 0 && enable_default_fd == false) { + return + } + + + - send(this.message, this.buf.readByteArray(retval)) + var message = getPortsAndAddresses(this.fd as number, true, lib_addesses[current_module_name], enable_default_fd) + message["ssl_session_id"] = instance.getSslSessionId(args[0]) + message["function"] = "SSL_read" + this.message = message + + this.buf = args[1] - } - }) + }, + onLeave: function (retval: any) { + retval |= 0 // Cast retval to 32-bit integer. + if (retval <= 0 || this.fd < 0) { + return + } + + + if(OpenSSL_BoringSSL.modReceiver.readmod !== null){ + //NULL out buffer + //@ts-ignore + Memory.writeByteArray(this.buf, new Uint8Array(this.bufLen)); + + //@ts-ignore + Memory.writeByteArray(this.buf, OpenSSL_BoringSSL.modReceiver.readmod); + retval = OpenSSL_BoringSSL.modReceiver.readmod.byteLength; + } + + this.message["contentType"] = "datalog" + + + + send(this.message, this.buf.readByteArray(retval)) + + } + }) + } + } install_plaintext_write_hook(){ - function str2ab(str: string ) { - var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char - var bufView = new Uint8Array(buf); - for (var i=0, strLen=str.length; i < strLen; i++) { - bufView[i] = str.charCodeAt(i); + if(!ObjC.available){ + function str2ab(str: string ) { + var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char + var bufView = new Uint8Array(buf); + for (var i=0, strLen=str.length; i < strLen; i++) { + bufView[i] = str.charCodeAt(i); + } + bufView[str.length] = 0; + return buf; } - bufView[str.length] = 0; - return buf; - } - - var current_module_name = this.module_name; - var lib_addesses = this.addresses; - var instance = this; - Interceptor.attach(this.addresses[this.moduleName]["SSL_write"], - { - onEnter: function (args: any) { - if (!ObjC.available){ - try { - - this.fd = instance.SSL_get_fd(args[0]); + + var current_module_name = this.module_name; + var lib_addesses = this.addresses; + var instance = this; + Interceptor.attach(this.addresses[this.moduleName]["SSL_write"], + { + onEnter: function (args: any) { + if (!ObjC.available){ + try { + + this.fd = instance.SSL_get_fd(args[0]); + - - }catch (error) { - if (!this.is_base_hook) { - const fallback_addresses = (global as any).init_addresses; - - //console.log("Current ModuleName: "+current_module_name); - let keys = Object.keys(fallback_addresses); - let firstKey = keys[0]; - instance.SSL_SESSION_get_id = new NativeFunction(fallback_addresses[firstKey]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); - instance.SSL_get_fd = ObjC.available ? new NativeFunction(fallback_addresses[firstKey]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(fallback_addresses["SSL_get_fd"], "int", ["pointer"]); - instance.SSL_get_session = new NativeFunction(fallback_addresses[firstKey]["SSL_get_session"], "pointer", ["pointer"]); - }else{ - if (error instanceof Error) { - console.log("Error: " + error.message); - console.log("Stack: " + error.stack); - } else { - console.log("Unexpected error:", error); + }catch (error) { + if (!this.is_base_hook) { + const fallback_addresses = (global as any).init_addresses; + + //console.log("Current ModuleName: "+current_module_name); + let keys = Object.keys(fallback_addresses); + let firstKey = keys[0]; + instance.SSL_SESSION_get_id = new NativeFunction(fallback_addresses[firstKey]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); + instance.SSL_get_fd = ObjC.available ? new NativeFunction(fallback_addresses[firstKey]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(fallback_addresses["SSL_get_fd"], "int", ["pointer"]); + instance.SSL_get_session = new NativeFunction(fallback_addresses[firstKey]["SSL_get_session"], "pointer", ["pointer"]); + }else{ + if (error instanceof Error) { + console.log("Error: " + error.message); + console.log("Stack: " + error.stack); + } else { + console.log("Unexpected error:", error); + } + } + } + if(this.fd < 0 && enable_default_fd == false) { + return } - + var message = getPortsAndAddresses(this.fd as number, false, lib_addesses[current_module_name], enable_default_fd) + message["ssl_session_id"] = instance.getSslSessionId(args[0]) + message["function"] = "SSL_write" + message["contentType"] = "datalog" + + + if(OpenSSL_BoringSSL.modReceiver.writemod !== null){ + const newPointer = Memory.alloc(OpenSSL_BoringSSL.modReceiver.writemod.byteLength) + //@ts-ignore + Memory.writeByteArray(newPointer, OpenSSL_BoringSSL.modReceiver.writemod); + args[1] = newPointer; + args[2] = new NativePointer(OpenSSL_BoringSSL.modReceiver.writemod.byteLength); } - if(this.fd < 0 && enable_default_fd == false) { - return - } - var message = getPortsAndAddresses(this.fd as number, false, lib_addesses[current_module_name], enable_default_fd) - message["ssl_session_id"] = instance.getSslSessionId(args[0]) - message["function"] = "SSL_write" - message["contentType"] = "datalog" - - - if(OpenSSL_BoringSSL.modReceiver.writemod !== null){ - const newPointer = Memory.alloc(OpenSSL_BoringSSL.modReceiver.writemod.byteLength) - //@ts-ignore - Memory.writeByteArray(newPointer, OpenSSL_BoringSSL.modReceiver.writemod); - args[1] = newPointer; - args[2] = new NativePointer(OpenSSL_BoringSSL.modReceiver.writemod.byteLength); + + send(message, args[1].readByteArray(args[2].toInt32())) + } // this is a temporary workaround for the fd problem on iOS + }, + onLeave: function (retval: any) { } - - send(message, args[1].readByteArray(args[2].toInt32())) - } // this is a temporary workaround for the fd problem on iOS - }, - onLeave: function (retval: any) { - } - }) + }) + } + } install_tls_keys_callback_hook(){ diff --git a/agent/util/process_infos.ts b/agent/util/process_infos.ts index 438d8ad..447c4bd 100644 --- a/agent/util/process_infos.ts +++ b/agent/util/process_infos.ts @@ -1,3 +1,4 @@ +import { devlog } from "./log.js"; export function get_process_architecture() : string{ return Process.arch; @@ -23,16 +24,25 @@ function is_macos_based_version_string(): boolean{ try { // Get the operating system version string const NSProcessInfo = ObjC.classes.NSProcessInfo; + + const version = NSProcessInfo.processInfo() .operatingSystemVersionString() - .toString(); - - if (version.includes("iOS")) { + .toString().toLowerCase(); + + + // https://developer.apple.com/documentation/appkit/nsapplication + // should only available on MacOS + const isMacOSCheck = ObjC.classes.NSApplication !== undefined; + + if (version.includes("ios")) { return false; - } else if (version.includes("macOS") || version.includes("OS X")) { + } else if (version.includes("macos") || version.includes("os x") || isMacOSCheck) { return true; - } + } } catch (error) { + devlog("[!] error:"+error); + return false; } } diff --git a/agent/windows/sspi.ts b/agent/windows/sspi.ts index 3624543..b294b74 100644 --- a/agent/windows/sspi.ts +++ b/agent/windows/sspi.ts @@ -207,7 +207,6 @@ export class SSPI_Windows { devlog("Got client random from " + calling_func+ "'s pParameterList: " + buf2hex(buf_buf)); return buf2hex(buf_buf); } - //console.log("buf_type " + buf_type); } return null; diff --git a/agent/windows/windows_agent.ts b/agent/windows/windows_agent.ts index c1aef2b..4eabec9 100644 --- a/agent/windows/windows_agent.ts +++ b/agent/windows/windows_agent.ts @@ -44,7 +44,7 @@ function hook_Windows_Dynamic_Loader(module_library_mapping: { [key: string]: Ar } } }) - console.log("[*] Windows dynamic loader hooked.") + log("[*] Windows dynamic loader hooked.") } catch (error) { devlog("Loader error: " + error) log("No dynamic loader present for hooking.") diff --git a/friTap/_ssl_log.js b/friTap/_ssl_log.js index 64405b5..fa6c550 100644 --- a/friTap/_ssl_log.js +++ b/friTap/_ssl_log.js @@ -1,8 +1,8 @@ 📦 3346 /agent/ssl_log.js.map 4339 /agent/ssl_log.js -3136 /agent/android/android_agent.js.map -3797 /agent/android/android_agent.js +3126 /agent/android/android_agent.js.map +3789 /agent/android/android_agent.js 937 /agent/android/android_java_tls_libs.js.map 1150 /agent/android/android_java_tls_libs.js 4361 /agent/android/bouncycastle.js.map @@ -13,8 +13,8 @@ 3304 /agent/android/cronet_android.js 2274 /agent/android/flutter_android.js.map 3238 /agent/android/flutter_android.js -1347 /agent/android/gnutls_android.js.map -1401 /agent/android/gnutls_android.js +1392 /agent/android/gnutls_android.js.map +1475 /agent/android/gnutls_android.js 982 /agent/android/mbedTLS_android.js.map 1248 /agent/android/mbedTLS_android.js 2285 /agent/android/mono_btls_android.js.map @@ -31,22 +31,22 @@ 2275 /agent/ios/cronet_ios.js 2021 /agent/ios/flutter_ios.js.map 2548 /agent/ios/flutter_ios.js -2067 /agent/ios/ios_agent.js.map -2378 /agent/ios/ios_agent.js -2328 /agent/ios/openssl_boringssl_ios.js.map -3425 /agent/ios/openssl_boringssl_ios.js +2057 /agent/ios/ios_agent.js.map +2370 /agent/ios/ios_agent.js +2230 /agent/ios/openssl_boringssl_ios.js.map +3640 /agent/ios/openssl_boringssl_ios.js 1472 /agent/linux/cronet_linux.js.map 1523 /agent/linux/cronet_linux.js 1341 /agent/linux/gnutls_linux.js.map 1399 /agent/linux/gnutls_linux.js -2582 /agent/linux/linux_agent.js.map -3026 /agent/linux/linux_agent.js +2572 /agent/linux/linux_agent.js.map +3018 /agent/linux/linux_agent.js 982 /agent/linux/matrixssl_linux.js.map 1251 /agent/linux/matrixssl_linux.js 951 /agent/linux/mbedTLS_linux.js.map 1214 /agent/linux/mbedTLS_linux.js -3627 /agent/linux/nss_linux.js.map -4666 /agent/linux/nss_linux.js +3607 /agent/linux/nss_linux.js.map +4656 /agent/linux/nss_linux.js 1829 /agent/linux/openssl_boringssl_linux.js.map 1919 /agent/linux/openssl_boringssl_linux.js 1423 /agent/linux/s2ntls_linux.js.map @@ -57,8 +57,8 @@ 1514 /agent/macos/cronet_macos.js 1984 /agent/macos/macos_agent.js.map 2384 /agent/macos/macos_agent.js -2516 /agent/macos/openssl_boringssl_macos.js.map -3891 /agent/macos/openssl_boringssl_macos.js +2286 /agent/macos/openssl_boringssl_macos.js.map +3869 /agent/macos/openssl_boringssl_macos.js 9219 /agent/misc/socket_tracer.js.map 10733 /agent/misc/socket_tracer.js 7608 /agent/shared/pattern_based_hooking.js.map @@ -83,8 +83,8 @@ 3954 /agent/ssl_lib/monobtls.js 31291 /agent/ssl_lib/nss.js.map 52013 /agent/ssl_lib/nss.js -13213 /agent/ssl_lib/openssl_boringssl.js.map -15932 /agent/ssl_lib/openssl_boringssl.js +13356 /agent/ssl_lib/openssl_boringssl.js.map +16483 /agent/ssl_lib/openssl_boringssl.js 5279 /agent/ssl_lib/s2ntls.js.map 6545 /agent/ssl_lib/s2ntls.js 4770 /agent/ssl_lib/wolfssl.js.map @@ -93,8 +93,8 @@ 18094 /agent/util/anti_root.js 736 /agent/util/log.js.map 451 /agent/util/log.js -2203 /agent/util/process_infos.js.map -2705 /agent/util/process_infos.js +2418 /agent/util/process_infos.js.map +3037 /agent/util/process_infos.js 1478 /agent/windows/cronet_windows.js.map 1530 /agent/windows/cronet_windows.js 974 /agent/windows/gnutls_windows.js.map @@ -107,10 +107,10 @@ 1459 /agent/windows/nss_windows.js 1264 /agent/windows/openssl_boringssl_windows.js.map 1558 /agent/windows/openssl_boringssl_windows.js -13147 /agent/windows/sspi.js.map -16471 /agent/windows/sspi.js -2475 /agent/windows/windows_agent.js.map -3018 /agent/windows/windows_agent.js +13133 /agent/windows/sspi.js.map +16416 /agent/windows/sspi.js +2465 /agent/windows/windows_agent.js.map +3010 /agent/windows/windows_agent.js 1292 /agent/windows/wolfssl_windows.js.map 1426 /agent/windows/wolfssl_windows.js ✄ @@ -243,7 +243,7 @@ function load_os_specific_agent() { } load_os_specific_agent(); ✄ -{"version":3,"file":"android_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/android/android_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MA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,SAAS,EAAC,YAAY,CAAC,CAAA;AAEjG,CAAC;AAGD,MAAM,UAAU,0BAA0B;IACtC,sBAAsB,CAAC,cAAc,CAAC,GAAG;QACrC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC,cAAc,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACvD,CAAC,6BAA6B,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACtE,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC7D,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC3D,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC1D,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5D,CAAC,qBAAqB,EAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAC1D,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5D,CAAC,aAAa,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACtD,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;KAAC,CAAC;IAErE,kBAAkB,EAAE,CAAC;IACrB,4BAA4B,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAC3D,2BAA2B,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC"} +{"version":3,"file":"android_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/android/android_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1G,O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AC,gBAAgB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC,cAAc,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACvD,CAAC,6BAA6B,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACtE,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC7D,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC3D,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC1D,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5D,CAAC,qBAAqB,EAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAC1D,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5D,CAAC,aAAa,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACtD,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;KAAC,CAAC;IAErE,kBAAkB,EAAE,CAAC;IACrB,4BAA4B,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAC3D,2BAA2B,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC"} ✄ import { module_library_mapping } from "../shared/shared_structures.js"; import { getModuleNames, ssl_library_loader, invokeHookingFunction } from "../shared/shared_functions.js"; @@ -297,7 +297,7 @@ function hook_Android_Dynamic_Loader(module_library_mapping, is_base_hook) { } } }); - console.log(`[*] Android dynamic loader hooked.`); + log(`[*] Android dynamic loader hooked.`); } catch (error) { devlog("Dynamic loader error: " + error); @@ -725,10 +725,11 @@ export function flutter_execute(moduleName, is_base_hook) { } } ✄ -{"version":3,"file":"gnutls_android.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/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,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AAEL,CAAC"} +{"version":3,"file":"gnutls_android.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/android/gnutls_android.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,OAAO,YAAa,SAAQ,MAAM;IAEpC,YAAmB,UAAiB,EAAS,cAAqB,EAAE,YAAqB;QACrF,KAAK,CAAC,UAAU,EAAC,cAAc,CAAC,CAAC;QADlB,eAAU,GAAV,UAAU,CAAO;QAAS,mBAAc,GAAd,cAAc,CAAO;IAElE,CAAC;IAGD,aAAa;QACT,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACnC,IAAI,CAAC,4BAA4B,EAAE,CAAC;QACpC,IAAI,CAAC,8BAA8B,EAAE,CAAC;IAC1C,CAAC;IAED,8BAA8B;QAC1B,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,aAAa,CAAC,EACtE;YACI,OAAO,EAAE,UAAU,IAAS;gBACxB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;YAC1B,CAAC;YACD,OAAO,EAAE,UAAU,MAAW;gBAC1B,MAAM,CAAC,mCAAmC,GAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBACzD,MAAM,CAAC,kCAAkC,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,eAAe,CAAC,CAAA;YAEjG,CAAC;SACJ,CAAC,CAAA;IAEF,CAAC;CACJ;AAGD,MAAM,UAAU,cAAc,CAAC,UAAiB,EAAE,YAAqB;IACnE,IAAI,UAAU,GAAG,IAAI,YAAY,CAAC,UAAU,EAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAC3E,UAAU,CAAC,aAAa,EAAE,CAAC;IAE3B,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACxD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AAEL,CAAC"} ✄ import { GnuTLS } from "../ssl_lib/gnutls.js"; import { socket_library } from "./android_agent.js"; +import { devlog } from "../util/log.js"; export class GnuTLS_Linux extends GnuTLS { constructor(moduleName, socket_library, is_base_hook) { super(moduleName, socket_library); @@ -746,7 +747,7 @@ export class GnuTLS_Linux extends GnuTLS { this.session = args[0]; }, onLeave: function (retval) { - console.log(this.session); + devlog("[!] Logging session information: " + this.session); GnuTLS.gnutls_session_set_keylog_function(this.session.readPointer(), GnuTLS.keylog_callback); } }); @@ -1184,7 +1185,7 @@ export function flutter_execute(moduleName, is_base_hook) { } } ✄ -{"version":3,"file":"ios_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/ios/ios_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO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G,CAAC,gCAAgC,CAAC,CAAA;KAChD;IAAC,OAAO,KAAK,EAAE;QACZ,MAAM,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAA;QAChC,GAAG,CAAC,+CAA+C,CAAC,CAAA;KACvD;AACL,CAAC;AAGD,SAAS,iBAAiB,CAAC,sBAA0E,EAAE,YAAqB;IACxH,kBAAkB,CAAC,cAAc,EAAE,sBAAsB,EAAC,WAAW,EAAC,KAAK,EAAC,YAAY,CAAC,CAAA;AAC7F,CAAC;AAID,MAAM,UAAU,sBAAsB;IAClC,sBAAsB,CAAC,cAAc,CAAC,GAAG;QACrC,CAAC,uBAAuB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAChE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC5D,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;KAAC,CAAA;IAEnE,iBAAiB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAChD,uBAAuB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC"} +{"version":3,"file":"ios_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/ios/ios_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAGlD,IAAI,cAAc,GAAG,QAAQ,CAAC;AAC9B,IAAI,WAAW,GAAkB,cAAc,EAAE,C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AA+C,CAAC,CAAA;KACvD;AACL,CAAC;AAGD,SAAS,iBAAiB,CAAC,sBAA0E,EAAE,YAAqB;IACxH,kBAAkB,CAAC,cAAc,EAAE,sBAAsB,EAAC,WAAW,EAAC,KAAK,EAAC,YAAY,CAAC,CAAA;AAC7F,CAAC;AAID,MAAM,UAAU,sBAAsB;IAClC,sBAAsB,CAAC,cAAc,CAAC,GAAG;QACrC,CAAC,uBAAuB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAChE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC5D,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;KAAC,CAAA;IAEnE,iBAAiB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAChD,uBAAuB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC"} ✄ import { module_library_mapping } from "../shared/shared_structures.js"; import { log, devlog } from "../util/log.js"; @@ -1220,7 +1221,7 @@ function hook_iOS_Dynamic_Loader(module_library_mapping, is_base_hook) { } } }); - console.log(`[*] iOS dynamic loader hooked.`); + log(`[*] iOS dynamic loader hooked.`); } catch (error) { devlog("Loader error: " + error); @@ -1240,7 +1241,7 @@ export function load_ios_hooking_agent() { hook_iOS_Dynamic_Loader(module_library_mapping, false); } ✄ -{"version":3,"file":"openssl_boringssl_ios.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/ios/openssl_boringssl_ios.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAO,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,qBAAsB,SAAQ,iBAAiB;IAExD,8BAA8B;QAC1B,yGAAyG;QACzG,IAAI,IAAI,CAAC,SAAS,EAAE,EA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EAAE,YAAqB;QAErF,IAAI,sBAAsB,GAAqC,EAAE,CAAA;QAEjE,yIAAyI;QACzI,sBAAsB,CAAC,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,SAAS,EAAE,2BAA2B,CAAC,CAAA;QACpK,sBAAsB,CAAC,IAAI,cAAc,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAA,CAAC,kFAAkF;QAEvL,KAAK,CAAC,UAAU,EAAC,cAAc,EAAC,YAAY,EAAC,sBAAsB,CAAC,CAAC;QARtD,eAAU,GAAV,UAAU,CAAO;QAAS,mBAAc,GAAd,cAAc,CAAO;IASlE,CAAC;IAED,aAAa;QAET;;;;UAIE;QAEF,IAAI,CAAC,8BAA8B,EAAE,CAAC;IAC1C,CAAC;CAIJ;AAGD,MAAM,UAAU,cAAc,CAAC,UAAiB,EAAE,YAAqB;IACnE,IAAI,UAAU,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACpF,UAAU,CAAC,aAAa,EAAE,CAAC;IAE3B,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACxD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} +{"version":3,"file":"openssl_boringssl_ios.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/ios/openssl_boringssl_ios.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,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AO,EAAE,UAAU,IAAU;oBAC3B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;gBACpF,CAAC;aACF,CAAC,CAAC;SAEJ;IAEP,CAAC;IAGD,YAAmB,UAAiB,EAAS,cAAqB,EAAE,YAAqB;QAErF,IAAI,sBAAsB,GAAqC,EAAE,CAAA;QAEjE,yIAAyI;QACzI,sKAAsK;QACtK,sBAAsB,CAAC,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;QACzE,yLAAyL;QAEzL,KAAK,CAAC,UAAU,EAAC,cAAc,EAAC,YAAY,EAAC,sBAAsB,CAAC,CAAC;QATtD,eAAU,GAAV,UAAU,CAAO;QAAS,mBAAc,GAAd,cAAc,CAAO;IAUlE,CAAC;IAED,aAAa;QAET;;;;UAIE;QAEF,IAAI,CAAC,8BAA8B,EAAE,CAAC;IAC1C,CAAC;CAIJ;AAGD,MAAM,UAAU,cAAc,CAAC,UAAiB,EAAE,YAAqB;IACnE,IAAI,UAAU,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACpF,UAAU,CAAC,aAAa,EAAE,CAAC;IAE3B,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACxD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} ✄ import { OpenSSL_BoringSSL } from "../ssl_lib/openssl_boringssl.js"; import { socket_library } from "./ios_agent.js"; @@ -1251,6 +1252,7 @@ export class OpenSSL_BoringSSL_iOS extends OpenSSL_BoringSSL { if (ObjC.available) { // inspired from https://codeshare.frida.re/@andydavies/ios-tls-keylogger/ var CALLBACK_OFFSET = 0x2A8; var foundationNumber = Module.findExportByName('CoreFoundation', 'kCFCoreFoundationVersionNumber')?.readDouble(); + devlog("[*] Calculating offset to keylog callback based on the FoundationVersionNumber on iOS: " + foundationNumber); if (foundationNumber == undefined) { devlog("Installing callback for iOS < 14"); CALLBACK_OFFSET = 0x2A8; @@ -1281,8 +1283,9 @@ export class OpenSSL_BoringSSL_iOS extends OpenSSL_BoringSSL { constructor(moduleName, socket_library, is_base_hook) { var library_method_mapping = {}; // the iOS implementation needs some further improvements - currently we are not able to get the sockfd from an SSL_read/write invocation - library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"]; - library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"]; // currently those functions gets only identified if we at an asterisk at the end + //library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"] + library_method_mapping[`*${moduleName}*`] = ["SSL_CTX_set_info_callback"]; + //library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"] // currently those functions gets only identified if we at an asterisk at the end super(moduleName, socket_library, is_base_hook, library_method_mapping); this.moduleName = moduleName; this.socket_library = socket_library; @@ -1386,7 +1389,7 @@ export function gnutls_execute(moduleName, is_base_hook) { } } ✄ -{"version":3,"file":"linux_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/linux/linux_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,E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AE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACxD,CAAC,aAAa,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;KAAC,CAAA;IAE3D,mBAAmB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAClD,yBAAyB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC"} +{"version":3,"file":"linux_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/linux/linux_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,IAAI,cAAc,GAAG,OAAO,CAAC;AAC7B,IAAI,WAAW,GAAkB,cAAc,EAAE,CAAA;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAA;AAEpC,SAAS,yBAAyB,CAAC,sBAA0E,EAAE,YAAqB;IAChI,IAAI;QACA,MAAM,WAAW,GAAG,eAAe,CAAA;QACnC,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CA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ACpC,sBAAsB,CAAC,cAAc,CAAC,GAAG;QACrC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC,cAAc,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACvD,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACzD,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAC1D,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5D,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAC3D,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QAC5D,CAAC,YAAY,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACxD,CAAC,aAAa,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;KAAC,CAAA;IAE3D,mBAAmB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAClD,yBAAyB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC"} ✄ import { module_library_mapping } from "../shared/shared_structures.js"; import { log, devlog } from "../util/log.js"; @@ -1427,7 +1430,7 @@ function hook_Linux_Dynamic_Loader(module_library_mapping, is_base_hook) { } } }); - console.log(`[*] Linux dynamic loader hooked.`); + log(`[*] Linux dynamic loader hooked.`); } catch (error) { devlog("Loader error: " + error); @@ -1527,7 +1530,7 @@ export function mbedTLS_execute(moduleName, is_base_hook) { } } ✄ -{"version":3,"file":"nss_linux.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/linux/nss_linux.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAO,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,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Ac,GAAG,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACrD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} +{"version":3,"file":"nss_linux.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/linux/nss_linux.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAO,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,GAAG;IAE9B,YAAmB,UAAiB,EAAS,cAAqB;QAC9D,IAAI,sBAAsB,GAAqC,EAAE,CAAC;QAClE,sBAAsB,CAAC,IAAI,UAAU,GAAG,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,0BAA0B,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,gBAAgB,CAAC,CAAA;QAC9K,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,CAAA;QAChF,sBAAsB,CAAC,aAAa,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,uBAAuB,CAAC,CAAA;QACrG,sBAAsB,CAAC,IAAI,cAAc,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;QAEhG,KAAK,CAAC,UAAU,EAAC,cAAc,EAAC,sBAAsB,CAAC,CAAC;QAPzC,eAAU,GAAV,UAAU,CAAO;QAAS,mBAAc,GAAd,cAAc,CAAO;IAQlE,CAAC;IAGD,aAAa;QACT,IAAI,CAAC,2BAA2B,EAAE,CA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AAI,CAAC,CAAC,CAAC,CAAC;wBAC1B,MAAM,CAAC,8EAA8E,CAAC,CAAC;wBACvF,GAAG,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;oBACtC,CAAC;oBACD,OAAO,CAAC,MAAW;oBACnB,CAAC;iBACJ,CAAC,CAAC;YAEX,CAAC;YACD,OAAO,CAAC,MAAW;YACnB,CAAC;SAEJ,CAAC,CAAC;IAGX,CAAC;CAEJ;AAGD,MAAM,UAAU,WAAW,CAAC,UAAiB,EAAE,YAAqB;IAChE,IAAI,OAAO,GAAG,IAAI,SAAS,CAAC,UAAU,EAAC,cAAc,CAAC,CAAC;IACvD,OAAO,CAAC,aAAa,EAAE,CAAC;IAExB,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACrD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} ✄ import { NSS } from "../ssl_lib/nss.js"; import { socket_library } from "./linux_agent.js"; @@ -1576,8 +1579,8 @@ export class NSS_Linux extends NSS { devlog("Callback Error"); var getErrorText = new NativeFunction(Module.getExportByName('libnspr4.so', 'PR_GetErrorText'), "int", ["pointer"]); var outbuffer = Memory.alloc(200); // max out size - console.log("typeof outbuffer: " + typeof outbuffer); - console.log("outbuffer: " + outbuffer); // should be a pointer + devlog("typeof outbuffer: " + typeof outbuffer); + devlog("outbuffer: " + outbuffer); // should be a pointer getErrorText(outbuffer.readPointer()); devlog("Error msg: " + outbuffer); } @@ -1863,7 +1866,7 @@ export function load_macos_hooking_agent() { hook_macOS_Dynamic_Loader(module_library_mapping, false); } ✄ -{"version":3,"file":"openssl_boringssl_macos.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["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AC;IACtF,UAAU,CAAC,aAAa,EAAE,CAAC;IAE3B,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACxD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} +{"version":3,"file":"openssl_boringssl_macos.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/macos/openssl_boringssl_macos.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAO,MAAM,gBAAgB,CAAC;AAG7C,MAAM,OAAO,uBAAwB,SAAQ,iBAAiB;IAE1D,8BAA8B;QAC1B,yGAAyG;QACzG,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,0EAA0E;YAC5F,IAAI,eAAe,GAAG,KAAK,CAAC;YAE5B,IAAI,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,gCAAgC,CAAC,EAAE,UAAU,EAAE,CAAC;YACjH,MAAM,CAAC,2FAA2F,GAAC,gBAAgB,CAAC,CAAA;YACpH,IAAG,gBAAgB,IAAI,SAAS,EAAC;gBAC7B,eAAe,GAAG,KAAK,CAAC;gBACxB,MAAM,CAAC,4DAA4D,GAAC,eAAe,CAAC,CAAC;aACxF;iBAAM,IAAI,gBAAgB,IAAI,QAAQ,IAAI,gBAAgB,GAAG,IAAI,EAAE;gBAChE,eAAe,GAAG,KAAK,CAAC,CAAC,eAAe;gBACxC,MAAM,CAAC,6DAA6D,GAAC,eAAe,CAAC,CAAC;aACzF;iBAAM,IAAI,gBAAgB,IAAI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,CAAC,UAAiB,EAAE,YAAqB;IACnE,IAAI,UAAU,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACtF,UAAU,CAAC,aAAa,EAAE,CAAC;IAE3B,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACxD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} ✄ import { OpenSSL_BoringSSL } from "../ssl_lib/openssl_boringssl.js"; import { socket_library } from "./macos_agent.js"; @@ -1874,7 +1877,7 @@ export class OpenSSL_BoringSSL_MacOS extends OpenSSL_BoringSSL { if (ObjC.available) { // inspired from https://codeshare.frida.re/@andydavies/ios-tls-keylogger/ var CALLBACK_OFFSET = 0x2A8; var foundationNumber = Module.findExportByName('CoreFoundation', 'kCFCoreFoundationVersionNumber')?.readDouble(); - devlog("[*] Calculating offset to keylog callback based on the FoundationVersionNumber: " + foundationNumber); + devlog("[*] Calculating offset to keylog callback based on the FoundationVersionNumber on MacOS: " + foundationNumber); if (foundationNumber == undefined) { CALLBACK_OFFSET = 0x2A8; devlog("Installing callback for MacOS < 14 using callback offset: " + CALLBACK_OFFSET); @@ -1897,9 +1900,7 @@ export class OpenSSL_BoringSSL_MacOS extends OpenSSL_BoringSSL { } Interceptor.attach(this.addresses[this.module_name]["SSL_CTX_set_info_callback"], { onEnter: function (args) { - var ssl_str_ptr = new NativePointer(args[0]); - var callback = new NativePointer(ssl_str_ptr).add(CALLBACK_OFFSET); - callback.writePointer(this.keylog_callback); + ptr(args[0]).add(CALLBACK_OFFSET).writePointer(OpenSSL_BoringSSL.keylog_callback); } }); } @@ -1907,8 +1908,9 @@ export class OpenSSL_BoringSSL_MacOS extends OpenSSL_BoringSSL { constructor(moduleName, socket_library, is_base_hook) { var library_method_mapping = {}; // the MacOS implementation needs some further improvements - currently we are not able to get the sockfd from an SSL_read/write invocation - library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"]; - library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"]; // currently those functions gets only identified if we at an asterisk at the end + //library_method_mapping[`*${moduleName}*`] = ["SSL_read", "SSL_write", "BIO_get_fd", "SSL_get_session", "SSL_SESSION_get_id", "SSL_new", "SSL_CTX_set_info_callback"] + library_method_mapping[`*${moduleName}*`] = ["SSL_CTX_set_info_callback"]; + //library_method_mapping[`*${socket_library}*`] = ["getpeername*", "getsockname*", "ntohs*", "ntohl*"] // currently those functions gets only identified if we at an asterisk at the end super(moduleName, socket_library, is_base_hook, library_method_mapping); this.moduleName = moduleName; this.socket_library = socket_library; @@ -4746,7 +4748,7 @@ NSS.secret_callback = new NativeCallback(function (sslSocketFD, epoch, dir, secr return; }, "void", ["pointer", "uint16", "uint16", "pointer", "pointer"]); ✄ -{"version":3,"file":"openssl_boringssl.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/ssl_lib/openssl_boringssl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC7I,OAAO,EAAc,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,cAAc;IAGhB;QAFO,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,sBAAiB,GAAuB,IAAI,CAAC;QAEhD,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,IA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AM,EAAE,OAAsB;IAChF,MAAM,CAAC,iDAAiD,CAAC,CAAC;IAC1D,IAAI,OAAO,GAA8C,EAAE,CAAA;IAC3D,OAAO,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAA;IACjC,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,CAAA;IACzC,IAAI,CAAC,OAAO,CAAC,CAAA;AACjB,CAAC,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,AANZ,CAMY"} +{"version":3,"file":"openssl_boringssl.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/ssl_lib/openssl_boringssl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC7I,OAAO,EAAc,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAG7C,MAAM,cAAc;IAGhB;QAFO,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,sBAAiB,GAAuB,IAAI,CAAC;QAEhD,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAEO,gBAAgB;QACpB,IAAI,CAAC,SAAS,EAAE,CAAC,MAAM,EAAC,EAAE;YACtB,YAAY;YACZ,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAE,IAAI,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC;gBACjH,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;YACxB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,C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AC,CAAA;AACjB,CAAC,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,AANZ,CAMY"} ✄ import { readAddresses, getPortsAndAddresses, getBaseAddress, isSymbolAvailable, checkNumberOfExports } from "../shared/shared_functions.js"; import { offsets, enable_default_fd } from "../ssl_log.js"; @@ -4846,117 +4848,123 @@ export class OpenSSL_BoringSSL { this.addresses[this.moduleName][`${method}`] = offsets.openssl[`${method}`].absolute || libraryBaseAddress == null ? ptr(offsets.openssl[`${method}`].address) : libraryBaseAddress.add(ptr(offsets.openssl[`${method}`].address)); } } - this.SSL_SESSION_get_id = new NativeFunction(this.addresses[this.moduleName]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); - this.SSL_get_fd = ObjC.available ? new NativeFunction(this.addresses[this.moduleName]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(this.addresses[this.moduleName]["SSL_get_fd"], "int", ["pointer"]); - this.SSL_get_session = new NativeFunction(this.addresses[this.moduleName]["SSL_get_session"], "pointer", ["pointer"]); + if (!ObjC.available) { + this.SSL_SESSION_get_id = new NativeFunction(this.addresses[this.moduleName]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); + this.SSL_get_fd = ObjC.available ? new NativeFunction(this.addresses[this.moduleName]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(this.addresses[this.moduleName]["SSL_get_fd"], "int", ["pointer"]); + this.SSL_get_session = new NativeFunction(this.addresses[this.moduleName]["SSL_get_session"], "pointer", ["pointer"]); + } } install_plaintext_read_hook() { - function ab2str(buf) { - //@ts-ignore - return String.fromCharCode.apply(null, new Uint16Array(buf)); - } - function str2ab(str) { - var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char - var bufView = new Uint8Array(buf); - for (var i = 0, strLen = str.length; i < strLen; i++) { - bufView[i] = str.charCodeAt(i); + if (!ObjC.available) { + function ab2str(buf) { + //@ts-ignore + return String.fromCharCode.apply(null, new Uint16Array(buf)); } - bufView[str.length] = 0; - return buf; - } - var lib_addesses = this.addresses; - var instance = this; - var current_module_name = this.module_name; - Interceptor.attach(this.addresses[this.moduleName]["SSL_read"], { - onEnter: function (args) { - this.bufLen = args[2].toInt32(); - this.fd = instance.SSL_get_fd(args[0]); - if (this.fd < 0 && enable_default_fd == false) { - return; + function str2ab(str) { + var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char + var bufView = new Uint8Array(buf); + for (var i = 0, strLen = str.length; i < strLen; i++) { + bufView[i] = str.charCodeAt(i); } - var message = getPortsAndAddresses(this.fd, true, lib_addesses[current_module_name], enable_default_fd); - message["ssl_session_id"] = instance.getSslSessionId(args[0]); - message["function"] = "SSL_read"; - this.message = message; - this.buf = args[1]; - }, - onLeave: function (retval) { - retval |= 0; // Cast retval to 32-bit integer. - if (retval <= 0 || this.fd < 0) { - return; - } - if (OpenSSL_BoringSSL.modReceiver.readmod !== null) { - //NULL out buffer - //@ts-ignore - Memory.writeByteArray(this.buf, new Uint8Array(this.bufLen)); - //@ts-ignore - Memory.writeByteArray(this.buf, OpenSSL_BoringSSL.modReceiver.readmod); - retval = OpenSSL_BoringSSL.modReceiver.readmod.byteLength; - } - this.message["contentType"] = "datalog"; - send(this.message, this.buf.readByteArray(retval)); + bufView[str.length] = 0; + return buf; } - }); + var lib_addesses = this.addresses; + var instance = this; + var current_module_name = this.module_name; + Interceptor.attach(this.addresses[this.moduleName]["SSL_read"], { + onEnter: function (args) { + this.bufLen = args[2].toInt32(); + this.fd = instance.SSL_get_fd(args[0]); + if (this.fd < 0 && enable_default_fd == false) { + return; + } + var message = getPortsAndAddresses(this.fd, true, lib_addesses[current_module_name], enable_default_fd); + message["ssl_session_id"] = instance.getSslSessionId(args[0]); + message["function"] = "SSL_read"; + this.message = message; + this.buf = args[1]; + }, + onLeave: function (retval) { + retval |= 0; // Cast retval to 32-bit integer. + if (retval <= 0 || this.fd < 0) { + return; + } + if (OpenSSL_BoringSSL.modReceiver.readmod !== null) { + //NULL out buffer + //@ts-ignore + Memory.writeByteArray(this.buf, new Uint8Array(this.bufLen)); + //@ts-ignore + Memory.writeByteArray(this.buf, OpenSSL_BoringSSL.modReceiver.readmod); + retval = OpenSSL_BoringSSL.modReceiver.readmod.byteLength; + } + this.message["contentType"] = "datalog"; + send(this.message, this.buf.readByteArray(retval)); + } + }); + } } install_plaintext_write_hook() { - function str2ab(str) { - var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char - var bufView = new Uint8Array(buf); - for (var i = 0, strLen = str.length; i < strLen; i++) { - bufView[i] = str.charCodeAt(i); + if (!ObjC.available) { + function str2ab(str) { + var buf = new ArrayBuffer(str.length + 1); // 2 bytes for each char + var bufView = new Uint8Array(buf); + for (var i = 0, strLen = str.length; i < strLen; i++) { + bufView[i] = str.charCodeAt(i); + } + bufView[str.length] = 0; + return buf; } - bufView[str.length] = 0; - return buf; - } - var current_module_name = this.module_name; - var lib_addesses = this.addresses; - var instance = this; - Interceptor.attach(this.addresses[this.moduleName]["SSL_write"], { - onEnter: function (args) { - if (!ObjC.available) { - try { - this.fd = instance.SSL_get_fd(args[0]); - } - catch (error) { - if (!this.is_base_hook) { - const fallback_addresses = global.init_addresses; - //console.log("Current ModuleName: "+current_module_name); - let keys = Object.keys(fallback_addresses); - let firstKey = keys[0]; - instance.SSL_SESSION_get_id = new NativeFunction(fallback_addresses[firstKey]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); - instance.SSL_get_fd = ObjC.available ? new NativeFunction(fallback_addresses[firstKey]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(fallback_addresses["SSL_get_fd"], "int", ["pointer"]); - instance.SSL_get_session = new NativeFunction(fallback_addresses[firstKey]["SSL_get_session"], "pointer", ["pointer"]); + var current_module_name = this.module_name; + var lib_addesses = this.addresses; + var instance = this; + Interceptor.attach(this.addresses[this.moduleName]["SSL_write"], { + onEnter: function (args) { + if (!ObjC.available) { + try { + this.fd = instance.SSL_get_fd(args[0]); } - else { - if (error instanceof Error) { - console.log("Error: " + error.message); - console.log("Stack: " + error.stack); + catch (error) { + if (!this.is_base_hook) { + const fallback_addresses = global.init_addresses; + //console.log("Current ModuleName: "+current_module_name); + let keys = Object.keys(fallback_addresses); + let firstKey = keys[0]; + instance.SSL_SESSION_get_id = new NativeFunction(fallback_addresses[firstKey]["SSL_SESSION_get_id"], "pointer", ["pointer", "pointer"]); + instance.SSL_get_fd = ObjC.available ? new NativeFunction(fallback_addresses[firstKey]["BIO_get_fd"], "int", ["pointer"]) : new NativeFunction(fallback_addresses["SSL_get_fd"], "int", ["pointer"]); + instance.SSL_get_session = new NativeFunction(fallback_addresses[firstKey]["SSL_get_session"], "pointer", ["pointer"]); } else { - console.log("Unexpected error:", error); + if (error instanceof Error) { + console.log("Error: " + error.message); + console.log("Stack: " + error.stack); + } + else { + console.log("Unexpected error:", error); + } } } - } - if (this.fd < 0 && enable_default_fd == false) { - return; - } - var message = getPortsAndAddresses(this.fd, false, lib_addesses[current_module_name], enable_default_fd); - message["ssl_session_id"] = instance.getSslSessionId(args[0]); - message["function"] = "SSL_write"; - message["contentType"] = "datalog"; - if (OpenSSL_BoringSSL.modReceiver.writemod !== null) { - const newPointer = Memory.alloc(OpenSSL_BoringSSL.modReceiver.writemod.byteLength); - //@ts-ignore - Memory.writeByteArray(newPointer, OpenSSL_BoringSSL.modReceiver.writemod); - args[1] = newPointer; - args[2] = new NativePointer(OpenSSL_BoringSSL.modReceiver.writemod.byteLength); - } - send(message, args[1].readByteArray(args[2].toInt32())); - } // this is a temporary workaround for the fd problem on iOS - }, - onLeave: function (retval) { - } - }); + if (this.fd < 0 && enable_default_fd == false) { + return; + } + var message = getPortsAndAddresses(this.fd, false, lib_addesses[current_module_name], enable_default_fd); + message["ssl_session_id"] = instance.getSslSessionId(args[0]); + message["function"] = "SSL_write"; + message["contentType"] = "datalog"; + if (OpenSSL_BoringSSL.modReceiver.writemod !== null) { + const newPointer = Memory.alloc(OpenSSL_BoringSSL.modReceiver.writemod.byteLength); + //@ts-ignore + Memory.writeByteArray(newPointer, OpenSSL_BoringSSL.modReceiver.writemod); + args[1] = newPointer; + args[2] = new NativePointer(OpenSSL_BoringSSL.modReceiver.writemod.byteLength); + } + send(message, args[1].readByteArray(args[2].toInt32())); + } // this is a temporary workaround for the fd problem on iOS + }, + onLeave: function (retval) { + } + }); + } } install_tls_keys_callback_hook() { log("Error: TLS key extraction not implemented yet."); @@ -5700,8 +5708,9 @@ export function devlog_error(str) { send(message); } ✄ -{"version":3,"file":"process_infos.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/util/process_infos.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,wBAAwB;IAChC,OAAO,OAAO,CAAC,IAAI,CAAC;AAC5B,CAAC;AAGD,MAAM,UAAU,SAAS;IACrB,IAAG,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,EAAC;QAC7C,IAAG;YACC,IAAI,CAAC,cAAc,CAAA,CAAC,yDAAyD;YAC7E,OAAO,IAAI,CAAA;SACd;QAAA,OAAM,KAAK,EAAC;YACT,OAAO,KAAK,CAAA;SACf;KACJ;SAAI;QACD,OAAO,KAAK,CAAA;KACf;AACL,CAAC;AAED,SAAS,6BAA6B;IAClC,gEAAgE;IAChE,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE;QAC1C,IAAI;YACA,0CAA0C;YAC1C,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;YACjD,MAAM,OAAO,GAAG,aAAa,CAAC,WAAW,EAAE;iBACtC,4BAA4B,EAAE;iBAC9B,QAAQ,EAAE,CAAC;YAEhB,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACzB,OAAO,KAAK,CAAC;aAChB;iBAAM,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;gBAC9D,OAAO,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AO,KAAK,CAAA;KACf;AACL,CAAC;AAGD,MAAM,UAAU,iBAAiB;IAC7B,IAAI,OAAO,GAAG,IAAI,CAAA;IAClB,IAAI,CAAC,OAAO,CAAC;QACT,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,0DAA0D;IACzF,CAAC,CAAC,CAAC;IAEH,IAAI,cAAc,GAAY,CAAC,OAAO,CAAC;IACvC,OAAO,cAAc,CAAC;AAG9B,CAAC"} +{"version":3,"file":"process_infos.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/util/process_infos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,UAAU,wBAAwB;IAChC,OAAO,OAAO,CAAC,IAAI,CAAC;AAC5B,CAAC;AAGD,MAAM,UAAU,SAAS;IACrB,IAAG,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,EAAC;QAC7C,IAAG;YACC,IAAI,CAAC,cAAc,CAAA,CAAC,yDAAyD;YAC7E,OAAO,IAAI,CAAA;SACd;QAAA,OAAM,KAAK,EAAC;YACT,OAAO,KAAK,CAAA;SACf;KACJ;SAAI;QACD,OAAO,KAAK,CAAA;KACf;AACL,CAAC;AAED,SAAS,6BAA6B;IAClC,gEAAgE;IAChE,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,EAAE;QAC1C,IAAI;YACA,0CAA0C;YAC1C,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;YAGjD,MAAM,OAAO,GAAG,aAAa,CAAC,WAAW,EAAE;iBACtC,4BAA4B,EAAE;iBAC9B,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC;YAG9B,iEAAiE;YACjE,iCAAiC;YACjC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,CAAC;YAE9D,IAAI,OAAO,CAAC,QAA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;gBAC7E,OAAO,KAAK,CAAA;aACf;YAAC,OAAO,KAAK,EAAE;gBACZ,OAAO,IAAI,CAAA;aACd;SAEJ;KACJ;SAAI;QACD,OAAO,KAAK,CAAA;KACf;AACL,CAAC;AAED,MAAM,UAAU,SAAS;IACrB,IAAI,OAAO,CAAC,QAAQ,IAAI,SAAS,EAAC;QAC9B,OAAO,IAAI,CAAA;KACd;SAAI;QACD,OAAO,KAAK,CAAA;KACf;AACL,CAAC;AAGD,MAAM,UAAU,iBAAiB;IAC7B,IAAI,OAAO,GAAG,IAAI,CAAA;IAClB,IAAI,CAAC,OAAO,CAAC;QACT,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,0DAA0D;IACzF,CAAC,CAAC,CAAC;IAEH,IAAI,cAAc,GAAY,CAAC,OAAO,CAAC;IACvC,OAAO,cAAc,CAAC;AAG9B,CAAC"} ✄ +import { devlog } from "./log.js"; export function get_process_architecture() { return Process.arch; } @@ -5727,15 +5736,20 @@ function is_macos_based_version_string() { const NSProcessInfo = ObjC.classes.NSProcessInfo; const version = NSProcessInfo.processInfo() .operatingSystemVersionString() - .toString(); - if (version.includes("iOS")) { + .toString().toLowerCase(); + // https://developer.apple.com/documentation/appkit/nsapplication + // should only available on MacOS + const isMacOSCheck = ObjC.classes.NSApplication !== undefined; + if (version.includes("ios")) { return false; } - else if (version.includes("macOS") || version.includes("OS X")) { + else if (version.includes("macos") || version.includes("os x") || isMacOSCheck) { return true; } } catch (error) { + devlog("[!] error:" + error); + return false; } } return false; @@ -6021,7 +6035,7 @@ export function boring_execute(moduleName, is_base_hook) { } } ✄ -{"version":3,"file":"sspi.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/windows/sspi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EA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AA4B,EAAE,CAAC;QACpC,IAAG,YAAY,EAAC;YACZ,IAAI,CAAC,qBAAqB,EAAE,CAAC;SAChC;IACL,CAAC;CAEJ;AAGD,MAAM,UAAU,YAAY,CAAC,UAAiB,EAAE,YAAqB;IACjE,IAAI,QAAQ,GAAG,IAAI,YAAY,CAAC,UAAU,EAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACzE,QAAQ,CAAC,aAAa,EAAE,CAAC;IAEzB,IAAI,YAAY,EAAE;QACd,MAAM,cAAc,GAAG,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACtD,wDAAwD;QACxD,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACvC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} +{"version":3,"file":"sspi.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/windows/sspi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAEtD;;;;EAIE;AAEF,IAAI,MAAM,GAAG,CAAC,GAAW,EAAE,UAAsB,EAAE,EAAE;IAEjD,MAAM,CAAC,mBAAmB,UAAU,4BAA4B,CAAC,CAAC;IAElE,IAAI,OAAO,GAAuC,EAAE,CAAA;IACpD,OAAO,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC;IAClC,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC;IACxB,IAAI,CAAC,OAAO,CAAC,CAAC;AAClB,CAAC,CAAA;AAOD,+EAA+E;AAC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vC,MAAc,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;SAC/D;KACJ;AACL,CAAC"} ✄ import { readAddresses, getBaseAddress } from "../shared/shared_functions.js"; import { socket_library } from "./windows_agent.js"; @@ -6188,7 +6202,6 @@ export class SSPI_Windows { devlog("Got client random from " + calling_func + "'s pParameterList: " + buf2hex(buf_buf)); return buf2hex(buf_buf); } - //console.log("buf_type " + buf_type); } return null; }; @@ -6320,7 +6333,7 @@ export function sspi_execute(moduleName, is_base_hook) { } } ✄ -{"version":3,"file":"windows_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/windows/windows_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,IAAI,cAAc,GAAG,SAAS,CAAC;AAC/B,IAAI,WAAW,GAAkB,cAAc,EAAE,CAAA;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;AAE3C,SAAS,2BAA2B,CAAC,sBAA0E,EAAE,YAAqB;IACl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A;AAClG,CAAC;AAED,MAAM,UAAU,0BAA0B;IACtC,sBAAsB,CAAC,cAAc,CAAC,GAAG;QACrC,CAAC,yCAAyC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAClF,CAAC,8BAA8B,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QACxE,CAAC,uCAAuC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAChF,CAAC,yBAAyB,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAC/D,CAAC,iCAAiC,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;QACxE,CAAC,cAAc,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QACxD,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACpE,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;KAAC,CAAA;IAElE,qBAAqB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACpD,2BAA2B,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC"} +{"version":3,"file":"windows_agent.js","sourceRoot":"/Users/danielbaier/research/projects/github/issues/2024 fritap issues/friTap/","sources":["agent/windows/windows_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAqB,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kB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J;YACL,CAAC;SACJ,CAAC,CAAA;QACF,GAAG,CAAC,oCAAoC,CAAC,CAAA;KAC5C;IAAC,OAAO,KAAK,EAAE;QACZ,MAAM,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAA;QAChC,GAAG,CAAC,wCAAwC,CAAC,CAAA;KAChD;AACL,CAAC;AAED,SAAS,qBAAqB,CAAC,sBAA0E,EAAE,YAAqB;IAC5H,kBAAkB,CAAC,cAAc,EAAE,sBAAsB,EAAC,WAAW,EAAC,SAAS,EAAE,YAAY,CAAC,CAAA;AAClG,CAAC;AAED,MAAM,UAAU,0BAA0B;IACtC,sBAAsB,CAAC,cAAc,CAAC,GAAG;QACrC,CAAC,yCAAyC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAClF,CAAC,8BAA8B,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QACxE,CAAC,uCAAuC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QAChF,CAAC,yBAAyB,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;QAC/D,CAAC,iCAAiC,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;QACxE,CAAC,cAAc,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;QACxD,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;QACpE,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;KAAC,CAAA;IAElE,qBAAqB,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC;IACpD,2BAA2B,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC"} ✄ import { module_library_mapping } from "../shared/shared_structures.js"; import { log, devlog } from "../util/log.js"; @@ -6358,7 +6371,7 @@ function hook_Windows_Dynamic_Loader(module_library_mapping, is_base_hook) { } } }); - console.log("[*] Windows dynamic loader hooked."); + log("[*] Windows dynamic loader hooked."); } catch (error) { devlog("Loader error: " + error); diff --git a/friTap/about.py b/friTap/about.py index e0c01d1..527b085 100644 --- a/friTap/about.py +++ b/friTap/about.py @@ -2,5 +2,5 @@ # -*- coding: utf-8 -*- __author__ = "Daniel Baier, Francois Egner, Max Ufer" -__version__ = "1.2.7.1" +__version__ = "1.2.8.0" debug = False # are we running in debug mode? \ No newline at end of file diff --git a/friTap/friTap.py b/friTap/friTap.py index 70768b8..0f67d6c 100755 --- a/friTap/friTap.py +++ b/friTap/friTap.py @@ -173,7 +173,7 @@ def main(): print(f"\n[-] Frida error: {ex_value}") else: print(f"\n[-] Unknown error: {ex_value}") - + if "unable to access process with pid" in str(ex_value).lower(): print("\n\nThx for using friTap\nHave a great day\n") os._exit(0) diff --git a/friTap/pcap.py b/friTap/pcap.py index 058a19c..a86ac34 100755 --- a/friTap/pcap.py +++ b/friTap/pcap.py @@ -182,7 +182,11 @@ def join(self, timeout=None): def stop_capture_thread(self, packet): - return self.stop_capture.isSet() + if hasattr(self.stop_capture, "is_set"): + status = self.stop_capture.is_set() + else: + status = self.stop_capture.isSet() + return status def full_mobile_capture(self): diff --git a/friTap/ssl_logger.py b/friTap/ssl_logger.py index 6681603..2377770 100644 --- a/friTap/ssl_logger.py +++ b/friTap/ssl_logger.py @@ -474,7 +474,8 @@ def start_fritap_session(self, own_message_handler=None): self.process = self.device.attach(int(self.target_app) if self.target_app.isnumeric() else self.target_app) - script = self.instrument(self.process, own_message_handler) + #script = self.instrument(self.process, own_message_handler) + script = None @@ -485,7 +486,7 @@ def start_fritap_session(self, own_message_handler=None): if self.keylog: print(f'[*] Logging keylog file to {self.keylog}') - self.process.on('detached', self.on_detach) + #self.process.on('detached', self.on_detach) if self.spawn: self.device.resume(pid) @@ -603,7 +604,7 @@ def cleanup(self, live=False, socket_trace=False, full_capture=False, debug_outp print(f"Error: {e}") elif full_capture and len(self.traced_scapy_socket_Set) < 1: - print(f"[-] friTap was unable to indentify the used sockets.\n[-] The resulting PCAP will contain all trafic from the device.") + print(f"[-] friTap was unable to indentify the used sockets.\n[-] The resulting PCAP _{self.pcap_obj.pcap_file_name} will contain all trafic from the device.") self.running = False if self.process: diff --git a/package.json b/package.json index a37f2da..33ebc5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "friTap", - "version": "1.2.7.1", + "version": "1.2.8.0", "description": "Frida agent for logging SSL traffic as plaintext and extracting SSL keys", "private": true, "main": "agent/ssl_log.ts", diff --git a/setup.cfg b/setup.cfg index cbb896f..3a959d7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -42,7 +42,6 @@ install_requires = [options.entry_points] console_scripts = - friTap=friTap.friTap:main fritap=friTap.friTap:main [version] diff --git a/setup.py b/setup.py index e7f2ac5..bde4911 100644 --- a/setup.py +++ b/setup.py @@ -97,9 +97,9 @@ def get_version(): entry_points={ 'console_scripts': [ - 'friTap=friTap.friTap:main', 'fritap=friTap.friTap:main', ], }, + )