diff options
author | d3v1150m471c <d3v11@d3v1150m471c.ano> | 2011-07-10 07:26:48 -0500 |
---|---|---|
committer | d3v1150m471c <d3v11@d3v1150m471c.ano> | 2011-07-10 07:26:48 -0500 |
commit | 1df315f263b8c451c61d3d5ad88e1ed4c39f254b (patch) | |
tree | 3827de5a72df1e0da6f77ddd1ab3b544b271c914 | |
parent | 6682d93a6ddc22bdc801143521b94790b1a97bd2 (diff) | |
download | resdb-1df315f263b8c451c61d3d5ad88e1ed4c39f254b.tar.gz resdb-1df315f263b8c451c61d3d5ad88e1ed4c39f254b.zip |
peer2anonet:
Sun Jul 10 07:25:42 CDT 2011 - d3v1150m471c
* security checks, whitespace removed after some data
-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 |