diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/peer2anonet/README | 2 | ||||
-rw-r--r-- | contrib/peer2anonet/peer2anonet | 16 |
2 files changed, 10 insertions, 8 deletions
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 |