aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Robertson <Kevin-Robertson@users.noreply.github.com>2019-08-04 23:43:58 -0400
committerKevin Robertson <Kevin-Robertson@users.noreply.github.com>2019-08-04 23:43:58 -0400
commit83be6b78a1855181b91a7a74249d09e12bc6ff40 (patch)
tree2d983a003153237787897260a7265cf60c55f4f8
parent3e37adea1114337b051a62013d43fdb1296ab0f8 (diff)
downloadInveigh-83be6b78a1855181b91a7a74249d09e12bc6ff40.tar.gz
Inveigh-83be6b78a1855181b91a7a74249d09e12bc6ff40.zip
DNS spoofer fixes
-rw-r--r--Inveigh.ps18
1 files changed, 4 insertions, 4 deletions
diff --git a/Inveigh.ps1 b/Inveigh.ps1
index 76f92dc..90c28bb 100644
--- a/Inveigh.ps1
+++ b/Inveigh.ps1
@@ -500,7 +500,7 @@ if($invalid_parameter)
throw
}
-$inveigh_version = "1.5"
+$inveigh_version = "1.501"
if(!$IP)
{
@@ -1701,7 +1701,7 @@ $shared_basic_functions_scriptblock =
{
param ([String]$QueryString,[String]$Type,[String]$mDNSType,[String]$Enabled)
- if($QueryString -contains ".")
+ if($QueryString -like "*.*")
{
[Array]$query_split = $QueryString.Split('.')
$query_host = $query_split[0]
@@ -4472,7 +4472,7 @@ $sniffer_scriptblock =
{
$DNS_query_string = Get-NameQueryString 12 $payload_bytes
$DNS_response_data = $payload_bytes[12..($DNS_query_string.Length + 13)]
- $UDP_length[0] = $DNS_response_data.Count + $DNS_response_data.Count + $SpooferIP.Length + 27
+ [Byte[]]$UDP_length = ([System.BitConverter]::GetBytes($DNS_response_data.Count + $DNS_response_data.Count + $SpooferIP.Length + 23))[1,0]
$DNS_response_type = "[+]"
$DNS_response_data += 0x00,0x01,0x00,0x01 +
@@ -4484,7 +4484,7 @@ $sniffer_scriptblock =
$DNS_response_packet = 0x00,0x35 +
$source_port[1,0] +
- $UDP_length[1,0] +
+ $UDP_length +
0x00,0x00 +
$payload_bytes[0,1] +
0x80,0x00,0x00,0x01,0x00,0x01,0x00,0x00,0x00,0x00 +