Hacking Articles Tips Tricks Videos Tutorials
470 subscribers
66.1K photos
15 videos
157 files
133K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Follower and Following interchanges due to logical error

Reported on Saturday, 14 March 2020Continue reading on Medium »
Read more...
Page Admin Disclosure through edit history when Group is paused.

Reported: Wednesday, 24 March 2021Continue reading on Medium »
Read more...
Insecure Deserialization: It’s super hard! Or is it?

An often misunderstood vulnerability finally unravelledContinue reading on InfoSec Write-ups »
Read more...
Complex OPEN REDIRECT Exploitation

Hi readers,
Read more...
Pentesting ISP 101 | How I hacked & fixed My ISP

This blog is about the misconfiguration issue in the ISP I was using. While working on Shodan, I discovered that ISP has left WiFi…
Read more...
PowerShell module for Office 365 and Azure AD log collection
Module description
The DFIR-O365RC PowerShell (https://www.kitploit.com/search/label/PowerShell) module is a set of functions that allow the DFIR analyst to collect logs relevant for Office 365 Business Email Compromise investigations. The logs are generated in JSON format and retrieved from two main data sources: Office 365 Unified Audit Logs (https://docs.microsoft.com/en-us/microsoft-365/compliance/search-the-audit-log-in-security-and-compliance?view=o365-worldwide#search-the-audit-log). Azure AD sign-ins logs (https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/concept-sign-ins) and audit logs (https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/concept-audit-logs). The two data sources can be queried from different endpoints: Data source / Endpoint History Performance Scope Pre-requisites (OS or Azure) Unified Audit Logs / Exchange Online PowerShell (https://docs.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog?view=exchange-ps) 90 days Poor All Office 365 logs (Azure AD included) None Unified Audit Logs / Office 365 (https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-apis-overview)Management (https://www.kitploit.com/search/label/Management) API 7 days Good All Office 365 logs (Azure AD included) Azure App registration Azure AD Logs / Azure AD PowerShell Preview (https://docs.microsoft.com/en-us/azure/active-directory/reports-monitoring/reference-powershell-reporting) 30 days Good Azure AD sign-ins and audit events only Windows OS only Azure AD Logs / MS Graph API (https://docs.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0) 30 days Good Azure AD sign-ins and audit events only None DFIR-O365RC is a forensic tool, its aim is not to monitor in real time your Office 365 infrastructure: Please use the Office 365 Management API if you want to analyze data in real time with a SIEM. DFIR-O365RC will fetch data from: Azure AD Logs using the MS Graph API because performance (https://www.kitploit.com/search/label/Performance) is good, history is 30 days and it works on PowerShell Core. Unified Audit Logs using Exchange online PowerShell despite poor performance, history is 90 days and it works on PowerShell Core. In case you are also investigating other Azure resources (IaaS, PaaS...) DFIR-O365RC can also fetch data from Azure Activity logs (https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log) using the Azure Monitor RESTAPI (https://docs.microsoft.com/en-us/rest/api/monitor/). History is 90 days and it works on PowerShell Core. As a result, DFIR-O365RC works also on Linux or Mac, as long as you have PowerShell Core and a browser in order to use device login.
Installation and pre-requisites
Clone the DFIR-O365RC repository. The tool works on PowerShell Desktop and PowerShell Core. DFIR-O365 uses Jason Thompson's MSAL.PS (https://github.com/AzureAD/MSAL.PS) and Boe Prox's PoshRSJob (https://github.com/proxb/PoshRSJob) modules. To install them run the following commands: Install-Module -Name MSAL.PS -RequiredVersion '4.21.0.1'
Install-Module -Name PoshRSJob -RequiredVersion '1.7.4.4'
If MSAL.PS (https://github.com/AzureAD/MSAL.PS) module installation fails with the following message: WARNING: The specified module ‘MSAL.PS’ with PowerShellGetFormatVersion ‘2.0’ is not supported by the current version of PowerShellGet. Get the latest version of the PowerShellGet module to install this module, ‘MSAL.PS’.
Update PowerShellGet with the following commands: Install-PackageProvider Nuget -Force
Install-Module -Name PowerShellGet -Force
Once both modules are installed, launch a PowerShell prompt and locate your Powershell modules path with the following command: PS> $env:PSModulePath

___________________________
@hacking_Attack
@Hacking_Video