Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] [API] Fields Call #875

Open
4 tasks
zyronix opened this issue Mar 20, 2023 · 0 comments
Open
4 tasks

[EPIC] [API] Fields Call #875

zyronix opened this issue Mar 20, 2023 · 0 comments
Assignees
Labels
epic Tracker for larger features server Hashtopolis API/Server related

Comments

@zyronix
Copy link
Member

zyronix commented Mar 20, 2023

To make the Web UI as dynamic as possible a fields call should be implemented. The Fields call can be used to determine what kind of type a field is. For example: a text field, binary, choices, lengths. But also have descriptions/tooltips attached to fields.

  • Research possible solution
  • Build PoC
  • Implement all fields

Possible solutions:

    get /fields
    -> {
        'hashlist':
            'name': {'type': 'str(128)', 'description': ''}
        'agent':
           'agenttype': {'type': 'int', 'choices': {
                 
                    CPU: {value: 1, description: cpu}}
                    GPU: {value: 1, description: cpu}
                
        }
        notification-triggers
        {
            'actions':
                {
                    'deleteHashlist':
                        {
                            type: object[Hashlist[url=/apiv2/hashlist/]] #voorbeeldjes bijzoeken
                            type: int
                            object: Hashlist
                            value: optional
                        }
                }
        }
        task
        {
            name
            agentBinaryType: {
                display_type: str
                choice: [array[agentBinaryVersion]]
            }
        }
    }

    # inter dependacies between query parameters
    * ./meta/task/create
    post: OPTIONS ./task/
    {
        {name: type str}
        {agentbinary{
            id=1,name=hashcat:
                {
                    v1.2.3: id=1
                    v1.2.4: id=2
                }
            generic:
                {
                    v123: id =4
                    v542: id = 5
                }
        }}
    }
    patch: OPTIONS ./task/:id
    {
        name
        meta: {create {'name', agentbinary,}}
    }

Required helper functions:

  • Set user password
@zyronix zyronix self-assigned this Mar 20, 2023
@zyronix zyronix converted this from a draft issue Mar 20, 2023
@zyronix zyronix added the epic Tracker for larger features label Mar 20, 2023
@zyronix zyronix added the server Hashtopolis API/Server related label Jun 16, 2023
@zyronix zyronix removed the status in Development Plans Jun 16, 2023
@zyronix zyronix assigned rixvet and unassigned zyronix Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Tracker for larger features server Hashtopolis API/Server related
Projects
Status: No status
Development

No branches or pull requests

2 participants