Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
Digging Tool edited this page Mar 28, 2019 · 9 revisions

Cryptic-Service wiki

Python Service Microservice

Explanation of dict keys:
  1. user_uuid is the unique identifier for a user account in the game.
  2. device_uuid is the unique identifier for a device in the game.
  3. target_device device_uuid where the service runs which should be hacked
  4. target_service service_uuid the service that should be hacked
  5. name name and type of an service you want too create

! All this request endpoints need a valid user_uuid !

  • Use Endpoint 'create' and the following dict format to create a service.

    input:

      {"name":"SSH",
       "device_uuid":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      {"ok":True}
    
  • Use Endpoint 'public_info' and the following dict format to receive public information about an given service.

    input:

      {"service_uuid":"17da1e14-caa1-4476-8baa-85e7ee198ae3",
       "uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      {"uuid":"17da1e14-caa1-4476-8baa-85e7ee198ae3", 
      "name":"SSH", 
      "running_port": 22, 
      "device": "9429667a-28c6-4cba-ae18-5652ecfa2348"}
    
  • Use Endpoint 'private_info' and the following dict format to receive private information about an given service.

    input:

      {"service_uuid":"17da1e14-caa1-4476-8baa-85e7ee198ae3",
       "uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      Full serilized Service Model -> Loop up Database Model
    
  • Use Endpoint 'turn' and the following dict format to turn off / on your service.

    input:

      {"service_uuid":"17da1e14-caa1-4476-8baa-85e7ee198ae3",
       "uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      {"ok":True}
    
  • Use Endpoint 'list' and the following dict format to receive a list of all your services running on this device.

    input:

      {"uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      {"services": [
          ...
         serilized model
          ...
      ]}
    
  • Use Endpoint 'part_owner' and the following dict format to receive if you are have access to this service with out being owner.

    input:

      {"uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      {"ok":True}
    
  • Use Endpoint 'delete' and the following dict format to delete a service.

    input:

      {"service_uuid":"17da1e14-caa1-4476-8baa-85e7ee198ae3",
       "uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348"}
    

    returns:

      {"ok":True}
    
  • Use Endpoint 'use' and the following dict format to start the service you have running on your device. For a list of services and their data requirements go here : this example below is for all existing service tools valid with some differences in the return values.

    input:

      {"service_uuid":"17da1e14-caa1-4476-8baa-85e7ee198ae3",
       "uuid_device":"9429667a-28c6-4cba-ae18-5652ecfa2348",
       "target_service":"c2ef4271-82b7-4134-8baf-2d0589753d10",
       "target_device":"4ff8ec0d-c36c-44ce-a980-cf42d9a701fd"}
    

    returns: {"ok":True}

Clone this wiki locally