Metasploit Penetration Testing Framework


OSVDB: CVE:
BID: MSB:
TEXT:


Linux Chmod

Runs chmod on specified file with specified mode

Rank

  • Normal

Authors

  • kris katterjohn < katterjohn [at] gmail.com >

Similar Modules

Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

msf > use payload/linux/x86/chmod
msf payload(chmod) > generate

Module Options

FILE Filename to chmod (default: /etc/shadow)
MODE File mode (octal) (default: 0666)
AppendExit Append a stub that executes the exit(0) system call
PrependChrootBreak Prepend a stub that will break out of a chroot (includes setreuid to root)
PrependSetresuid Prepend a stub that executes the setresuid(0, 0, 0) system call
PrependSetreuid Prepend a stub that executes the setreuid(0, 0) system call
PrependSetuid Prepend a stub that executes the setuid(0) system call
WORKSPACE Specify the workspace for this module
Copyright © 2003-2010 Rapid7 LLC