# json collected with the 'playbook/recon_netdbio_ipranges_from_org-input.ipynb'
# uncomment the line 'print(org_data)' in the function 'def save_ipranges_to_csv(org_name):'
| jq -r .results[].url
| jq -r .results[].asns[]
| jq -r '.results[] | [organisation, .netwwork.ipv4]'
| jq -r .results[].organisation
o365
# display exchange operations on Calendar, Inbox, Drafts
cat o365.json | jq -r '. | select(.Item.Attachments != null) | [.CreationTime,.Workload,.UserId,.Item.Attachments,.Item.ParentFolder.Path] | @csv'
# display resource access from sing-ins logs for the source IP 1.2.3.4
cat NonInteractiveSignIns_2023-10-02.json | jq -r '.[] | select(.ipAddress=="1.2.3.4") | [.createdDateTime,.userPrincipalName,.appDisplayName,.ipAddress,.clientAppUsed,.userAgent,.resourceDisplayName,.resourceTenantId,.authenticationRequirement] | @csv'