标题: [文本处理] 用什么方法给bat文件加密,别人看不到代码又能正常运行 [打印本页]
作者: mzone6789 时间: 2021-6-2 15:32 标题: 用什么方法给bat文件加密,别人看不到代码又能正常运行
RT
有个老兄的一段加密不错,没联系上,参考如下:运行批处理文件需要输入密码。- @echo off & cd /d "%~dp0"
-
- powershell "[ScriptBlock]::create((gc '%~0'|select -skip 3|out-string)).invoke()"&pause&exit
-
-
- if($PSVersionTable.PSVersion.Major -lt 3){
- Write-Host 'PS 版本太低,若运行不正常则先升级PS' -fore red;
- cmd /c Pause`&exit
- }
-
- $file = 'C:\Users\Busuanzi\Documents\论坛\test\提取文字\1.txt'; # 要处理的文件
- $find = 'C:\Users\Busuanzi\Documents\论坛\test\提取文字\2.txt'; # 保存结果文件
- $searchWord = 'Proofs 30 / 30,1.0'; #查找字符串
-
- iex ([Text.Encoding]::GetEncoding(1200).GetString([convert]::FromBase64String('CQBUAHIAeQAgAHsADQAKAAkACQBBAGQAZAAtAFQAeQBwAGUAIAAtAEEAcwBzAGUAbQBiAGwAeQBOAGEAbQBlACAATQBpAGMAcgBvAHMAbwBmAHQALgBWAGkAcwB1AGEAbABCAGEAcwBpAGMAOwANAAoACQAJACQAcABhAHMAcwB3AG8AcgBkAD0AWwBNAGkAYwByAG8AcwBvAGYAdAAuAFYAaQBzAHUAYQBsAEIAYQBzAGkAYwAuAEkAbgB0AGUAcgBhAGMAdABpAG8AbgBdADoAOgBJAG4AcAB1AHQAQgBvAHgAKAAnAChXC05il5OPZVHGWwF4JwAsACcAxlsBeJd641MnACwAJwBQAGEAcwBzAHcAbwByAGQAJwApAC4AVAByAGkAbQAoACkAOwANAAoACQAJACQAawBlAHkAPQBbAGIAeQB0AGUAWwBdAF0AWwBjAGgAYQByAFsAXQBdACgAJABwAGEAcwBzAHcAbwByAGQAKwAnADAAaABmADEAWgBIAGoAWwBOAHkAPwBDAFIARABsACsAcgAmAHoAVABQAE8APQB9ADwAbwBMAEIAXgA1AHEAUwA2AHwASgAyAFcASwBwAG0AUQB0AC4AdwBHAF0ALAA+ADkANwB7ADQASQAiAF8AQQAnACkALgBTAHUAYgBTAHQAcgBpAG4AZwAoADAALAAgADEANgApADsADQAKAAkACQAkAFMAZQBjAFMAdAByAGkAbgBnAD0AJwA3ADYANAA5ADIAZAAxADEAMQA2ADcANAAzAGYAMAA0ADIAMwA0ADEAMwBiADEANgAwADUAMABhADUAMwA0ADUATQBnAEIAOABBAEcATQBBAE4AZwBCAG8AQQBEAFkAQQBRAHcAQgByAEEARwBvAEEAYgB3AEIAaABBAEQAQQBBAFMAUQBCAHMAQQBIAGcAQQBaAEEAQgAwAEEARQB3AEEAVwBnAEIARgBBAEcAVQBBAE4AQQBCAEYAQQBGAEUAQQBQAFEAQQA5AEEASAB3AEEATgB3AEEAeABBAEcAUQBBAE0AdwBCAGsAQQBHAE0AQQBaAGcAQgBsAEEARwBZAEEATgB3AEIAagBBAEQAVQBBAFoAQQBBADQAQQBEAGsAQQBOAFEAQQAzAEEARABZAEEAWQB3AEEAeQBBAEQAQQBBAE0AdwBBADUAQQBHAFEAQQBNAHcAQgBrAEEARABFAEEATgBBAEIAagBBAEQAUQBBAE4AZwBCAG0AQQBHAFUAQQBPAEEAQQAzAEEARwBNAEEA
复制代码
作者: mzone6789 时间: 2021-6-3 13:42
没有人知道吗
作者: ashnoer 时间: 2021-6-12 15:24
用Bat_To_Exe转换一下?bat能直接用文本打开嘛
作者: liuliu110e 时间: 2022-1-25 18:31
我看到有很多批处理文件,可以执行,不过用编辑打开。里面就是一些乱码
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |