代码拉取完成,页面将自动刷新
function Get-HexString
{
param([string] $fileName)
$fileBytes=[System.IO.File]::ReadAllBytes($PSScriptRoot.ToString()+$fileName)
return [System.BitConverter]::ToString($fileBytes)
}
function Get-ByteString
{
param([string] $fileName)
$fileBytes=[System.IO.File]::ReadAllBytes($PSScriptRoot.ToString()+$fileName)
return ($fileBytes)
}
$x86PayloadHex=Get-ByteString '\BuildOutput\x86Payload.dll'
$x86PayloadLen=$x86PayloadHex.Length
$x86PayloadHex=$x86PayloadHex -join ","
$x64PayloadHex=Get-ByteString '\BuildOutput\x64Payload.dll'
$x64PayloadLen=$x64PayloadHex.Length
$x64PayloadHex=$x64PayloadHex -join ","
$output86CFile=$PSScriptRoot.ToString()+"\x86Hider\DLLs_hex.cpp"
$output64CFile=$PSScriptRoot.ToString()+"\x64Hider\DLLs_hex.cpp"
"--------- Started Building x86DLLs script ---------"
New-Item $output86CFile -ItemType file -Force | Out-Null
'#include "stdafx.h"'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
'#include "..\Hide\DLLs_hex.h"'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
'BYTE tmpx86PayloadByteArr[]={'+($x86PayloadHex.Split("-") -join "")+'};'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
'BYTE *x86PayloadByteArr=tmpx86PayloadByteArr;'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
'int x86PayloadSize='+$x86PayloadLen+';'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
'BYTE *x64PayloadByteArr=tmpx86PayloadByteArr;'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
'int x64PayloadSize=x86PayloadSize;'|Out-File -Encoding utf8 -FilePath $output86CFile -Append
"--------- Started Building x64DLLs script ---------"
New-Item $output64CFile -ItemType file -Force | Out-Null
'#include "stdafx.h"'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'#include "..\Hide\DLLs_hex.h"'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'BYTE tmpx86PayloadByteArr[]={'+($x86PayloadHex.Split("-") -join "")+'};'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'BYTE *x86PayloadByteArr=tmpx86PayloadByteArr;'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'int x86PayloadSize='+$x86PayloadLen+';'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'BYTE tmpx64PayloadByteArr[]={'+($x64PayloadHex.Split("-") -join "")+'};'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'BYTE *x64PayloadByteArr=tmpx64PayloadByteArr;'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
'int x64PayloadSize='+$x64PayloadLen+';'|Out-File -Encoding utf8 -FilePath $output64CFile -Append
"--------- Finished Building-DLLs script ---------"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。