From af42bb47f92b772411cd4235c850caa0ac988a10 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Fri, 6 Feb 2015 04:41:43 -0600 Subject: ident.sh got a format string vuln fix. ident_service.sh will ident a service given its remote IP and port. (only run if ident is running on that remote computer) argc is just because I always forget what argc is for however many args. peereid is for unix sockets' ids peerip and sockip got the same upgrade. can now use the optional argv[1] to set the number of the file descriptor to use. --- nocompile/bin/ident.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nocompile/bin/ident.sh') diff --git a/nocompile/bin/ident.sh b/nocompile/bin/ident.sh index 5a44253..a4827c4 100755 --- a/nocompile/bin/ident.sh +++ b/nocompile/bin/ident.sh @@ -1,2 +1,2 @@ #!/bin/sh -printf "$2 , $3\r\n" | nc $1 113 | tr -d '\r' +printf "%s , %s\r\n" "$2" "$3" | nc "$1" 113 | tr -d '\r' -- cgit v1.2.3