# Wireshark ### MaxMind GeoLite2 Download link https://dev.maxmind.com/geoip/geolite2-free-geolocation-data?lang=en#accessing-geolite2-free-geolocation-data ### 阿里山鄉農會網址 http://www.alishanfm.com.tw/index.asp ### 練習用Word檔下載網址 http://lms.tajen.edu.tw/sys/read_attach.php?id=401143 ### 練習用pcapng檔下載網址 https://drive.google.com/file/d/1I_37ps__4Y7pkOVZbNAQORi2eWrXL719/view?usp=sharing # Windows Sandbox ### 以PowerShell指令開啟Windows Sandbox功能 ``` Enable-WindowsOptionalFeature -FeatureName "Containers-DisposableClientVM" -All -Online ``` ### <Test_downloads.wsb> ``` <Configuration> <VGpu>Disable</VGpu> <Networking>Disable</Networking> <MappedFolders> <MappedFolder> <HostFolder>C:\Users\XXXX\Downloads</HostFolder> <SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads</SandboxFolder> <ReadOnly>true</ReadOnly> </MappedFolder> </MappedFolders> <LogonCommand> <Command>explorer.exe C:\users\WDAGUtilityAccount\Downloads</Command> </LogonCommand> </Configuration> ``` ## 以Sandbox設定檔自動安裝軟體(方法一) ### <npp1.wsb> ``` <Configuration> <MappedFolders> <MappedFolder> <HostFolder>C:\Users\xxxx\Downloads</HostFolder> <SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads</SandboxFolder> <ReadOnly>true</ReadOnly> </MappedFolder> </MappedFolders> <LogonCommand> <Command>C:\users\WDAGUtilityAccount\Downloads\Install_npp.bat</Command> </LogonCommand> </Configuration> ``` ### <Install_npp.bat> ``` @echo off C:\users\WDAGUtilityAccount\Downloads\npp.8.5.2.Installer.x64.exe /S ``` ## 以Sandbox設定檔自動安裝軟體(方法二) ### <npp2.wsb> ``` <Configuration> <MappedFolders> <MappedFolder> <HostFolder>C:\Users\xxxx\Downloads</HostFolder> <SandboxFolder>C:\Users\WDAGUtilityAccount\Downloads</SandboxFolder> </MappedFolder> </MappedFolders> <LogonCommand> <Command>C:\users\WDAGUtilityAccount\Downloads\Curl_install_npp.bat</Command> </LogonCommand> </Configuration> ``` ### <Curl_install_npp.bat> ``` @echo off ping 127.0.0.1 -n 10 -w 1000 > nul curl -L https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.5.2/npp.8.5.2.Installer.x64.exe --output C:\users\WDAGUtilityAccount\Downloads\npp.8.5.2.Installer.x64.exe C:\users\WDAGUtilityAccount\Downloads\npp.8.5.2.Installer.x64.exe /S ``` # WSL ### 查詢WSL Distribution的VHDX檔所在位置 ``` (Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Where-Object { $_.GetValue("DistributionName") -eq '<distribution-name>' }).GetValue("BasePath") + "\ext4.vhdx ```