zoukankan      html  css  js  c++  java
  • libc.so.6 误删除丢失急救办法

    libc.so.6 误删除

    # ln -s 
    /bin/ln: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory  
    ...无语, ln命令不能用了。
    尝试cp
    ls: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
     
    cp: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    mv....
     
    history.....
    /bin/history: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory  
    几乎所有指令都不能用了,生产服务器哈,心情100度的紧张, 此时什么也别干抽根烟静一静
    开一个新的ssh ,新的SSH也无法连接~,也就是说,如果当前SSH一旦关闭,系统就完全不能用了无人能救!! 当前这个SSH连接是最后一个挽救系统的机会。
     
    默默的查起了资料,还真找到靠谱的方法()
    # LD_PRELOAD=/lib64/libc-2.12.so ln -s libc-2.12.so libc.so.6 
    执行完立马恢复了
    此时感觉敲个ls 都很爽
     
     
    总结:  /lib64/libc.so.6 是系统底层一个很重要的库,不能动,系统库尤其是生产环境不准动,看都禁止看,太吓人了!
     
    改行去放羊
  • 相关阅读:
    工具安装
    Windbg调试
    SQL学习
    Pwnable小结
    how2heap总结
    堆利用小结
    栈溢出利用小结
    格式化字符串利用小结
    python 节假日爬取
    selenuim学习
  • 原文地址:https://www.cnblogs.com/musen/p/15512279.html
Copyright © 2011-2022 走看看