Skip to content

-n option fails #397

@mlodic

Description

@mlodic

Hey buffer, how you doing? :)

While I was updating the Thug integration in IntelOwl, I encountered this error while running thug in this way:

/usr/local/bin/thug -qZF -n "/opt/deploy/thug/23" -T 300 -u winxpie60 www.test.it

Traceback (most recent call last):
  File "/usr/local/bin/thug", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/thug/thug.py", line 534, in main
    Thug(args)()
  File "/usr/local/lib/python3.11/site-packages/thug/ThugAPI/ThugAPI.py", line 134, in __call__
    self.analyze()
  File "/usr/local/lib/python3.11/site-packages/thug/thug.py", line 72, in analyze
    m(arg_value)
  File "/usr/local/lib/python3.11/site-packages/thug/ThugAPI/ThugAPI.py", line 363, in set_log_dir
    log.ThugLogging.set_absbasedir(logdir)
    ^^^^^^^^^^^^^^^
AttributeError: 'Logger' object has no attribute 'ThugLogging'

I noticed that this error is triggered only while using the option -n for custom logging.
Maybe you could help finding a fast solution.

Thank you in advance :)

PS: I am using the last Docker Image thughoneyclient/thug:v6.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions