This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import numpy as np | |
IM_LUT=np.array([(255,255,255,255),(0,0,0,255), | |
(255,0,0,255),(0,255,0,255),(0,0,255,255), | |
(255,255,0,255),(255,0,255,255),(0,255,255,255), | |
(128,0,0,255),(0,128,0,255),(0,0,128,255), | |
(128,128,0,255),(128,0,128,255),(0,128,128,255), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Based on recipe http://code.activestate.com/recipes/576362-list-system-process-and-process-information-on-win/ | |
#also hosted here https://github.com/ActiveState/code/blob/master/recipes/Python/576362_List_System_Process_Process/recipe-576362.py | |
#by winterTTr Dong , http://code.activestate.com/recipes/users/4164498/ | |
#updated by topin89 | |
#License: MIT | |
from ctypes import c_long , c_int , c_uint , c_char , c_ubyte , c_char_p , c_void_p, c_size_t, c_ulong, c_wchar | |
from ctypes import windll | |
from ctypes import Structure | |
from ctypes import sizeof , POINTER , pointer , cast |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For modern LG backup files use a script from here: https://github.com/Mysak0CZ/LBFtool | |
# with details from there https://forum.xda-developers.com/android/general/tool-lg-restore-com-lge-bnr-lbf-file-t4053579 | |
# Fair warning, this script was designed for really old version of LGBackup and won't work on with new devices | |
# So, if you don't get what you wanted, try to use every data carving tools you can get | |
# | |
# Also, good person with nickname SEVENTY ONE recommends ExtractJPEG( https://www.gunamoi.com.au/soft/extractjpeg/download.html ) | |
# To, well, extract JPG Images from a backup | |
# 0. You will need 7-zip context menu "Extract here". |
NewerOlder