Giter VIP home page Giter VIP logo

file-safebox's Introduction

file-safebox

file safe based on overloading system call

保险箱程序路径:/home/test/safeBox

产生日志文件路径:/home/test/safebox_log

内核模块用法:

make

insmod hook.ko

已成功hook openat,rename,unlinkat系统调用,并成功实现保险箱管理程序的识别

其他程序无法读取保险箱文件夹内文件内容,并且无法从文件外向保险箱传输文件

保险箱内无法创建新文件,也无法删除文件以及查看文件

无法使用ls,mv,cp,rm等命令

管理程序用法:

编译:gcc safe_manager.c -o safe_manager

./safe_manager    (password:password)
 in  filename     :cp file to /root/safeBox/
 out filename     :cp file in /root/safeBox/ to current folder
 del filename     :delete file in /root/safeBox/ 
 ls               :check the file list in /root/safeBox/
 exit             :exit the program

不足:

1.使用ls命令时,虽无法查看,但ls后接的字符串如果刚好是保险箱内文件的文件名的话,会打印相应文件名,可以被暴力搜索;

2.保险箱内可以被其他程序存入文件夹,但无法存入文件。

file-safebox's People

Contributors

lvshengwei avatar undersnow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.