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
-- Wizard object | |
Wizard = {} | |
Wizard.__index = Wizard | |
-- Add methods | |
function Wizard.new(name, stamina, intelligence) | |
local self = setmetatable({}, Wizard) | |
self.name = name | |
self._stamina = stamina | |
self._intelligence = intelligence |
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
import os | |
import xml.etree.ElementTree as ET | |
from Crypto.Cipher import AES | |
from Crypto.Util.Padding import unpad | |
import base64 | |
import zipfile | |
def decrypt_and_extract(metadata_path, encrypted_file_path): | |
# Read the metadata XML |
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
import xml.etree.ElementTree as ET | |
from Crypto.Cipher import AES | |
from Crypto.Util.Padding import unpad | |
import base64 | |
# Load the metadata XML | |
metadata = """<ApplicationInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ToolVersion="1.8.4.0"> | |
<Name>npp.8.5.7.Installer.x64.exe</Name> | |
<UnencryptedContentSize>4642034</UnencryptedContentSize> | |
<FileName>IntunePackage.intunewin</FileName> |
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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
cinst google-chrome-x64 | |
cinst 7zip | |
cinst notepadplusplus | |
cinst vlc | |
cinst powershell4 | |
cinst ccleaner | |
cinst nodejs | |
cinst skype |