-
Notifications
You must be signed in to change notification settings - Fork 81
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
[Bug]: There is no data to export #83
Comments
Hi @Saiyato thanks for catching this! I appreciate it. This is a very rare error and it seems that only appears when monkey365 is placed in "Program Files". I believe that the issue comes from the PowerShell AST (Abstract Syntax Tree) class, but I'm still investigating the issue and I'll get back to you once I have an explanation. In the meantime, you can install monkey365 in a different path. Cheers, |
Hi @Saiyato, This is now fixed on dev branch. Cheers, |
Hi, Thanks for investigating, When I import the tool from a non-default directory it works, any of the default directories seem to yield the same result. I will have to retest with dev, I'll update as soon as I have had the time to thoroughly test. Thanks again! |
This issue has been automatically marked as stale because it has not had recent activity. We kindly ask you to check again if the issue you reported is still relevant in the current version of Monkey 365. If it is, update this issue with a comment, otherwise it will be automatically closed if no further activity occurs. Thank you for your contributions. |
This issue was closed because it has been inactive for 14 days since being marked as stale. If the issue is still relevant, feel free to re-open it or open a new one. |
What happened?
After installing the module on two machines, the Microsoft365 scanner produces no results. Since the environments I'm using it on do not have Azure subscriptions, I'm unable to comment there. The response of the script is always the same:
WARNING: [11:47:56:603] - [Invoke-M365Scanner] - There is no data to export - warning - {MACHINE-NAME] - AzureSubscriptionScanner
How to reproduce it
Steps to reproduce the behavior:
Invoke-Monkey365 @param -Verbose
Expected behavior
I would expect at least some results to show, but I see scripts getting loaded and executed, without any results to show for it. The exception logs are created, however empty (0KB).
Screenshots or Logs
PowerShell 7.4.0
PowerShell 5.1.22621.2506
full_log.txt
From where are you running Monkey365?
Please, complete the following information:
$PsVersionTable
]: 7.4.0 and 5.1.22621.2506Additional context
It happens on both my laptop and desktop. Running in PS5 gives me more log lines around what commands have been imported and executed. The end result is the same however -> There is no data to export. I have Security and Global Reader roles.
I could trace it back to
Invoke-M365Scanner.ps1
; the result of the collectors is null.The text was updated successfully, but these errors were encountered: