V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
fy
V2EX  ›  Linux

求助:有一台机子,能够以 666 权限写文件(但不能 append,只能创建新文件),如何拿到权限?

  •  
  •   fy ·
    fy0 · 2014-08-24 10:49:37 +08:00 · 3358 次点击
    这是一个创建于 3550 天前的主题,其中的信息可能已经有所发展或是发生改变。
    nomaka
        1
    nomaka  
       2014-08-24 10:53:22 +08:00
    去写 /etc/sudoers 呀 然后就能sudo 了
    tmqhliu
        2
    tmqhliu  
       2014-08-24 11:01:27 +08:00
    想法把脚本写到 /etc/init.d 里边 让系统启动时自动运行
    fy
        3
    fy  
    OP
       2014-08-24 11:12:31 +08:00
    @nomaka
    @tmqhliu

    不能修改文件,只能创建新文件啊
    paulw54jrn
        4
    paulw54jrn  
       2014-08-24 11:27:31 +08:00
    用Symlink race 进行攻击?
    tmqhliu
        5
    tmqhliu  
       2014-08-24 11:50:15 +08:00
    @fy 让你往 /etc/init.d/ 里写新脚本 不行吗?
    oott123
        6
    oott123  
       2014-08-24 12:08:02 +08:00 via Android
    @tmqhliu 666好像没有执行权限啊…好难办
    ffffwh
        7
    ffffwh  
       2014-08-24 13:20:21 +08:00 via iPhone
    这权限好邪恶。。。
    tonyluj
        8
    tonyluj  
       2014-08-24 13:25:28 +08:00
    不能append?能Trunc吗?
    fy
        9
    fy  
    OP
       2014-08-24 13:48:55 +08:00
    @tonyluj 是弄成 -r--r--r-- 吗?不行…… 试过往cron里写了 写不进去
    Lentin
        10
    Lentin  
       2014-08-24 15:43:52 +08:00 via Android
    写他丫的几百G的东西撑死他
    RIcter
        11
    RIcter  
       2014-08-24 15:51:30 +08:00 via iPhone
    MySQL下的提权么(´・ω・)
    参加360的比赛么(´・ω・)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5732 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:12 · PVG 16:12 · LAX 01:12 · JFK 04:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.