forked from YJesus/Unhide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Correct all known bugs - Fix all warnings reported by cppcheck - Fix all warnings reported by gcc 8.4 -Wall ENHANCEMENTS - Add option -u to do unbuffered output. - Flush outputs in order to not block pipe if stdout is redirected. - Add a slightly human friendlier output triggered by -H option - Print start time and end time in log (and console if -H is given) - Add time to log file name GUI - Add a simple, quick and dirty python/Tkinter tools to generate and/or run unhide-linux and unhide-tcp command. MISCELLANOUS - Adapt checkoneport() to bogus/broken text output of "recent" version of ss tool (modified end of line).
- Loading branch information
1 parent
ef9f993
commit bca2c74
Showing
22 changed files
with
1,038 additions
and
751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
unhide-linux | ||
unhide-posix | ||
unhide-tcp | ||
unhide_rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! /bin/sh | ||
gcc -Wall -O2 --static -pthread unhide-linux*.c unhide-output.c -o unhide-linux | ||
gcc -Wall -O2 --static unhide_rb.c -o unhide_rb | ||
gcc -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp | ||
gcc -Wall -O2 --static unhide-posix.c -o unhide-posix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /bin/bash | ||
|
||
/bin/ps "$@" | ||
echo 65535 my_false_proc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# echo "Le 1er paramètre est : $1" >&2 | ||
# echo "Le 2ème paramètre est : $2" >&2 | ||
# echo "Le 3ème paramètre est : $3" >&2 | ||
# echo "Le 4ème paramètre est : $4" >&2 | ||
|
||
if [ 0 -eq 1 ] | ||
then | ||
/usr/bin/netstat $@ | grep -v 631 | ||
exit | ||
elif [ "$4" != ":631" ] | ||
then | ||
# appelle le véritable ss | ||
/sbin/ss $@ | ||
else | ||
echo "Le 4ème paramètre est : $4" >&2 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /bin/bash | ||
|
||
# sanity.sh -- a growing testsuite for unhide. | ||
# | ||
# Copyright (C) 2010 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 <http://www.gnu.org/licenses/>. | ||
# | ||
# Original Author: Patrick Gouin | ||
|
||
|
||
|
||
# Sequence d'aqppel par unhide : ss -tan sport = :%d | ||
# affiche les paramètres | ||
|
||
echo "Le 1er paramètre est : $1" >&2 | ||
echo "Le 2ème paramètre est : $2" >&2 | ||
echo "Le 3ème paramètre est : $3" >&2 | ||
echo "Le 4ème paramètre est : $4" >&2 | ||
|
||
# appelle le véritable ss | ||
|
||
/sbin/ss $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.