Minor changes to posh egressassess
parent
93fbbe20af
commit
9e0d7ee869
|
@ -592,15 +592,15 @@ function Invoke-EgressAssess
|
|||
{
|
||||
if ($Datatype -eq "ssn") {
|
||||
Generate-SSN
|
||||
$ICMPData = $AllSSN
|
||||
[string]$ICMPData = $AllSSN
|
||||
}
|
||||
elseif ($Datatype -eq "cc") {
|
||||
Generate-CreditCards
|
||||
$ICMPData = $AllCC
|
||||
[string]$ICMPData = $AllCC
|
||||
}
|
||||
elseif ($Datatype -eq "names") {
|
||||
Generate-Names
|
||||
$ICMPData = $AllNames
|
||||
[string]$ICMPData = $AllNames
|
||||
}
|
||||
|
||||
elseif ($Datatype -notcontains "ssn" -or "cc" -or "names") {
|
||||
|
@ -667,7 +667,7 @@ function Invoke-EgressAssess
|
|||
Do {
|
||||
try {
|
||||
Write-Verbose "[*] Sending data via ICMP."
|
||||
$TotalPackets = [int]($ICMPData.length/$bufferSize)
|
||||
[int]$TotalPackets = ($ICMPData.length/$bufferSize)
|
||||
While ($ByteReader -le ($ICMPData.length - $bufferSize))
|
||||
{
|
||||
Write-Verbose "[*] Sending $PacketNumber of $TotalPackets packets"
|
||||
|
@ -690,9 +690,11 @@ function Invoke-EgressAssess
|
|||
Break
|
||||
}
|
||||
Write-Verbose "[*] Transfer complete!"
|
||||
$ByteReader = 0
|
||||
$PacketNumber = 0
|
||||
$loops--
|
||||
Write-Verbose "[*] $loops loops remaining.."
|
||||
} While ($loops -gt 0)
|
||||
} While ($Loops -gt 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue