HunnicCyber / SharpSniper

Find specific users in active directory via their username and logon IP address
374 stars 55 forks source link

Unhandled Exception: System.ArgumentOutOfRangeException #5

Open ronnieflip opened 4 years ago

ronnieflip commented 4 years ago

Am constantly getting this error:

C:\>SharpSniper.exe bob administrator LwnP123@
SharpSniper.exe bob administrator LwnP123@

Unhandled Exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: i
   at System.Text.RegularExpressions.MatchCollection.get_Item(Int32 i)
   at SharpSniper.Program.Main(String[] args))
HunnicCyber commented 4 years ago

I believe this is due to the regular expression use to pull the IP address out of the event log returned.

Can you check with event viewer if there is actually an IP there, or if its i ipv6 or similar?