mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Improve the query_system_parameters() example
This commit is contained in:
1 parent
d83bf670a2
commit
d4a40b3d74
1 file changed
+6
-2
@@ -1,7 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import print_function
|
||||
import frida
|
||||
from pprint import pformat
|
||||
from pygments import highlight
|
||||
from pygments.formatters import Terminal256Formatter
|
||||
from pygments.lexers import PythonLexer
|
||||
|
||||
|
||||
print("Local parameters:", frida.query_system_parameters())
|
||||
print("USB device parameters:", frida.get_usb_device().query_system_parameters())
|
||||
print("Local parameters:", highlight(pformat(frida.query_system_parameters()), PythonLexer(), Terminal256Formatter()))
|
||||
print("USB device parameters:", highlight(pformat(frida.get_usb_device().query_system_parameters()), PythonLexer(), Terminal256Formatter()))
|
||||
Reference in new issue
Block a user