Skip to content

Add commands run_python, run_ruby, and run_perl to spawn and execute scripts for interpreters in memory#22

Merged
its-a-feature merged 9 commits into
MythicAgents:run_memoryfrom
RobotOperator:master
Jun 6, 2025
Merged

Add commands run_python, run_ruby, and run_perl to spawn and execute scripts for interpreters in memory#22
its-a-feature merged 9 commits into
MythicAgents:run_memoryfrom
RobotOperator:master

Conversation

@RobotOperator
Copy link
Copy Markdown
Contributor

Added the listed commands to spawn scripting interpreters and pass supplied scripts to standard input in memory avoiding the need to write files to disk or pass script content in process creation calls. The calling code has been surrounded in try/catch statements following a similar format to what was present for other apfell commands. Command documentation has been added for each new command. Currently the additions only support dictionary inputs from the mythic UI using the modal.

Adds capability for ruby script execution in memory.
Add Ruby in memory script execution
Set command to load only.
* Create runPerl.py

* Create runPerl.js

* Update runPerl.js

* Remove old script update

* remove old script update

* Standardization

* Delete Payload_Type/apfell/apfell/agent_code/runPerl.js

* Standardization

* Delete Payload_Type/apfell/apfell/agent_code/runPython.js

* Create run_ruby.js

* Delete Payload_Type/apfell/apfell/agent_code/runRuby.js

* Standardize

* Delete Payload_Type/apfell/apfell/agent_functions/runRuby.py

* Standardize

* Delete Payload_Type/apfell/apfell/agent_functions/runPython.py

* Create run_perl.py

* Delete Payload_Type/apfell/apfell/agent_functions/runPerl.py

* Create run_python.md

* Update run_python.md

* Create run_perl.md

* Create run_ruby.md

* Update run_ruby.py

* Update run_perl.py

* Update run_python.py
@its-a-feature its-a-feature changed the base branch from master to run_memory June 6, 2025 16:54
@its-a-feature its-a-feature merged commit 629ea09 into MythicAgents:run_memory Jun 6, 2025
its-a-feature added a commit that referenced this pull request Jun 9, 2025
* Add commands run_python, run_ruby, and run_perl to spawn and execute scripts for interpreters in memory (#22)

* Add agent code for ruby execution.

Adds capability for ruby script execution in memory.

* Update runRuby.js

* Create runRuby.py

* Create runPython.js

* Create runPython.py

* Update runPython.py

Set command to load only.

* Add perl, documentation, and standardize commands (#3)

* Create runPerl.py

* Create runPerl.js

* Update runPerl.js

* Remove old script update

* remove old script update

* Standardization

* Delete Payload_Type/apfell/apfell/agent_code/runPerl.js

* Standardization

* Delete Payload_Type/apfell/apfell/agent_code/runPython.js

* Create run_ruby.js

* Delete Payload_Type/apfell/apfell/agent_code/runRuby.js

* Standardize

* Delete Payload_Type/apfell/apfell/agent_functions/runRuby.py

* Standardize

* Delete Payload_Type/apfell/apfell/agent_functions/runPython.py

* Create run_perl.py

* Delete Payload_Type/apfell/apfell/agent_functions/runPerl.py

* Create run_python.md

* Update run_python.md

* Create run_perl.md

* Create run_ruby.md

* Update run_ruby.py

* Update run_perl.py

* Update run_python.py

* updating memory functions into one run_script with script only aliases

* removed script_only tags

---------

Co-authored-by: Lance Cain <79430515+RobotOperator@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants