1. 程式人生 > >給伺服器下載補丁及安裝補丁

給伺服器下載補丁及安裝補丁

近期伺服器被管理員掃到存在很多漏洞。
	1,https://support.microsoft.com/en-us/help/4299875/june-2018-updates-for-microsoft-office
	2,https://www.microsoft.com/en-us/download/
下載對應的版本,拷貝到伺服器上進行安裝,之後重啟即可。

部分系統補丁可通過KB號或者相關的條件在以下連結中查詢到下載地址,其中可通過網站提供的API進行呼叫資料,進行個性化篩選。

https://portal.msrc.microsoft.com/zh-cn/security-guidance
API:https://portal.msrc.microsoft.com/api/security-guidance/zh-cn/search
Method:POST
Parameter:
{
	"familyIds": [],
	"productIds": [],
	"severityIds": [],
	"impactIds": [],
	"pageNumber": 1,
	"pageSize": 100,
	"includeCveNumber": true,
	"includeSeverity": false,
	"includeImpact": false,
	"orderBy": "publishedDate",
	"orderByMonthly": "releaseDate",
	"isDescending": true,
	"isDescendingMonthly": true,
	"queryText": "4022198",
	"isSearch": true,
	"filterText": "",
	"fromPublishedDate": "10/10/2018",
	"toPublishedDate": "11/29/2018"
}

其中queryText 輸入要查詢的名稱
結果返回:

{
	"count": 2,
	"details": [{
		"publishedDate": "2018-08-14T07:00:00",
		"cveNumber": "CVE-2018-8378",
		"cveUrl": "https://portal.msrc.microsoft.com/zh-CN/security-guidance/advisory/CVE-2018-8378",
		"name": "Microsoft Office 2010 Service Pack 2 (32-bit editions)",
		"platform": null,
		"family": "Microsoft Office",
		"impactId": null,
		"impact": null,
		"severityId": null,
		"severity": null,
		"knowledgeBaseId": null,
		"knowledgeBaseUrl": null,
		"monthlyKnowledgeBaseId": null,
		"monthlyKnowledgeBaseUrl": null,
		"downloadUrl": null,
		"downloadTitle": null,
		"monthlyDownloadUrl": null,
		"monthlyDownloadTitle": null,
		"articleTitle1": "3213636",
		"articleUrl1": "https://support.microsoft.com/kb/3213636",
		"downloadTitle1": "Security Update",
		"downloadUrl1": "https://www.microsoft.com/downloads/details.aspx?familyid=a5d6ea30-088e-44cd-b1a1-08355a52c3c6",
		"doesRowOneHaveAtLeastOneArticleOrUrl": true,
		"articleTitle2": "4022198",
		"articleUrl2": "https://support.microsoft.com/kb/4022198",
		"downloadTitle2": "Security Update",
		"downloadUrl2": "https://www.microsoft.com/downloads/details.aspx?familyid=9b61fde4-65e2-4bf7-aeff-2ff6159729ac",
		"doesRowTwoHaveAtLeastOneArticleOrUrl": true,
		"articleTitle3": "",
		"articleUrl3": null,
		"downloadTitle3": "",
		"downloadUrl3": null,
		"doesRowThreeHaveAtLeastOneArticleOrUrl": false,
		"articleTitle4": "",
		"articleUrl4": null,
		"downloadTitle4": "",
		"downloadUrl4": null,
		"doesRowFourHaveAtLeastOneArticleOrUrl": false,
		"countOfRowsWithAtLeastOneArticleOrUrl": 2
	}, {
		"publishedDate": "2018-08-14T07:00:00",
		"cveNumber": "CVE-2018-8378",
		"cveUrl": "https://portal.msrc.microsoft.com/zh-CN/security-guidance/advisory/CVE-2018-8378",
		"name": "Microsoft Office 2010 Service Pack 2 (64-bit editions)",
		"platform": null,
		"family": "Microsoft Office",
		"impactId": null,
		"impact": null,
		"severityId": null,
		"severity": null,
		"knowledgeBaseId": null,
		"knowledgeBaseUrl": null,
		"monthlyKnowledgeBaseId": null,
		"monthlyKnowledgeBaseUrl": null,
		"downloadUrl": null,
		"downloadTitle": null,
		"monthlyDownloadUrl": null,
		"monthlyDownloadTitle": null,
		"articleTitle1": "3213636",
		"articleUrl1": "https://support.microsoft.com/kb/3213636",
		"downloadTitle1": "Security Update",
		"downloadUrl1": "https://www.microsoft.com/downloads/details.aspx?familyid=05c673c6-c7fc-4da2-a8c4-245ba28a8774",
		"doesRowOneHaveAtLeastOneArticleOrUrl": true,
		"articleTitle2": "4022198",
		"articleUrl2": "https://support.microsoft.com/kb/4022198",
		"downloadTitle2": "Security Update",
		"downloadUrl2": "https://www.microsoft.com/downloads/details.aspx?familyid=6e9bff4f-0cb2-4c73-82b1-dd624d69a5e2",
		"doesRowTwoHaveAtLeastOneArticleOrUrl": true,
		"articleTitle3": "",
		"articleUrl3": null,
		"downloadTitle3": "",
		"downloadUrl3": null,
		"doesRowThreeHaveAtLeastOneArticleOrUrl": false,
		"articleTitle4": "",
		"articleUrl4": null,
		"downloadTitle4": "",
		"downloadUrl4": null,
		"doesRowFourHaveAtLeastOneArticleOrUrl": false,
		"countOfRowsWithAtLeastOneArticleOrUrl": 2
	}]
}