Add commands run_python, run_ruby, and run_perl to spawn and execute scripts for interpreters in memory#22
Merged
Conversation
Adds capability for ruby script execution in memory.
Add Ruby in memory script execution
Set command to load only.
Added runPython command.
* 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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.