Skip to content

HXSecurity/DongTai-SDK-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DongTai-SDK-Python

license Apache-2.0 GitHub stars GitHub forks GitHub Contributors

CI Github Version Release downloads

Quick start

You need a config file

config.json

{
    "DongTai":{
        "token":"your token",
        "url":"http://127.0.0.1:90"
    }
}

How to use:

from dongtai_sdk.DongTai import DongTai
dongTaiSdk = DongTai("config.json")

Support function (Continuous updating)

Project

dongTaiSdk.GetProjectList(page,pageSize,name=None)
dongTaiSdk.GetProjectVerList(projectId)
dongTaiSdk.AddProjectVersion(projectId,verName,description,isEdit=True)
dongTaiSdk.SearchProject(projectId)
dongTaiSdk.DeleteProject(projectId)
dongTaiSdk.UpdateProjectVersion(projectId,versionName,versionId,description,currentVersion=1,isEdit=True)
dongTaiSdk.GetProjectDetail(projectId)
dongTaiSdk.GetProjectAgentList(projectId)

Agent (Completed)

dongTaiSdk.DeleteAgent(agentId)
dongTaiSdk.StartAgent(agentId)
dongTaiSdk.StopAgent(agentId)
dongTaiSdk.ModifiedAgentAlias(agentId,alias)
dongTaiSdk.GetAgentDetail(agentId)
dongTaiSdk.GetAgentList(page=1,pageSize=50,projectName=None,state=None,token=None)

Sca (Completed)

dongTaiSdk.GetScaDetail(scaId)
dongTaiSdk.GetScaList(page=1,pageSize=50,keyword=None,language=None,level=None,order=None,projectId=None,projectName=None,versionId=None)
dongTaiSdk.GetScaSummary(page=1,pageSize=50,keyword=None,language=None,level=None,order=None,projectId=None,projectName=None,versionId=None)

Vuln

dongTaiSdk.GetVulnSummary(projectId=None,language=None,level=None,order=None,projectName=None,status=None,type=None,url=None,versionId=None,statusId=None)
dongTaiSdk.GetVulnDetail(vulnId)