-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a948bd
commit 5aebc21
Showing
10 changed files
with
90 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,41 @@ | ||
# Define the URL of the RSS feed | ||
# Sentinel | ||
#$rssUrl = "https://t#echcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=MicrosoftSentinelBlog&size=20" | ||
# Defender for Cloud | ||
#$rssUrl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=MicrosoftDefenderCloudBlog&size=20' | ||
# mdti | ||
#$rssUrl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=DefenderThreatIntelligence&size=20' | ||
# sec copilot | ||
#$rssUrl = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=SecurityCopilotBlog&size=20" | ||
# iot | ||
#$rssUrl = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=MicrosoftDefenderIoTBlog&size=20" | ||
# entra ID | ||
#$rssurl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=6042109320470044639&board=Identity&size=20' | ||
# ca kenneth | ||
#$rssUrl = "https://www.vansurksum.com/category/conditional-access/feed/?posts_per_page=500" | ||
# chronlund | ||
#$rssUrl = 'https://danielchronlund.com/category/conditional-access/feed/?posts_per_page=500' | ||
# MDE | ||
#$rssurl = 'https://techcommunity.microsoft.com/gxcuf89792/rss/board?board.id=MicrosoftDefenderATPBlog&size=20' | ||
# EASM | ||
#$rssUrl = 'https://techcommunity.microsoft.com/gxcuf89792/rss/board?board.id=DefenderExternalAttackSurfaceMgmtBlog&size=20' | ||
# tvm | ||
#$rssUrl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=Vulnerability-Management&size=25' | ||
# xdr | ||
#$rssUrl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=MicrosoftThreatProtectionBlog&size=25' | ||
# Define an array of RSS URLs and their corresponding output file paths | ||
$rssFeeds = @( | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=MicrosoftSentinelBlog&size=20"; OutFile = "c:\temp\Sentinel_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=MicrosoftDefenderCloudBlog&size=20"; OutFile = "c:\temp\DefenderForCloud_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=DefenderThreatIntelligence&size=20"; OutFile = "c:\temp\MDTI_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=SecurityCopilotBlog&size=20"; OutFile = "c:\temp\SecCopilot_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=-1596964823266872039&board=MicrosoftDefenderIoTBlog&size=20"; OutFile = "c:\temp\IoT_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=6042109320470044639&board=Identity&size=20"; OutFile = "c:\temp\EntraID_rssdump.txt" }, | ||
@{ Url = "https://www.vansurksum.com/category/conditional-access/feed/?posts_per_page=500"; OutFile = "c:\temp\CAKenneth_rssdump.txt" }, | ||
@{ Url = "https://danielchronlund.com/category/conditional-access/feed/?posts_per_page=500"; OutFile = "c:\temp\Chronlund_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/gxcuf89792/rss/board?board.id=MicrosoftDefenderATPBlog&size=20"; OutFile = "c:\temp\MDE_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/gxcuf89792/rss/board?board.id=DefenderExternalAttackSurfaceMgmtBlog&size=20"; OutFile = "c:\temp\EASM_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=Vulnerability-Management&size=25"; OutFile = "c:\temp\TVM_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=MicrosoftThreatProtectionBlog&size=25"; OutFile = "c:\temp\XDR_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=MicrosoftDefenderforOffice365Blog&size=25"; OutFile = "c:\temp\MDO_rssdump.txt" }, | ||
@{ Url = "https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=MicrosoftSecurityandCompliance&size=40"; OutFile = "c:\temp\SecurityCompliance_rssdump.txt" } | ||
) | ||
|
||
# mdo | ||
#$rssUrl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=MicrosoftDefenderforOffice365Blog&size=25' | ||
# Iterate over each RSS feed in the array | ||
foreach ($feed in $rssFeeds) { | ||
$rssUrl = $feed.Url | ||
$outfile = $feed.OutFile | ||
|
||
# security and compliance | ||
$rssUrl = 'https://techcommunity.microsoft.com/plugins/custom/microsoft/o365/custom-blog-rss?tid=860249516929499341&board=MicrosoftSecurityandCompliance&size=40' | ||
# Fetch the RSS XML data | ||
$response = Invoke-WebRequest -Uri $rssUrl | ||
$rss = [xml]$response.Content | ||
|
||
# Iterate over each item in the RSS feed | ||
foreach ($item in $rss.rss.channel.item) { | ||
$title = $item.title | ||
$url = $item.link | ||
$pubdate = $item.pubDate | ||
|
||
# Create a markdown link for the RSS item | ||
$md = "- " + "[" + $title + "]" + "(" + $url + ")" | ||
|
||
$outfile = "c:\temp\rssdump.txt" | ||
# Fetch the RSS XML data | ||
$response = Invoke-WebRequest -Uri $rssUrl | ||
# Load XML from the response | ||
$rss = [xml]$response.Content | ||
# Iterate over each item in the RSS feed | ||
foreach ($item in $rss.rss.channel.item) { | ||
# Extract the title and link | ||
$title = $item.title | ||
$url = $item.link | ||
$pubdate = $item.pubDate | ||
|
||
# Print the title and URL | ||
#Write-Output "Title: $title" | ||
#Write-Output "URL: $url" | ||
#Write-Output "PubDate: $pubdate" | ||
|
||
$md = "- " + "[" + $title + "]" + "(" + $url + ")" | ||
$md | Out-File -FilePath $outfile -Append -Force | ||
# Output to the specific file for this RSS feed | ||
$md | Out-File -FilePath $outfile -Append -Force | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.