All URIs are relative to https://localhost:50443
| Method | HTTP request | Description |
|---|---|---|
| execute_net_domain | POST /api/v1/beacons/{bid}/execute/net/domain | Get Domain |
| inject_net_computers | POST /api/v1/beacons/{bid}/inject/net/computers | List Specified Groups (Inject) |
| inject_net_dc_list | POST /api/v1/beacons/{bid}/inject/net/dclist | List Domain Controllers (Inject) |
| inject_net_domain_controllers | POST /api/v1/beacons/{bid}/inject/net/domainControllers | List Domain Controllers Hosts (Inject) |
| inject_net_domain_trusts | POST /api/v1/beacons/{bid}/inject/net/domainTrusts | List Domain Trusts (Inject) |
| inject_net_group | POST /api/v1/beacons/{bid}/inject/net/group | List Domain Groups (Inject) |
| inject_net_local_group | POST /api/v1/beacons/{bid}/inject/net/localGroup | List Local Groups (Inject) |
| inject_net_logons | POST /api/v1/beacons/{bid}/inject/net/logons | List Logged in Users (Inject) |
| inject_net_sessions | POST /api/v1/beacons/{bid}/inject/net/sessions | List Sessions (Inject) |
| inject_net_share | POST /api/v1/beacons/{bid}/inject/net/share | List Shares (Inject) |
| inject_net_time | POST /api/v1/beacons/{bid}/inject/net/time | Get System Time (Inject) |
| inject_net_user | POST /api/v1/beacons/{bid}/inject/net/user | List Users (Inject) |
| inject_net_user_detail | POST /api/v1/beacons/{bid}/inject/net/user/detail | Get User (Inject) |
| inject_net_view | POST /api/v1/beacons/{bid}/inject/net/view | List Domain Hosts (Inject) |
| inject_port_scan | POST /api/v1/beacons/{bid}/inject/portscan | Port Scan (Inject) |
| spawn_net_computers | POST /api/v1/beacons/{bid}/spawn/net/computers | List Specified Groups (Spawn) |
| spawn_net_dc_list | POST /api/v1/beacons/{bid}/spawn/net/dclist | List Domain Controllers (Spawn) |
| spawn_net_domain_controllers | POST /api/v1/beacons/{bid}/spawn/net/domainControllers | List Domain Controllers Hosts (Spawn) |
| spawn_net_domain_trusts | POST /api/v1/beacons/{bid}/spawn/net/domainTrusts | List Domain Trusts (Spawn) |
| spawn_net_group | POST /api/v1/beacons/{bid}/spawn/net/group | List Domain Groups (Spawn) |
| spawn_net_local_group | POST /api/v1/beacons/{bid}/spawn/net/localGroup | List Local Groups (Spawn) |
| spawn_net_logons | POST /api/v1/beacons/{bid}/spawn/net/logons | List Logged in Users (Spawn) |
| spawn_net_sessions | POST /api/v1/beacons/{bid}/spawn/net/sessions | List Sessions (Spawn) |
| spawn_net_share | POST /api/v1/beacons/{bid}/spawn/net/share | List Shares (Spawn) |
| spawn_net_time | POST /api/v1/beacons/{bid}/spawn/net/time | Get System Time (Spawn) |
| spawn_net_user | POST /api/v1/beacons/{bid}/spawn/net/user | List Users (Spawn) |
| spawn_net_user_detail | POST /api/v1/beacons/{bid}/spawn/net/user/detail | Get User (Spawn) |
| spawn_net_view | POST /api/v1/beacons/{bid}/spawn/net/view | List Domain Hosts (Spawn) |
| spawn_port_scan | POST /api/v1/beacons/{bid}/spawn/portscan | Port Scan (Spawn) |
AsyncCommandResponse execute_net_domain(bid)
Get Domain
Get active directory domain for current system.
Related CS Console Command: net domain
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.execute_net_domain(
bid='bid_example',
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str |
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_computers(bid, request_model)
List Specified Groups (Inject)
Inject the network and host enumeration DLL into the specified process to list hosts from the Domain Computers and Domain Controllers groups on the specified domain.
Related CS Console Command: net computers
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_computers(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetComputersInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetComputersInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_dc_list(bid, request_model)
List Domain Controllers (Inject)
Inject the network and host enumeration DLL into the specified process to list domain controllers for the specified domain.
Related CS Console Command: net dclist
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_dc_list(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetDcListInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetDcListInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_domain_controllers(bid, request_model)
List Domain Controllers Hosts (Inject)
Inject the network and host enumeration DLL into the specified process to list hosts from the Domain Controllers group on the specified domain.
Related CS Console Command: net domain_controllers
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_domain_controllers(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetDomainControllersInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetDomainControllersInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_domain_trusts(bid, request_model)
List Domain Trusts (Inject)
Inject the network and host enumeration DLL into the specified process to list domain trusts for the specified domain.
Related CS Console Command: net domain_trusts
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_domain_trusts(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetDomainTrustsInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetDomainTrustsInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_group(bid, request_model)
List Domain Groups (Inject)
Inject the network and host enumeration DLL into the specified process to enumerate groups on a domain controller.
Related CS Console Command: net group
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_group(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetGroupInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetGroupInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_local_group(bid, request_model)
List Local Groups (Inject)
Inject the network and host enumeration DLL into the specified process to enumerate local groups on a specific system.
Related CS Console Command: net localgroup
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_local_group(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetLocalGroupInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetLocalGroupInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_logons(bid, request_model)
List Logged in Users (Inject)
Inject the network and host enumeration DLL into the specified process to list users logged onto a target.
Related CS Console Command: net logons
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_logons(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetLogonsInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetLogonsInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_sessions(bid, request_model)
List Sessions (Inject)
Inject the network and host enumeration DLL into the specified process to list sessions on a target.
Related CS Console Command: net sessions
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_sessions(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetSessionsInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetSessionsInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_share(bid, request_model)
List Shares (Inject)
Inject the network and host enumeration DLL into the specified process to list shares on a target.
Related CS Console Command: net share
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_share(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetShareInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetShareInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_time(bid, request_model)
Get System Time (Inject)
Inject the network and host enumeration DLL into the specified process to show time for a target.
Related CS Console Command: net time
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_time(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetTimeInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetTimeInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_user(bid, request_model)
List Users (Inject)
Inject the network and host enumeration dll into the specified process to list users on a system.
Related CS Console Command: net user
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_user(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetUserInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetUserInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_user_detail(bid, request_model)
Get User (Inject)
Inject the network and host enumeration DLL into the specified process to get information about a user.
Related CS Console Command: net user
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_user_detail(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetUserDetailInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetUserDetailInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_net_view(bid, request_model)
List Domain Hosts (Inject)
Inject the network and host enumeration DLL into the specified process to list hosts on a domain.
Related CS Console Command: net view
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_net_view(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetViewInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetViewInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse inject_port_scan(bid, request_model)
Port Scan (Inject)
Inject a portscan DLL into the specified process to run a portscan against the specified hosts.
Related CS Console Command: portscan
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.inject_port_scan(
bid='bid_example',
request_model=cs_sdk_python.api_client.PortScanInjectDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | PortScanInjectDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_computers(bid, request_model)
List Specified Groups (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list hosts from the Domain Computers and Domain Controllers groups on the specified domain.
Related CS Console Command: net computers
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_computers(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetComputersDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetComputersDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_dc_list(bid, request_model)
List Domain Controllers (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list domain controllers for the specified domain.
Related CS Console Command: net dclist
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_dc_list(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetDcListDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetDcListDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_domain_controllers(bid, request_model)
List Domain Controllers Hosts (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list hosts from the Domain Controllers group on the specified domain.
Related CS Console Command: net domain_controllers
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_domain_controllers(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetDomainControllersDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetDomainControllersDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_domain_trusts(bid, request_model)
List Domain Trusts (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list domain trusts for the specified domain.
Related CS Console Command: net domain_trusts
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_domain_trusts(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetDomainTrustsDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetDomainTrustsDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_group(bid, request_model)
List Domain Groups (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to enumerate groups on a domain controller.
Related CS Console Command: net group
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_group(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetGroupDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetGroupDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_local_group(bid, request_model)
List Local Groups (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to enumerate local groups on a specific system.
Related CS Console Command: net localgroup
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_local_group(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetLocalGroupDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetLocalGroupDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_logons(bid, request_model)
List Logged in Users (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list users logged onto a target.
Related CS Console Command: net logons
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_logons(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetLogonsDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetLogonsDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_sessions(bid, request_model)
List Sessions (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list sessions on a target.
Related CS Console Command: net sessions
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_sessions(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetSessionsDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetSessionsDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_share(bid, request_model)
List Shares (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list shares on a target.
Related CS Console Command: net share
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_share(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetShareDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetShareDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_time(bid, request_model)
Get System Time (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to show time for a target.
Related CS Console Command: net time
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_time(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetTimeDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetTimeDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_user(bid, request_model)
List Users (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list users on a system.
Related CS Console Command: net user
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_user(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetUserDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetUserDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_user_detail(bid, request_model)
Get User (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to get information about a user.
Related CS Console Command: net user
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_user_detail(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetUserDetailDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetUserDetailDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_net_view(bid, request_model)
List Domain Hosts (Spawn)
Spawn a temporary process and inject the network and host enumeration DLL into it to list hosts on a domain.
Related CS Console Command: net view
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_net_view(
bid='bid_example',
request_model=cs_sdk_python.api_client.NetViewDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | NetViewDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]
AsyncCommandResponse spawn_port_scan(bid, request_model)
Port Scan (Spawn)
Spawn a temporary process, inject a portscan DLL into it and to run a portscan against the specified hosts. [targets] is a comma separated list of hosts to scan.
Related CS Console Command: portscan
import asyncio
import os
import cs_sdk_python.api_client
from cs_sdk_python.api_client import ApiClient, Configuration
from cs_sdk_python.api_client.api import NetworkReconApi
async def main():
config = Configuration(host="https://localhost:50443")
config.access_token = os.environ["CS_ACCESS_TOKEN"]
async with ApiClient(config) as client:
api = NetworkReconApi(client)
response = await api.spawn_port_scan(
bid='bid_example',
request_model=cs_sdk_python.api_client.PortScanSpawnDto(),
)
asyncio.run(main())Replace example values and populate the required model fields before running.
| Name | Type | Description | Notes |
|---|---|---|---|
| bid | str | ||
| request_model | PortScanSpawnDto |
- Content-Type: application/json
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to API reference]