[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文本处理] 用什么方法给bat文件加密,别人看不到代码又能正常运行

RT
有个老兄的一段加密不错,没联系上,参考如下:运行批处理文件需要输入密码。
  1. @echo off  & cd /d "%~dp0"
  2. powershell "[ScriptBlock]::create((gc '%~0'|select -skip 3|out-string)).invoke()"&pause&exit
  3. if($PSVersionTable.PSVersion.Major -lt 3){
  4. Write-Host 'PS 版本太低,若运行不正常则先升级PS' -fore red;
  5. cmd /c Pause`&exit
  6. }
  7. $file = 'C:\Users\Busuanzi\Documents\论坛\test\提取文字\1.txt'; # 要处理的文件
  8. $find = 'C:\Users\Busuanzi\Documents\论坛\test\提取文字\2.txt'; # 保存结果文件
  9. $searchWord = 'Proofs 30 / 30,1.0';  #查找字符串
  10. iex ([Text.Encoding]::GetEncoding(1200).GetString([convert]::FromBase64String('CQBUAHIAeQAgAHsADQAKAAkACQBBAGQAZAAtAFQAeQBwAGUAIAAtAEEAcwBzAGUAbQBiAGwAeQBOAGEAbQBlACAATQBpAGMAcgBvAHMAbwBmAHQALgBWAGkAcwB1AGEAbABCAGEAcwBpAGMAOwANAAoACQAJACQAcABhAHMAcwB3AG8AcgBkAD0AWwBNAGkAYwByAG8AcwBvAGYAdAAuAFYAaQBzAHUAYQBsAEIAYQBzAGkAYwAuAEkAbgB0AGUAcgBhAGMAdABpAG8AbgBdADoAOgBJAG4AcAB1AHQAQgBvAHgAKAAnAChXC05il5OPZVHGWwF4JwAsACcAxlsBeJd641MnACwAJwBQAGEAcwBzAHcAbwByAGQAJwApAC4AVAByAGkAbQAoACkAOwANAAoACQAJACQAawBlAHkAPQBbAGIAeQB0AGUAWwBdAF0AWwBjAGgAYQByAFsAXQBdACgAJABwAGEAcwBzAHcAbwByAGQAKwAnADAAaABmADEAWgBIAGoAWwBOAHkAPwBDAFIARABsACsAcgAmAHoAVABQAE8APQB9ADwAbwBMAEIAXgA1AHEAUwA2AHwASgAyAFcASwBwAG0AUQB0AC4AdwBHAF0ALAA+ADkANwB7ADQASQAiAF8AQQAnACkALgBTAHUAYgBTAHQAcgBpAG4AZwAoADAALAAgADEANgApADsADQAKAAkACQAkAFMAZQBjAFMAdAByAGkAbgBnAD0AJwA3ADYANAA5ADIAZAAxADEAMQA2ADcANAAzAGYAMAA0ADIAMwA0ADEAMwBiADEANgAwADUAMABhADUAMwA0ADUATQBnAEIAOABBAEcATQBBAE4AZwBCAG8AQQBEAFkAQQBRAHcAQgByAEEARwBvAEEAYgB3AEIAaABBAEQAQQBBAFMAUQBCAHMAQQBIAGcAQQBaAEEAQgAwAEEARQB3AEEAVwBnAEIARgBBAEcAVQBBAE4AQQBCAEYAQQBGAEUAQQBQAFEAQQA5AEEASAB3AEEATgB3AEEAeABBAEcAUQBBAE0AdwBCAGsAQQBHAE0AQQBaAGcAQgBsAEEARwBZAEEATgB3AEIAagBBAEQAVQBBAFoAQQBBADQAQQBEAGsAQQBOAFEAQQAzAEEARABZAEEAWQB3AEEAeQBBAEQAQQBBAE0AdwBBADUAQQBHAFEAQQBNAHcAQgBrAEEARABFAEEATgBBAEIAagBBAEQAUQBBAE4AZwBCAG0AQQBHAFUAQQBPAEEAQQAzAEEARwBNAEEA
复制代码

没有人知道吗

TOP

用Bat_To_Exe转换一下?bat能直接用文本打开嘛

TOP

我看到有很多批处理文件,可以执行,不过用编辑打开。里面就是一些乱码

TOP

返回列表