我匆忙地运行了下面的脚本,现在我担心我的笔记本电脑被入侵了。我怎样才能确认我的数据是好的?
他们能从中得到什么数据?有人能帮我吗??
警告::请不要执行以下行:
我执行了:powershell iex (irm 'https://hotgames[dot]gg/genshin/get_wish_url.ps1')
据我所知,该脚本不会对您的计算机进行任何更改。它尝试从Genshin Impact日志文件和/或其嵌入式 browser\xe2\x80\x99s 缓存存储中读取一些(gacha)信息。
\n它也不会在其他地方上传任何信息。
\n正如您似乎已经意识到的那样,您不应该只运行来自互联网的脚本。相反,下载它并仔细检查其内容:它是否被混淆了或者您不\xe2\x80\x99t理解它100%?不要\xe2\x80\x99运行它。如果它似乎进行了与其声明的目的无关的更改,也不要运行它。如果它上传数据到某个地方,\xe2\x80\xa6
\n仅运行您自己编写的脚本(给予足够的时间和研究)或来自可信来源(Microsoft、您的雇主等)的脚本。
\n不可能可靠地确定系统是否干净。一旦您失去信心,请查看如何从我的电脑中删除恶意间谍软件、恶意软件、广告软件、病毒、特洛伊木马或 Rootkit?规范问题。
\n这是我下载网址时得到的脚本:
\n# script version 0.11\n# author: jogerj\n\n\nfunction processWishUrl($wishUrl) {\n # check validity\n if ($wishUrl -match "https:\\/\\/webstatic") {\n if ($wishUrl -match "hk4e_global") {\n $checkUrl = $wishUrl -replace "https:\\/\\/webstatic.+html\\?", "https://hk4e-api-os.mihoyo.com/event/gacha_info/api/getGachaLog?"\n } else {\n $checkUrl = $wishUrl -replace "https:\\/\\/webstatic.+html\\?", "https://hk4e-api.mihoyo.com/event/gacha_info/api/getGachaLog?"\n }\n $urlResponseMessage = Invoke-RestMethod -URI $checkUrl | % {$_.message}\n } else {\n $urlResponseMessage = Invoke-RestMethod -URI $wishUrl | % {$_.message}\n }\n if ($urlResponseMessage -ne "OK") {\n Write-Host "Link found is expired/invalid! Open Wish History again to fetch a new link" -ForegroundColor Yellow\n return $False\n }\n # OK\n Write-Host $wishURL\n Set-Clipboard -Value $wishURL\n Write-Host "Link copied to clipboard, paste it back to paimon.moe" -ForegroundColor Green\n return $True\n}\n\n$logPathGlobal = [System.Environment]::ExpandEnvironmentVariables("%userprofile%\\AppData\\LocalLow\\miHoYo\\Genshin Impact\\output_log.txt");\n$logPathChina = [System.Environment]::ExpandEnvironmentVariables("%userprofile%\\AppData\\LocalLow\\miHoYo\\$([char]0x539f)$([char]0x795e)\\output_log.txt");\n$globalExists = Test-Path $logPathGlobal;\n$cnExists = Test-Path $logPathChina;\n\nif ($globalExists) {\n if ($cnExists) {\n # both exists, pick newest one\n if ((Get-Item $logPathGlobal).LastWriteTime -ge (Get-Item $logPathChina).LastWriteTime) {\n $logPath = $logPathGlobal;\n } else {\n $logPath = $logPathChina;\n }\n } else {\n $logPath = $logPathGlobal;\n } \n} else {\n if ($cnExists) {\n $logPath = $logPathChina;\n } else {\n Write-Host "Cannot find Genshin Impact log file! Make sure to run Genshin Impact and open the wish history at least once!" -ForegroundColor Red\n if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { \n Write-Host "Do you want to try to run the script as Administrator? Press [ENTER] to continue, or any key to cancel."\n $keyInput = [Console]::ReadKey($true).Key\n if ($keyInput -ne "13") {\n return\n }\n $arguments = "& \'" +$myinvocation.mycommand.definition + "\'"\n Start-Process powershell -Verb runAs -ArgumentList "-noexit $arguments $reg"\n break\n } \n return\n }\n}\n\n\n$logs = Get-Content -Path $logPath\n$regexPattern = "(?m).:/.+(GenshinImpact_Data|YuanShen_Data)"\n$logMatch = $logs -match $regexPattern\n\nif (-Not $logMatch) {\n Write-Host "Cannot find Genshin Impact path in log file! Make sure to run Genshin Impact and open the wish history at least once!" -ForegroundColor Red\n pause\n return\n}\n\n$gameDataPath = ($logMatch | Select -Last 1) -match $regexPattern\n$gameDataPath = Resolve-Path $Matches[0]\n\n# Method 1\n$cachePath = "$gameDataPath\\\\webCaches\\\\2.15.0.0\\\\Cache\\\\Cache_Data\\\\data_2"\nif (Test-Path $cachePath) {\n $tmpFile = "$env:TEMP/ch_data_2"\n Copy-Item $cachePath -Destination $tmpFile\n $content = Get-Content -Encoding UTF8 -Raw $tmpfile\n $splitted = $content -split "1/0/" | Select -Last 1\n $found = $splitted -match "https.+?game_biz=hk4e_(global|cn)"\n Remove-Item $tmpFile\n if ($found) {\n $wishUrl = $Matches[0]\n if (processWishUrl $wishUrl) {\n return\n }\n }\n Write-Host "Retrying using fallback method..." -ForegroundColor Red\n}\n\n# Method 2 (Credits to PrimeCicada for finding this path)\n$cachePath = "$gameDataPath\\\\webCaches\\\\2.15.0.0\\\\Service Worker\\\\CacheStorage\\\\f944a42103e2b9f8d6ee266c44da97452cde8a7c"\nif (Test-Path $cachePath) {\n Write-Host "Using Fallback Method (SW)" -ForegroundColor Yellow\n $cacheFolder = Get-ChildItem $cachePath | sort -Property LastWriteTime -Descending | select -First 1\n $content = Get-Content "$($cacheFolder.FullName)\\\\00d9a0f4d2a83ce0_0" | Select-String -Pattern "https.*#/log"\n $logEntry = $content[0].ToString()\n $wishUrl = $logEntry -match "https.*#/log"\n if ($wishUrl) {\n $wishUrl = $Matches[0]\n if (processWishUrl $wishUrl) {\n return\n }\n \n }\n Write-Host "Fallback Method (SW) failed to find wish history URL! Retrying using second fallback method..." -ForegroundColor Red\n}\n\n# Method 3\nWrite-Host "Using Fallback method (CCV)" -ForegroundColor Yellow\n$cachePath = "$gameDataPath\\\\webCaches\\\\2.15.0.0\\\\Cache\\\\Cache_Data"\n$tempPath = mkdir "$env:TEMP\\\\paimonmoe" -Force\n# downloads ChromeCacheView\nInvoke-WebRequest -Uri "https://www.nirsoft.net/utils/chromecacheview.zip" -OutFile "$tempPath\\\\chromecacheview.zip"\nExpand-Archive "$tempPath\\\\chromecacheview.zip" -DestinationPath "$tempPath\\\\chromecacheviewer" -Force\n& "$tempPath\\chromecacheviewer\\\\ChromeCacheView.exe" -folder $cachePath /scomma "$tempPath\\\\cache_data.csv"\n# processing cache takes a while\nwhile (!(Test-Path "$tempPath\\\\cache_data.csv")) { Start-Sleep 1 }\n$wishLog = Import-Csv "$tempPath\\\\cache_data.csv" | select "Last Accessed", "URL" | ? URL -like "*event/gacha_info/api/getGachaLog*" | Sort-Object -Descending { $_."Last Accessed" -as [datetime] } | select -first 1\n$wishUrl = $wishLog | % {$_.URL.Substring(4)}\n# clean up \nRemove-Item -Recurse -Force $tempPath\nif ($wishUrl) {\n if (processWishUrl $wishUrl) {\n return\n }\n}\n\nWrite-Host "Link not found! Make sure Genshin Impact is installed and open Wish History page at least once." -ForegroundColor Red\npause\nRun Code Online (Sandbox Code Playgroud)\n