syne0 / osprey

Powershell Based tool for gathering information related to O365 intrusions and potential Breaches
https://cybercorner.tech/osprey
MIT License
5 stars 1 forks source link

Occasional errors with Entra Device function and export broken #31

Closed syne0 closed 2 weeks ago

syne0 commented 3 weeks ago

Not super reliable, occasionally runs into some kind of error, assuming it's because of formatting and my lack of error handling built into the function. It's fine if some errors occour, but the output of those errors needs to stay out of the console output and just get logged. image

syne0 commented 3 weeks ago

Also the export is broken now? Again it was working completely fine at one point. Wonder if the two are related. image

syne0 commented 3 weeks ago

Peep that blank Enrollment type, I bet that's going to cause issues in the future...

syne0 commented 3 weeks ago

Bigger picture of the console output, weird that it keeps saying 'No Data Found'? Pretty sure there is supposed to be a full entra device output as well, not just the simple one... image

syne0 commented 2 weeks ago

Bigger picture of the console output, weird that it keeps saying 'No Data Found'? Pretty sure there is supposed to be a full entra device output as well, not just the simple one... image

This was due to the if ($investigatelog -ne $null) failing as it's an array so it technically doesnt return null. Fixed by using $investigatelog.count.

Not super reliable, occasionally runs into some kind of error, assuming it's because of formatting and my lack of error handling built into the function. It's fine if some errors occour, but the output of those errors needs to stay out of the console output and just get logged. image

Would you believe this happened because I put $DeviceLog =+ $device1 instead of $DeviceLog += $device1 ???? omfg.

Still working on fixing output.

syne0 commented 2 weeks ago

Output looks normal so guess in fixing the other issues that was fixed as well.