Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhanded exception #14

Closed
m00dy- opened this issue Oct 21, 2020 · 8 comments
Closed

Unhanded exception #14

m00dy- opened this issue Oct 21, 2020 · 8 comments

Comments

@m00dy-
Copy link

m00dy- commented Oct 21, 2020

Hello,
any idea about the cause of this error:
PS C:> .\DefenderCheck.exe C:\Temp\mimikatz.exe
Target file size: 1234696 bytes
Analyzing...

[!] Identified end of bad bytes at offset 0x2 in the original file

Unhandled Exception: System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at DefenderCheck.Program.HalfSplitter(Byte[] originalarray, Int32 lastgood)
at DefenderCheck.Program.Main(String[] args)

@matterpreter
Copy link
Owner

Try adding C:\Temp as and exemption in Defender.

@jsarkisian
Copy link

Having a similar issue:

image

I tried adding C:\Temp as an exception but am still getting the above error. Thanks!

@morzen
Copy link

morzen commented Nov 26, 2020

how did you even manage to get the .exe file cause I can't find it personally?

@jsarkisian
Copy link

You have to compile it using Visual Basic or MSBuild. Easier than it sounds, just import the SLN file to VB and click build and you’ll get an EXE.

@sp00ks-git
Copy link

You have to compile it using Visual Basic or MSBuild. Easier than it sounds, just import the SLN file to VB and click build and you’ll get an EXE.

Visual Studio not Visual Basic

@A-Hawary
Copy link

Hello,
any idea about the cause of this error:
PS C:> .\DefenderCheck.exe C:\Temp\mimikatz.exe
Target file size: 1234696 bytes
Analyzing...

[!] Identified end of bad bytes at offset 0x2 in the original file

Unhandled Exception: System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
at DefenderCheck.Program.HalfSplitter(Byte[] originalarray, Int32 lastgood)
at DefenderCheck.Program.Main(String[] args)

Note: Defender must be enabled on your system, but the realtime protection and automatic sample submission features should be disabled.
Exit any other AV

@A-Hawary
Copy link

for Compiling
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe "Project Path/DefenderCheck.csproj"

@matterpreter
Copy link
Owner

Seems like this issue has moved from an issue with Defender to issues with compiling DefenderCheck. I'm going to close this issue as @m00dy- has not responded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants