From 00ec6d14517230c33dbf6a6b6ceafe5300458431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sun, 28 Apr 2013 14:31:57 +0200 Subject: [PATCH] Make the process name matching case-insensitive --- src/frida.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frida.py b/src/frida.py index 2322630..3db3923 100644 --- a/src/frida.py +++ b/src/frida.py @@ -63,7 +63,8 @@ class Device: return self._device.enumerate_processes() def get_process(self, process_name): - matching = [process for process in self._device.enumerate_processes() if fnmatch.fnmatchcase(process.name, process_name)] + process_name_lc = process_name.lower() + matching = [process for process in self._device.enumerate_processes() if fnmatch.fnmatchcase(process.name.lower(), process_name_lc)] if len(matching) == 1: return matching[0] elif len(matching) > 1: