Announcement

Collapse
No announcement yet.

rkhunter and chkrootkit

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    rkhunter and chkrootkit

    I have installed rkhunter and chkrootkit.

    I can't see these programmes in my dropdown menus. Are they to be used only with the command line?

    Thanks
    kubuntu version: 16.04.5 LTS

    Laptop: Toshiba-Satellite-L350

    #2
    Yes both are ment to be used from the command line
    Mark Your Solved Issues [SOLVED]
    (top of thread: thread tools)

    Comment


      #3
      Originally posted by sithlord48 View Post
      Yes both are ment to be used from the command line
      Thank you

      I am trying to discover how these programmes are used.

      I tried help, and manual; and found that typing rkhunter starts the programme and gives the options- so that is fine.

      Using the same procedure for chkrootkit, I see a message asking for root privilege. I believe that this means I should type sudo chkrootkit. I then hope to see guidance regarding the use of the programme. Am I correct?

      When I use these programmes should they both be run using sudo? rkhunter looks like it will run without root privilege.

      Let me know what you think.

      Best wishes for the New Year
      kubuntu version: 16.04.5 LTS

      Laptop: Toshiba-Satellite-L350

      Comment


        #4
        Both have manpages.

        rkhunter: http://manpages.ubuntu.com/manpages/...khunter.8.html
        chkrootkit: http://manpages.ubuntu.com/manpages/...rootkit.1.html
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Thank you responding

          I note that rkhunter requires a command line browser for updates. I use Firefox. Will Terminal suffice?
          kubuntu version: 16.04.5 LTS

          Laptop: Toshiba-Satellite-L350

          Comment


            #6
            I run rkhunter --update from the command line just fine; just did in fact. One of the data files was 'updated'. Just ensure that you have the program wget installed.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              I have now updated the files. I needed to run rkhunter as root, i.e., using sudo.

              I have wget on my machine. I was a little surprised that the programme is necessary because Firefox supports HTTPS and FTP so there are programmes on my machine that retrieve files from the internet.

              Best wishes for the New Year
              kubuntu version: 16.04.5 LTS

              Laptop: Toshiba-Satellite-L350

              Comment


                #8
                Originally posted by anonprivate View Post
                I have installed rkhunter and chkrootkit.

                I can't see these programmes in my dropdown menus. Are they to be used only with the command line?

                Thanks
                If you want to launch them from the application menu, right click the launcher button and click "edit applications". Select the menu you want to put the application in ("Utilities" is as good as any) and press the "New Item" Button at the top.

                For rkhunter, fill the fields in like so:

                Click image for larger version

Name:	add application.png
Views:	1
Size:	17.6 KB
ID:	643705

                To explain the command section. "konsole" is telling to open the konsole program. "--noclose" is telling the program not to close when it is finished running the script (so you can read the results), "--e" is telling konsole to execute the following command. "sudo rkhunter" is the command to open the program with root privileges. "-c" is the command to run the check" and "--sk" stops the enter prompt after every test and just runs it in full to the end. The last bit (--sk) is personal preference, delete it if you like it the other way. There are list of the options you can use in the man pages listed above but usually typing -h after any program name also lists them e.g. sudo rkhunter -h

                When your done, click save and it should be the application menu. When you click it, a Konsole will open, ask for your password and then run the program.

                For chkrootkit, the procedures is the same except in the "command" field, you would put

                Code:
                konsole --noclose -e sudo chkrootkit
                and name it differently.

                Comment


                  #9
                  Bings.

                  These are very clear and accurate instructions.

                  Just a couple of points. Rootkit hunter is given conditions, but is not told what to scan.
                  Checkroot is just told to run, but there are no conditions, or specified folders

                  I get the impression that under these conditions the programmes will scan the whole disk. Is that the best route for these programmes.

                  Best wishes
                  kubuntu version: 16.04.5 LTS

                  Laptop: Toshiba-Satellite-L350

                  Comment


                    #11
                    Thank you for the information.

                    Regarding the command lines that you gave, I note that I do not get a command prompt back at the end. Is there a modification to the command line that will return the command prompt?
                    kubuntu version: 16.04.5 LTS

                    Laptop: Toshiba-Satellite-L350

                    Comment


                      #12
                      On running rkhunter I see three warnings

                      checking /dev
                      checking for hidden files and directories
                      /usr/bin/unhide.rb

                      Are these warning false positives?
                      kubuntu version: 16.04.5 LTS

                      Laptop: Toshiba-Satellite-L350

                      Comment


                        #13
                        Yes.

                        /usr/bin/unhid.rb is a file used by Ruby, and it is supposed to be hidden.
                        Windows no longer obstructs my view.
                        Using Kubuntu Linux since March 23, 2007.
                        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                        Comment


                          #14
                          Originally posted by anonprivate View Post
                          Thank you for the information.

                          Regarding the command lines that you gave, I note that I do not get a command prompt back at the end. Is there a modification to the command line that will return the command prompt?
                          Assuming the buttons are in the same place in 14.04 as they are in 17.10, change the command to

                          Code:
                          sudo chkrootkit && bash
                          Then click the "advanced" tab and check the box which gives the option "run in terminal".

                          Originally posted by anonprivate View Post
                          On running rkhunter I see three warnings

                          checking /dev
                          checking for hidden files and directories
                          /usr/bin/unhide.rb

                          Are these warning false positives?
                          The best thing to do for warnings is copy paste them into a search engine. As you will see, this is a false positive.

                          Edit: That's not meant to be snarky. You just get an instant answer rather than waiting around for a forum reply
                          Last edited by Bings; Dec 30, 2017, 11:25 AM.

                          Comment


                            #15
                            Originally posted by Snowhog View Post
                            Yes.

                            /usr/bin/unhid.rb is a file used by Ruby, and it is supposed to be hidden.
                            Thank you

                            Do you know why
                            checking /dev
                            checking for hidden files and directories
                            are given as warnings?
                            kubuntu version: 16.04.5 LTS

                            Laptop: Toshiba-Satellite-L350

                            Comment

                            Working...
                            X