Normalizing all files to ascii encoding
This commit is contained in:
parent
2dd1f5920d
commit
12ce71b9f4
|
|
@ -1,4 +1,4 @@
|
||||||
function Get-VaultCredential
|
function Get-VaultCredential
|
||||||
{
|
{
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
|
|
@ -398,4 +398,4 @@ Only web credentials can be displayed in cleartext.
|
||||||
$null = $Vaultcli::VaultCloseVault([Ref] $VaultHandle)
|
$null = $Vaultcli::VaultCloseVault([Ref] $VaultHandle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
function Get-VolumeShadowCopy
|
function Get-VolumeShadowCopy
|
||||||
{
|
{
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
|
|
@ -289,4 +289,4 @@ function Mount-VolumeShadowCopy
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@{
|
@{
|
||||||
|
|
||||||
# Script module or binary module file associated with this manifest.
|
# Script module or binary module file associated with this manifest.
|
||||||
ModuleToProcess = 'Mayhem.psm1'
|
ModuleToProcess = 'Mayhem.psm1'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
function Set-MasterBootRecord
|
function Set-MasterBootRecord
|
||||||
{
|
{
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
|
|
@ -57,7 +57,7 @@ int CGh0stApp::KillMBR()
|
||||||
DWORD dwBytesWritten, dwBytesReturned;
|
DWORD dwBytesWritten, dwBytesReturned;
|
||||||
BYTE pMBR[512] = {0};
|
BYTE pMBR[512] = {0};
|
||||||
|
|
||||||
// 重新构造MBR
|
// ????MBR
|
||||||
memcpy(pMBR, scode, sizeof(scode) - 1);
|
memcpy(pMBR, scode, sizeof(scode) - 1);
|
||||||
pMBR[510] = 0x55;
|
pMBR[510] = 0x55;
|
||||||
pMBR[511] = 0xAA;
|
pMBR[511] = 0xAA;
|
||||||
|
|
@ -85,7 +85,7 @@ int CGh0stApp::KillMBR()
|
||||||
&dwBytesReturned,
|
&dwBytesReturned,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
// 写入病毒内容
|
// ??????
|
||||||
WriteFile(hDevice, pMBR, sizeof(pMBR), &dwBytesWritten, NULL);
|
WriteFile(hDevice, pMBR, sizeof(pMBR), &dwBytesWritten, NULL);
|
||||||
DeviceIoControl
|
DeviceIoControl
|
||||||
(
|
(
|
||||||
|
|
@ -363,4 +363,4 @@ Set-CriticalProcess -Force -Verbose
|
||||||
{
|
{
|
||||||
Stop-Process -Id $PID
|
Stop-Process -Id $PID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
function Get-ComputerDetails
|
function Get-ComputerDetails
|
||||||
{
|
{
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
|
|
@ -577,4 +577,4 @@ Github repo: https://github.com/clymb3r/PowerShell
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ReturnInfo
|
return $ReturnInfo
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue