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

Psinject Error Message #6

Closed
Cx01N opened this issue Oct 27, 2019 · 0 comments
Closed

Psinject Error Message #6

Cx01N opened this issue Oct 27, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Cx01N
Copy link

Cx01N commented Oct 27, 2019

Empire Version

Python3-hubble-1

OS Information (Linux flavor, Python version)

Kali Linux, Python 2.7

Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.

Error when executing PSinject on any application (except Explorer).
/lib/modules/powershell/management/ps_inject.py

The term '' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
CategoryInfo : ObjectNotFound: (:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException

Additional modules that experienced the same error.
/lib/modules/powershell/persistence/elevated/schtasks.py
/lib/modules/powershell/persistence/elevated/registry.py

Screenshot of error, embedded text output, or Pastebin link to the error

Any additional information

The error appears to originate in Powershell and not python.

@Cx01N Cx01N added the bug Something isn't working label Oct 27, 2019
Cx01N added a commit that referenced this issue Nov 2, 2019
@Cx01N Cx01N closed this as completed Nov 2, 2019
vinnybod added a commit that referenced this issue Feb 21, 2021
* Initial database pulled from vinnybod

* made compatibility changes

* json working but not ideal

* updated listener endpoint sql calls

* update get_agent

* update agent tasking results

* updated agent download and upload

* result changes

* fixed agent result formatting issue

* more agent sql updates

* eliminated old sql calls in api

* updated agent table call

* updated agent results

* more agent endpoint changes

* agent setting endpoints updated

* updated taskings and results to update agent name in rename

* fixed or statement in function

* removed tasking and result renaming for now - for a future release

* updated more agent functions

* updated update_agent_results_db

* updated keyword obufscation

* updated user functions

* updated agent return

* added dictionary option to agents

* Updated start existing listener

* fixed result printing issue

* converted update listener

* updated kill listener

* updated delete listener

* updated get inactive listeners

* update listener options not working with new format

* updated credentials table

* sql commands for credentials updated

* reformatted agents and updated autorun commands

* updated agent tasking to orm

* fixed update listener options

* converted autorun

* updated get_agent_tasks_listener_db

* updated process agent packet

* auto reformatted empire.py

* updated keyword obfuscation

* updated reports

* updated config pragma

* fixes for starkiller

* undid update_dir function

* fixed module vs agent version

* removed old database connection functions

* fixed date formatting error

* updated database setup and restart with new configuration

* fixed install directory error

* fixed versioning issues with python 3.9 and updated some random functions

* updated poetry to use python 3.8

* fixed weird issue where ./ is no longer valid for installpath

* Fixed timestamps and other stuff???

* reset poetry.lock/toml files

* Sql alchemy vr edits (#2)

* saving my place

* get initial file browser call working

* add sqlalchemy to poetry

* fix a timestamp thing

* file browser seems to be functioning (for python agents at least)

* fix another thing with timestamps, get_config works with mysql too, add config.yaml to switch between databases

* time_stamp > timestamp

* call out cffi 1.14.4 because 1.14.3 doesn't install on mac os for some reason

* more rework on timestamps. use sqlachemy-utc for timezone-aware retrievals

* timestamp serialization on socketio

* convert some raw sql queries

* got reporting query on mysql and sqlite. updated timestamp for reporting table. still a problem with session_key on the agent table

* add link to substring stackoverflow

* Fixed circular logic with helpers so resetting database works

* should fix the sessionid and datetime issues - pending vinnybod changes

* fix session_key serialization

* fixed database encoding issue with sessionkey for sqlite only

* removed helpers call from database

* use same query for api and cli report. convert high_integrity check, make high_integrity a boolean

* forgot to return the agent in new method and removed helpers reference in model (#6)

* only refresh the token if one doesn't exist

* convert reporting queries

* updated reporting endpoints

* updated agent info

* fixed deleted line of get_agent_db

* updated get_config

* fixed case where agent info comes back as dict

* updated credential report

* updated report master log

* revert some of the string parsing since we haven't verified some of the byte vs string issues

* cast high_integrity to int so the api contract isn't broken

* revert back to coin's query() with added order_by

* revert back to coin's .contains filter

* added locks to agents.py

* added locks to empire.py

* int issue from high_integrity conversion

* added threading lock to empire and agent files

* fixed misstyped lock and release commands

* updated reset scripts

* fixed int issue with high_integrity being None instead of 0

* updated internal_ip to save only the first one

* cast session_key to a string, can't serialize bytes in json

* fixed issue with multiple tasks failing

* fixed printing issue with multiple results

* fix reporting endpoint

* limit size of result object to avoid performance issues

* fixed type with missing username in agents

* Update lib/common/agents.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* removed get_agents_db_orm

* Update empire

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* Update config.yaml

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* Update lib/common/agents.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* Update lib/common/agents.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* Update lib/common/helpers.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* Update lib/common/empire.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* Update lib/common/credentials.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* fixed minor error with credentials and formatting

* Update lib/common/credentials.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* updated language to scalar

* added .first() to autorun

* fixed clear autorun db

* Update lib/common/credentials.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* fixed autorun db calls

* Update lib/common/credentials.py

Co-authored-by: Vincent Rose <vrose04@gmail.com>

* removed modifying table at runtime

* update initialization behavior to remove the need for setup_database.… (#16)

* update initialization behavior to remove the need for setup_database.py, defaults can be set in yaml, revert the install_path changes

* cleanup

Co-authored-by: Vincent Rose <vrose04@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant