caldera icon indicating copy to clipboard operation
caldera copied to clipboard

Unreadable log due to messed variables in code 'id' and 'ablity_id'

Open Morpheme777 opened this issue 3 years ago • 4 comments

Describe the bug Unreadable caldera log: image We get the string <built-in function id> instead of 30cfed4036baf152888affdcd814312c

To Reproduce Steps to reproduce the behavior:

  1. place an ability .yml file to the folder with invalid tactic name (where 'tactic' inside the .yml file not equal folder name)
  2. look at log file, a error ERROR (data_svc.py:168 load_ability_file) Ability=<built-in function id> has wrong tactic should be generated

Expected behavior image

Screenshots see above

Desktop (please complete the following information):

  • OS: Kali
  • Caldera: 4.0.0

Additional context Solution: In the file app/service/data_svc.py -> def load_ability_file -> self.log.error('Ability=%s has wrong tactic' % id) id should be replaced with ability_id

Morpheme777 avatar Aug 11 '22 14:08 Morpheme777

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

github-actions[bot] avatar Aug 11 '22 14:08 github-actions[bot]

@Morpheme777 Want to open a PR?

mkultraWasHere avatar Aug 14 '22 23:08 mkultraWasHere

@Morpheme777 Want to open a PR?

PR is opened.

Morpheme777 avatar Aug 15 '22 08:08 Morpheme777

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Sep 05 '22 00:09 github-actions[bot]

Closed in #2642

mkultraWasHere avatar Sep 26 '22 01:09 mkultraWasHere