Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files12
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- AutoDetection.ts
- Configurations.ts
- ConfigureAdapter.ts
- DetectionResult.ts
- Management.ts
- ProfileService.ts
- PropertyGroups.ts
- SelectedTestCases.ts
- TestCaseResult.ts
- TestResults.ts
- TestSuites.ts
- index.ts
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/ProtocolTestManager/PTMService/PTMService/ClientApp/src/services/PropertyGroups.ts
TypeScript · 1,753 bytes// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
import { FetchService, RequestMethod } from '.'
import { PropertyGroupsActions, PropertyGroupsActionTypes } from '../actions/PropertyGroupsAction'
import { AppThunkAction } from '../store/configureStore'
export const PropertyGroupsDataSrv = {
getPropertyGroups: (): AppThunkAction<PropertyGroupsActionTypes> => async (dispatch, getState) => {
const state = getState()
const configurationId = state.configurations.selectedConfiguration?.Id
await FetchService({
url: `api/configuration/${configurationId}/property`,
method: RequestMethod.GET,
dispatch,
onRequest: PropertyGroupsActions.getPropertyGroupsAction_Request,
onComplete: PropertyGroupsActions.getPropertyGroupsAction_Success,
onError: PropertyGroupsActions.getPropertyGroupsAction_Failure
})
},
setPropertyGroups: (completeCallback: () => void): AppThunkAction<PropertyGroupsActionTypes> => async (dispatch, getState) => {
const state = getState()
if (!state.propertyGroups.updated) {
completeCallback()
return
}
const configurationId = state.configurations.selectedConfiguration?.Id
await FetchService({
url: `api/configuration/${configurationId}/property`,
method: RequestMethod.PUT,
dispatch,
body: JSON.stringify(state.propertyGroups.propertyGroups),
onRequest: PropertyGroupsActions.setPropertyGroupsAction_Request,
onComplete: PropertyGroupsActions.setPropertyGroupsAction_Success,
onError: PropertyGroupsActions.setPropertyGroupsAction_Failure,
onCompleteCallback: completeCallback
})
}
}