From 1df315f263b8c451c61d3d5ad88e1ed4c39f254b Mon Sep 17 00:00:00 2001 From: d3v1150m471c Date: Sun, 10 Jul 2011 07:26:48 -0500 Subject: peer2anonet: Sun Jul 10 07:25:42 CDT 2011 - d3v1150m471c * security checks, whitespace removed after some data --- contrib/peer2anonet/README | 2 ++ contrib/peer2anonet/peer2anonet | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'contrib') diff --git a/contrib/peer2anonet/README b/contrib/peer2anonet/README index 8d4e73d..384f9f2 100644 --- a/contrib/peer2anonet/README +++ b/contrib/peer2anonet/README @@ -100,5 +100,7 @@ CHANGES: * ported for autoconfig file pipes * some security checks created + Sun Jul 10 07:25:42 CDT 2011 - d3v1150m471c + * security checks, whitespace removed after some data diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index a3a7b4d..9607204 100644 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -52,18 +52,18 @@ SECURE() { for CHECK in ${TEST[@]}; do -[[ $CHECK == *'rm '* ]] && SECURE -[[ $CHECK == *'mail '* ]] && SECURE -[[ $CHECK == *'cp '* ]] && SECURE -[[ $CHECK == *'mv '* ]] && SECURE +[[ $CHECK == *'rm'* ]] && SECURE +[[ $CHECK == *'mail'* ]] && SECURE +[[ $CHECK == *'cp'* ]] && SECURE +[[ $CHECK == *'mv'* ]] && SECURE [[ $CHECK == *'ipconfig'* ]] && SECURE [[ $CHECK == *'iwconfig'* ]] && SECURE -[[ $CHECK == *'ping '* ]] && SECURE -[[ $CHECK == *'make '* ]] && SECURE +[[ $CHECK == *'ping'* ]] && SECURE +[[ $CHECK == *'make'* ]] && SECURE [[ $CHECK == *'install'* ]] && SECURE [[ $CHECK == *'uninstall'* ]] && SECURE -[[ $CHECK == *'map '* ]] && SECURE -[[ $CHECK == *'su '* ]] && SECURE +[[ $CHECK == *'map'* ]] && SECURE +[[ $CHECK == *'su'* ]] && SECURE [[ $CHECK == *'sudo'* ]] && SECURE [[ $CHECK == *'$'* ]] && SECURE [[ $CHECK == *'!'* ]] && SECURE -- cgit v1.2.3