aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Invoke-SMBExec.ps18
-rw-r--r--Invoke-TheHash.ps12
-rw-r--r--Invoke-TheHash.psd1bin4802 -> 2400 bytes
-rw-r--r--Invoke-WMIExec.ps12
4 files changed, 6 insertions, 6 deletions
diff --git a/Invoke-SMBExec.ps1 b/Invoke-SMBExec.ps1
index 3203cde..a293d77 100644
--- a/Invoke-SMBExec.ps1
+++ b/Invoke-SMBExec.ps1
@@ -1,4 +1,4 @@
-function Invoke-SMBExec
+function Invoke-SMBExec
{
<#
.SYNOPSIS
@@ -758,7 +758,7 @@ function Get-PacketSCMCreateServiceW()
$packet_SCMCreateServiceW.Add("SCMCreateServiceW_DisplayName",$packet_service)
$packet_SCMCreateServiceW.Add("SCMCreateServiceW_AccessMask",[Byte[]](0xff,0x01,0x0f,0x00))
$packet_SCMCreateServiceW.Add("SCMCreateServiceW_ServiceType",[Byte[]](0x10,0x00,0x00,0x00))
- $packet_SCMCreateServiceW.Add("SCMCreateServiceW_ServiceStartType",[Byte[]](0x02,0x00,0x00,0x00))
+ $packet_SCMCreateServiceW.Add("SCMCreateServiceW_ServiceStartType",[Byte[]](0x03,0x00,0x00,0x00))
$packet_SCMCreateServiceW.Add("SCMCreateServiceW_ServiceErrorControl",[Byte[]](0x00,0x00,0x00,0x00))
$packet_SCMCreateServiceW.Add("SCMCreateServiceW_BinaryPathName_MaxCount",$packet_command_length)
$packet_SCMCreateServiceW.Add("SCMCreateServiceW_BinaryPathName_Offset",[Byte[]](0x00,0x00,0x00,0x00))
@@ -1430,7 +1430,7 @@ if($SMB_client.Connected)
}
elseif([System.BitConverter]::ToString($SMB_client_receive[108..111]) -eq '05-00-00-00')
{
- Write-Output "$output_username is not a local administrator on $Target"
+ Write-Output "$output_username is not a local administrator or does not have required privilege on $Target"
$SMBExec_failed = $true
}
else
@@ -2142,7 +2142,7 @@ if($SMB_client.Connected)
}
elseif([System.BitConverter]::ToString($SMB_client_receive[128..131]) -eq '05-00-00-00')
{
- Write-Output "$output_username is not a local administrator on $Target"
+ Write-Output "$output_username is not a local administrator or does not have required privilege on $Target"
$SMBExec_failed = $true
}
else
diff --git a/Invoke-TheHash.ps1 b/Invoke-TheHash.ps1
index 3a552b4..ce64c51 100644
--- a/Invoke-TheHash.ps1
+++ b/Invoke-TheHash.ps1
@@ -1,4 +1,4 @@
-function Invoke-TheHash
+function Invoke-TheHash
{
<#
.SYNOPSIS
diff --git a/Invoke-TheHash.psd1 b/Invoke-TheHash.psd1
index 5c33472..a5e209a 100644
--- a/Invoke-TheHash.psd1
+++ b/Invoke-TheHash.psd1
Binary files differ
diff --git a/Invoke-WMIExec.ps1 b/Invoke-WMIExec.ps1
index dc586d3..a1b6b0f 100644
--- a/Invoke-WMIExec.ps1
+++ b/Invoke-WMIExec.ps1
@@ -1,4 +1,4 @@
-function Invoke-WMIExec
+function Invoke-WMIExec
{
<#
.SYNOPSIS