diff --git a/changelog b/changelog index 4dc150a..2fbc986 100644 --- a/changelog +++ b/changelog @@ -19,6 +19,13 @@ unhide-tcp.h - Add definition of boolean values. + + manpages + - Add new options -u and -H + + All files + - Update GPL notive as per the recommendations of the FSF + - Update versions and copyright dates 2020-01 unhide-output.c diff --git a/man/es/unhide.8 b/man/es/unhide.8 index 41f4d05..451f9c1 100644 --- a/man/es/unhide.8 +++ b/man/es/unhide.8 @@ -1,4 +1,4 @@ -.TH "UNHIDE" "8" "Marzo 2012" "Comandos de administración" "" +.TH "UNHIDE" "8" "Enero 2021" "Comandos de administración" "" .SH "NOMBRE" unhide \(em Herramienta forense para descubrir procesos ocultos .SH "SINOPSIS" @@ -36,6 +36,14 @@ Muestra la versión y sale .TP \fB\-v\fR Fuerza la salida debug con los mensajes de error (se puede repetir varias veces \-vv) +.TP +\fB\-u\fR +Realiza envíos sin buffer a la salida estándar. +Esta opción puede ser útil cuando unhide es iniciado por otro proceso (por ejemplo, es utilizado por unhideGui). +.TP +\fB\-H\fR +Proporcionar un resultado un poco más humano. +Esta opción añade mensajes finales a las pruebas e indica cuando no se encuentran procesos ocultos. .PP .PP .SH "TEST_LIST" diff --git a/man/fr/unhide.8 b/man/fr/unhide.8 index 83cdd6c..95b1133 100644 --- a/man/fr/unhide.8 +++ b/man/fr/unhide.8 @@ -1,4 +1,4 @@ -.TH "unhide" "8" "Mars 2012" "Commandes d'administration" +.TH "unhide" "8" "Janvier 2021" "Commandes d'administration" .SH "NOM" unhide \(em outil d'investigation post\-mortem pour trouver des processus cachés .SH "SYNOPSIS" @@ -40,6 +40,14 @@ Affiche la version et sort. \fB \-v\fR Affichage prolixe, affiche les message d'avertissement (par défaut : ne pas afficher). Cette option peut être répétée plus d'une fois. +.TP +\fB\-u\fR +Fait des écritures sans tampon (buffer) vers la sortie standard. +Cette option peut être utile lorsque unhide est lancé par un autre processus (par exemple, elle est utilisé par unhideGui). +.TP +\fB\-H\fR +Fournir un résultat légèrement plus adapté à l'humain. +Cette option ajoute des messages de fin aux tests et indique quand aucun processus caché n'est trouvé. .PP .PP .SH "TEST_LIST" diff --git a/man/unhide.8 b/man/unhide.8 index 31f8ed4..56f4c37 100644 --- a/man/unhide.8 +++ b/man/unhide.8 @@ -1,4 +1,4 @@ -.TH "UNHIDE" "8" "March 2012" "Administration commands" +.TH "UNHIDE" "8" "January 2021" "Administration commands" .SH "NAME" unhide \(em forensic tool to find hidden processes .SH "SYNOPSIS" @@ -40,6 +40,14 @@ Show version and exit \fB\-v\fR Be verbose, display warning message (default : don't display). This option may be repeated more than once. +.TP +\fB\-u\fR +Do unbuffered write to stdout. +This option could be useful when unhide is spawned by another process (e.g. it's used by unhideGui). +.TP +\fB\-H\fR +Provide a slightly human frienlier output. +This option adds ending messages to tests and indicates when no hidden process is found. .PP .PP .SH "TEST_LIST" diff --git a/sanity-tcp.sh b/sanity-tcp.sh index c9f30d0..3bae5a0 100755 --- a/sanity-tcp.sh +++ b/sanity-tcp.sh @@ -2,7 +2,7 @@ # sanity.sh -- a growing testsuite for unhide-tcp. # -# Copyright (C) 2010 Patrick Gouin. +# Copyright (C) 2010-2021 Patrick Gouin. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/sanity.sh b/sanity.sh index 50a5a5a..936368a 100755 --- a/sanity.sh +++ b/sanity.sh @@ -2,7 +2,7 @@ # sanity.sh -- a growing testsuite for unhide. # -# Copyright (C) 2010 Patrick Gouin. +# Copyright (C) 2010-2021 Patrick Gouin. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/ss b/ss index e4a0f68..4cdbd48 100755 --- a/ss +++ b/ss @@ -1,5 +1,22 @@ #!/bin/sh +# Copyright (C) 2010-2021 Patrick Gouin. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# Original Author: Patrick Gouin + set -e # echo "Le 1er paramètre est : $1" >&2 diff --git a/ss-ref b/ss-ref index 9976bf7..1725787 100644 --- a/ss-ref +++ b/ss-ref @@ -2,7 +2,7 @@ # sanity.sh -- a growing testsuite for unhide. # -# Copyright (C) 2010 Patrick Gouin. +# Copyright (C) 2010-2021 Patrick Gouin. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/unhide-linux-bruteforce.c b/unhide-linux-bruteforce.c index f4788c9..9f72b6f 100644 --- a/unhide-linux-bruteforce.c +++ b/unhide-linux-bruteforce.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-linux-compound.c b/unhide-linux-compound.c index 53458cd..31f0ee6 100644 --- a/unhide-linux-compound.c +++ b/unhide-linux-compound.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-linux-procfs.c b/unhide-linux-procfs.c index ee03e16..65d3949 100644 --- a/unhide-linux-procfs.c +++ b/unhide-linux-procfs.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-linux-syscall.c b/unhide-linux-syscall.c index d6d7bff..61ce7eb 100644 --- a/unhide-linux-syscall.c +++ b/unhide-linux-syscall.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-linux.c b/unhide-linux.c index b9d26ce..1962937 100644 --- a/unhide-linux.c +++ b/unhide-linux.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -49,8 +51,8 @@ along with this program. If not, see . // header const char header[] = - "Unhide 20210123\n" - "Copyright © 2013 Yago Jesus & Patrick Gouin\n" + "Unhide 20210124\n" + "Copyright © 2010-2021 Yago Jesus & Patrick Gouin\n" "License GPLv3+ : GNU GPL version 3 or later\n" "http://www.unhide-forensics.info\n\n" "NOTE : This version of unhide is for systems using Linux >= 2.6 \n\n"; diff --git a/unhide-linux.h b/unhide-linux.h index def4103..e78577f 100644 --- a/unhide-linux.h +++ b/unhide-linux.h @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-output.c b/unhide-output.c index e9702db..2d5a834 100644 --- a/unhide-output.c +++ b/unhide-output.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-output.h b/unhide-output.h index b8bc942..a96d377 100644 --- a/unhide-output.h +++ b/unhide-output.h @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-posix.c b/unhide-posix.c index d08669d..7b5d572 100644 --- a/unhide-posix.c +++ b/unhide-posix.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -217,8 +219,8 @@ void checkgetsid() { int main (int argc, char *argv[]) { - strncpy(scratch,"Unhide-posix 20130526\n", sizeof(scratch)-1) ; - strncat(scratch, "Copyright © 2013 Yago Jesus & Patrick Gouin\n", sizeof(scratch)-strlen(scratch)-1); + strncpy(scratch,"Unhide-posix 20210124\n", sizeof(scratch)-1) ; + strncat(scratch, "Copyright © 2013-2021 Yago Jesus & Patrick Gouin\n", sizeof(scratch)-strlen(scratch)-1); strncat(scratch, "License GPLv3+ : GNU GPL version 3 or later\n", sizeof(scratch)-strlen(scratch)-1); strncat(scratch, "http://www.unhide-forensics.info\n\n", sizeof(scratch)-strlen(scratch)-1); strncat(scratch, "NOTE : This is legacy version of unhide, it is intended\n\ diff --git a/unhide-tcp-fast.c b/unhide-tcp-fast.c index 256114e..a98f1d9 100644 --- a/unhide-tcp-fast.c +++ b/unhide-tcp-fast.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide-tcp.c b/unhide-tcp.c index 5db4a44..9e873ae 100644 --- a/unhide-tcp.c +++ b/unhide-tcp.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -36,8 +38,8 @@ along with this program. If not, see . // header const char header[] = - "Unhide-tcp 20210123\n" - "Copyright © 2013 Yago Jesus & Patrick Gouin\n" + "Unhide-tcp 20210124\n" + "Copyright © 2013-2021 Yago Jesus & Patrick Gouin\n" "License GPLv3+ : GNU GPL version 3 or later\n" "http://www.unhide-forensics.info\n"; diff --git a/unhide-tcp.h b/unhide-tcp.h index 54bdd1e..c75359f 100644 --- a/unhide-tcp.h +++ b/unhide-tcp.h @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhideGui.py b/unhideGui.py index 8149723..dac9383 100755 --- a/unhideGui.py +++ b/unhideGui.py @@ -1,6 +1,8 @@ #!/bin/python3 """ +Copyright © 2010-2021 Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or diff --git a/unhide_rb.c b/unhide_rb.c index 5da200d..af0fa1d 100644 --- a/unhide_rb.c +++ b/unhide_rb.c @@ -3,6 +3,8 @@ */ /* +Copyright © 2010-2021 Yago Jesus & Patrick Gouin + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -500,9 +502,9 @@ int main (int argc, char *argv[]) int found_something = FALSE ; int phase1_ko = FALSE ; - strncpy(scratch,"Unhide_rb 20130526\n", sizeof(scratch)-1) ; + strncpy(scratch,"Unhide_rb 20210124\n", sizeof(scratch)-1) ; - strncat(scratch, "Copyright © 2013 Yago Jesus & Patrick Gouin\n", sizeof(scratch)-strlen(scratch)-1); + strncat(scratch, "Copyright © 2013-2021 Yago Jesus & Patrick Gouin\n", sizeof(scratch)-strlen(scratch)-1); strncat(scratch, "License GPLv3+ : GNU GPL version 3 or later\n", sizeof(scratch)-strlen(scratch)-1); strncat(scratch, "http://www.unhide-forensics.info\n\n", sizeof(scratch)-strlen(scratch)-1); strncat(scratch, "NOTE : This version of unhide_rb is for systems using Linux >= 2.6 \n\n", sizeof(scratch)-strlen(scratch)-1);