- First, you need to open cmd in the admin mode, then run all commands below one by one.
- For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
Full credits to @eviltester's original post.
Steps:
Goto https://twitter.com/settings/your_twitter_data/twitter_interests
Block https://twitter.com/i/api/1.1/account/personalization/p13n_preferences.json in F12 Network Tools
Execute in F12 Console (copy/paste):
| import base64 | |
| import hashlib | |
| import zlib | |
| from ctypes import ( | |
| CDLL, | |
| POINTER, | |
| LittleEndianStructure, | |
| c_size_t, | |
| c_ubyte, | |
| c_uint64, |
| #Example: Which users can access the SMB Session information on a Windows 10 computer (NetCease status) | |
| #Retrieve the binary value | |
| $acl=Get-ItemProperty -Path Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\DefaultSecurity -Name SrvsvcSessionInfo | |
| #Use WMI helper to obtain a converter | |
| $converter = new-object system.management.ManagementClass Win32_SecurityDescriptorHelper | |
| #Do the conversion to SDDL | |
| $outsddl = $converter.BinarySDToSDDL($acl.SrvsvcSessionInfo) |
| # http://docs.python-requests.org/en/master/api/ | |
| import requests | |
| class RequestsApi: | |
| def __init__(self, base_url, **kwargs): | |
| self.base_url = base_url | |
| self.session = requests.Session() | |
| for arg in kwargs: | |
| if isinstance(kwargs[arg], dict): | |
| kwargs[arg] = self.__deep_merge(getattr(self.session, arg), kwargs[arg]) |