GithubHelp home page GithubHelp logo

Comments (9)

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024 3

@corefx,

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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

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.

corefx avatar corefx commented on August 21, 2024

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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@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.

corefx avatar corefx commented on August 21, 2024

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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

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.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

@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.

corefx avatar corefx commented on August 21, 2024

I tested Reptile with your fix on Ubuntu 18.04 virtual machine and the persistence works fine.

from reptile.

f0rb1dd3n avatar f0rb1dd3n commented on August 21, 2024

Nice, I will review this code if I did another mistake like that.

from reptile.

Related Issues (20)

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.