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

Inconsistent formatting - mwdb get details #98

Open
netgrain opened this issue Aug 13, 2024 · 0 comments
Open

Inconsistent formatting - mwdb get details #98

netgrain opened this issue Aug 13, 2024 · 0 comments

Comments

@netgrain
Copy link

The -o argument yields different data on same data set. Should only affect formatting, not content

Example

$ mwdb get details cbce9f1d761db687fe3e926530c0d21c31be61ff8e662671e83918eeb2473895 -o table
 Family:       pony                                                     
 drops:        [{"url": "http://...exe"}] 
 type:         "pony"                                                   
 urls:         [{"url": "http:/...php"}] 
 Upload time:  yesterday                                                
 Tags:         <none>                                                   
 Parent tags:  dump:win32:exe pony                                      
 Child tags:   <none>    

vs.

$ mwdb get details cbce9f1d761db687fe3e926530c0d21c31be61ff8e662671e83918eeb2473895 -o json | jq .
{
  "attributes": [],
  "children": [],
  "favorite": false,
  "id": "cbce9f1d761db687fe3e926530c0d21c31be61ff8e662671e83918eeb2473895",
  "parents": [
    {
      "id": "27541d976e6e2893cb93925903ff8a1d3b9a2bcade8620ad179ddc6f035a5bbf",
      "tags": [
        {
          "tag": "pony"
        },
        {
          "tag": "dump:win32:exe"
        }
      ],
      "type": "file",
      "upload_time": "2024-08-07T02:31:36.396812+00:00"
    }
  ],
  "share_3rd_party": true,
  "tags": [],
  "type": "static_config",
  "upload_time": "2024-08-07T02:31:36.529769+00:00"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant