KasperskyLab / TinyCheck

TinyCheck allows you to easily capture network communications from a smartphone or any device which can be associated to a Wi-Fi access point in order to quickly analyze them. This can be used to check if any suspect or malicious communication is outgoing from a smartphone, by using heuristics or specific Indicators of Compromise (IoCs). In order to make it working, you need a computer with a Debian-like operating system and two Wi-Fi interfaces. The best choice is to use a Raspberry Pi (2+) a Wi-Fi dongle and a small touch screen. This tiny configuration (for less than $50) allows you to tap any Wi-Fi device, anywhere.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

analysis.py need pango-1.0-0

0xDRRB opened this issue · comments

Hi,

On a Raspberry Pi OS Lite installation, in headless mode, the report is not generated because analysis.py dies. By executing the script by hand we see that the error comes from a missing lib:

tinycheck:~$ sudo /usr/bin/python3 /usr/share/tinycheck/analysis/analysis.py -f /tmp/BE6E0A7A
Traceback (most recent call last):
  File "/usr/share/tinycheck/analysis/analysis.py", line 6, in <module>
    from classes.report import Report
  File "/usr/share/tinycheck/analysis/classes/report.py", line 1, in <module>
    import weasyprint
  File "/usr/local/lib/python3.9/dist-packages/weasyprint/__init__.py", line 336, in <module>
    from .css import preprocess_stylesheet  # noqa isort:skip
  File "/usr/local/lib/python3.9/dist-packages/weasyprint/css/__init__.py", line 25, in <module>
    from . import computed_values, counters, media_queries
  File "/usr/local/lib/python3.9/dist-packages/weasyprint/css/computed_values.py", line 9, in <module>
    from ..text.ffi import ffi, pango, units_to_double
  File "/usr/local/lib/python3.9/dist-packages/weasyprint/text/ffi.py", line 401, in <module>
    pango = _dlopen(
  File "/usr/local/lib/python3.9/dist-packages/weasyprint/text/ffi.py", line 385, in _dlopen
    return ffi.dlopen(names[0])  # pragma: no cover
  File "/usr/local/lib/python3.9/dist-packages/cffi/api.py", line 150, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/usr/local/lib/python3.9/dist-packages/cffi/api.py", line 832, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
  File "/usr/local/lib/python3.9/dist-packages/cffi/api.py", line 827, in _load_backend_lib
    raise OSError(msg)
OSError: cannot load library 'pango-1.0-0': pango-1.0-0: cannot open shared object file: No such file or directory.  Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0-0'

The libpango1.0-0 package and its dependencies should be installed by install.sh.

That's not the point. Installing libpango1.0-0 fixes the problem. I just suggest including this package (and its dependencies) in the installation process.