metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Rex::Post::Meterpreter::ClientCore#load_library

Loads a library on the remote meterpreter instance.  This method
supports loading both extension and non-extension libraries and
also supports loading libraries from memory or disk depending
on the flags that are specified

Supported flags:

LibraryFilePath
	The path to the library that is to be loaded

LibraryFileImage
	Binary object containing the library to be loaded
	(can be used instead of LibraryFilePath)

TargetFilePath
	The target library path when uploading

UploadLibrary
	Indicates whether or not the library should be uploaded

SaveToDisk
	Indicates whether or not the library should be saved to disk
	on the remote machine

Extension
	Indicates whether or not the library is a meterpreter extension

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/rex/post/meterpreter/client_core.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rex--Post--Meterpreter--ClientCore-load_library-for-pr


# Commit to git

git add lib/rex/post/meterpreter/client_core.rbgit commit -m "better docs for Rex::Post::Meterpreter::ClientCore#load_library"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rex--Post--Meterpreter--ClientCore-load_library-for-pr

hub pull-request


# Celebrate!