Package envi :: Module cli :: Class EnviMutableCli
[hide private]
[frames] | no frames]

Class EnviMutableCli

source code


Cli extensions which require a mutable memory object (emulator/trace) rather than a static one (viv workspace)

Instance Methods [hide private]
 
do_memcpy(self, line)
Copy memory from one location to another...
source code
 
do_memprotect(self, line)
Change the memory permissions of a given page/map.
source code
 
do_writemem(self, args)
Over-write some memory in the target address space.
source code

Inherited from EnviCli: __getattr__, __init__, addCmdAlias, addScriptPathEnvVar, aliascmd, cmdloop, do_EOF, do_alias, do_binstr, do_clear, do_config, do_eval, do_help, do_maps, do_mem, do_memcmp, do_memdump, do_python, do_quit, do_saveout, do_script, do_search, getExpressionLocals, get_names, onecmd, parseExpression, registerCmdExtension, reprPointer, setCanvas, vprint, write

Inherited from cmd.Cmd: columnize, complete, complete_help, completedefault, completenames, default, emptyline, parseline, postcmd, postloop, precmd, preloop, print_topics

Class Variables [hide private]

Inherited from cmd.Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Method Details [hide private]

do_memcpy(self, line)

source code 

Copy memory from one location to another...

Usage: memcpy <dest_expr> <src_expr> <size_expr>

do_memprotect(self, line)

source code 

Change the memory permissions of a given page/map.

Usage: memprotect [options] <addr_expr> <perms> -S <size> Specify the size of the region to change (default == whole memory map) <perms> = "rwx" string "rw", "rx" "rwx" etc...

do_writemem(self, args)

source code 

Over-write some memory in the target address space. Usage: writemem [options] <addr expression> <string> -X The specified string is in hex (ie 414141 = AAA) -U The specified string needs to be unicode in mem (AAA -> 410041004100)