添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
# 使用FromBase64String方法将Base64字符串转换为字节数组 $bytes = [System.Convert]::FromBase64String($base64) # 使用Text.Encoding类中的GetString方法将字节数组转换为文本字符串 $text = [System.Text.Encoding]::UTF8.GetString($bytes) # 输出文本字符串 Write-Output $text $url = "https%3A%2F%2Fred.ghostwolflab.com%2Fsearch%3Fq%3Dpowershell" # 使用UrlDecode方法将URL字符串转换为正常字符串 $normal = [System.Web.HttpUtility]::UrlDecode($url) # 输出正常字符串 Write-Output $normal if ($char -ge 'A' -and $char -le 'Z') { # 如果字符在A-M之间,替换为其后面第13个字母 if ($char -ge 'A' -and $char -le 'M') { $rot13 = $rot13.Replace($char, char) # 如果字符在N-Z之间,替换为其前面第13个字母 else { $rot13 = $rot13.Replace($char, char) # 如果字符是小写字母 if ($char -ge 'a' -and $char -le 'z') { # 如果字符在a-m之间,替换为其后面第13个字母 if ($char -ge 'a' -and $char -le 'm') { $rot13 = $rot13.Replace($char, char) # 如果字符在n-z之间,替换为其前面第13个字母 else { $rot13 = $rot13.Replace($char, char) # 输出解码后的字符串 Write-Output $rot13