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

[BUG] Module search over API not working #540

Closed
WhyNotPal opened this issue Feb 14, 2022 · 1 comment
Closed

[BUG] Module search over API not working #540

WhyNotPal opened this issue Feb 14, 2022 · 1 comment
Labels
bug Something isn't working confirmed good first issue Good for newcomers

Comments

@WhyNotPal
Copy link

Empire Version

  • Empire 4.3.3 BC Security Fork

OS Information (Linux flavor, Python version)

  • OS: kali 2021.1
  • Python: 3.9.1

Describe the bug

A API request to search module fails - it returns the error
{"error":"AttributeError("'PydanticModule' object has no attribute 'info'")"}

To Reproduce

Steps to reproduce the behavior:

  1. Launch powershell-empire on Kali (here with IP 192.168.3.4)
  2. From remote machine, aquire authentication token and store in environment variable $TOKEN
  3. Request a module search according to https://bc-security.gitbook.io/empire-wiki/restful-api/modules
  4. curl --insecure -i -H "Content-Type: application/json" https://192.168.3.4:1337/api/modules/search?token=$TOKEN -d '{"term":"keylogger"}'

Expected behavior

A list of modules matching a specific string is expected (here keylogger)

Screenshots

image

Additional context

Nope

@WhyNotPal WhyNotPal added the bug Something isn't working label Feb 14, 2022
@WhyNotPal WhyNotPal changed the title [BUG] [BUG] Module search over API not working Feb 14, 2022
@vinnybod vinnybod added confirmed good first issue Good for newcomers labels Feb 15, 2022
@lavafroth
Copy link

vinnybod added a commit that referenced this issue Feb 21, 2023
* fixed keyword obfuscation and preobfuscate errors in client

* Update empire/client/src/menus/AdminMenu.py

Co-authored-by: Vincent Rose <[email protected]>

* formatting fixes

* updated print messages and preobfuscate

* renamed preobfuscate flag

* pin psf/black github action

* Update empire/client/src/menus/AdminMenu.py

Co-authored-by: Vincent Rose <[email protected]>

* switched print with logging

* Update empire/client/src/EmpireCliState.py

Co-authored-by: Vincent Rose <[email protected]>

* Update empire/client/src/menus/AdminMenu.py

Co-authored-by: Vincent Rose <[email protected]>

* Update empire/client/src/EmpireCliState.py

Co-authored-by: Vincent Rose <[email protected]>

* Update empire/client/src/menus/AdminMenu.py

Co-authored-by: Vincent Rose <[email protected]>

* removed duplicate line

---------

Co-authored-by: Vincent Rose <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants