本帖最后由 zghwelcome 于 2019-7-25 09:26 编辑
Local $sFile,$open,$sReadBinIf $cmdline[0] = 0 Then Exit(1)
$sFile = $cmdline[1]
If Not StringRegExp($sFile,'(?i)\.exe$',0) Then Exit(2)
$open = FileOpen($sFile,16)
$sReadBin = FileRead($open)
FileClose($open)
$sReadBin = StringReplace($sReadBin,'526172211A07','520072211A07')
$sReadBin = StringReplace($sReadBin,'807A0161','807A0100')
$open = FileOpen(StringTrimRight($sFile,4) & '_已处理.exe',18)
FileWrite($open,$sReadBin)
FileClose($open)
MsgBox(512,'','处理完成!')
VBS改来的,处理后好像文件损坏 |