Device Code Phishing - Microsoft Azure
STEPS
1) Enter a powershell session in Kali (or use windows instead)
pwshOR
powershell.exe -ep bypass2) Use Az powershell module to generate a device code
az login --use-device-codeThis command will generate a LEGIT microsoft page with the code needed to authenticate
https://microsoft.com/devicelogin3) Send a spearphishing email to a target of your choice to make him click on the link and enter the code you generated earlier
4) When the user authenticates, press the number that shows you in the console to successfully authenticate to the Azure account
5) PROFIT!
Last updated