/SEcontexts_parser

Parser for SEpolicy contexts in device tree for getting types.

Primary LanguagePython

SEcontexts_parser

Парсер контекстов сеполиси (property_/service_/file_)

Парсер стоковых бинарников file_contexts/sepolicy

Парсер логкатов для получения правил сеполиси локально и через Интернет

Как использовать?

sudo apt-get install python-dev python3-dev python-requests

python SEcontexts_parser.py

Использование на Windows

  1. Скачать Python 3 с официального сайта

  2. Запустить скрипт SEcontexts_parser-win.py

Парсинг logcat через Интернет не работает на Windows из-за отсутствия библиотеки requests

Спасибо https://ru.stackoverflow.com/users/213678/andrey и https://ru.stackoverflow.com/users/201445/gil9red и https://github.com/TheDeadOne и https://ru.stackoverflow.com/users/211923/maxu

​----------​----------​----------​----------​----------​------------------​----------​----------​

SEcontexts_parser

Parsing sepolicy contexts (property_/service_/file_)

Parsing stock binaries file_contexts/sepolicy

Parsing logcat for getting sepolicy rules (local and via Internet)

How to use?

sudo apt-get install python-dev python3-dev python-requests

python SEcontexts_parser.py

Using on Windows

  1. Download Python 3 from official site

  2. Run script SEcontexts_parser-win.py

Logcat parsing via Internet is not working on Windows because requests library is not included in Windows default installation

Thanks to https://ru.stackoverflow.com/users/213678/andrey and https://ru.stackoverflow.com/users/201445/gil9red and https://github.com/TheDeadOne and https://ru.stackoverflow.com/users/211923/maxu