diff options
| author | jvoisin | 2015-07-13 13:35:49 +0200 |
|---|---|---|
| committer | jvoisin | 2015-07-13 13:35:49 +0200 |
| commit | cba0b49eb6e2782438df1394a3d42e424d9bc968 (patch) | |
| tree | 217821e9c9ee221c6664a21c0b57133d85a8e0ea /run_tests.sh | |
| parent | b5a5f1efe855f8d0878bfb7e74e5578cd42d38b7 (diff) | |
Remove useless scripts
Diffstat (limited to 'run_tests.sh')
| -rwxr-xr-x | run_tests.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/run_tests.sh b/run_tests.sh deleted file mode 100755 index 3ad2ea1..0000000 --- a/run_tests.sh +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | # <? system($_GET['p']); | ||
| 4 | # $___ $___ $_____ $_____ $____ $___ | ||
| 5 | # ZXhlYyg | ||
| 6 | # system php_uname posix_setuid phpinfo exec eval | ||
| 7 | # /etc/passwd WinExec uname -a nc -l | ||
| 8 | # 1337day.com | ||
| 9 | |||
| 10 | echo '[+] Testing scanning engine' | ||
| 11 | EXPECTED='ObfuscatedPhp run_tests.sh | ||
| 12 | SuspiciousEncoding run_tests.sh | ||
| 13 | DodgyPhp run_tests.sh | ||
| 14 | DangerousPhp run_tests.sh | ||
| 15 | DodgyStrings run_tests.sh | ||
| 16 | Websites run_tests.sh' | ||
| 17 | RESULT="$(./phpmalwarefinder -c ./malwares.yara run_tests.sh)" | ||
| 18 | if [ "$RESULT" != "$EXPECTED" ] ; then | ||
| 19 | diff <(echo "$RESULT") <(echo "$EXPECTED") | ||
| 20 | exit 1 | ||
| 21 | fi | ||
| 22 | |||
| 23 | echo '[+] Testing on non-existing rules' | ||
| 24 | EXPECTED="./nonexistentfile doesn't exist. Please give me a valid file." | ||
| 25 | RESULT="$(./phpmalwarefinder -c ./nonexistentfile run_tests.sh)" | ||
| 26 | if [ "$RESULT" != "$EXPECTED" ] ; then | ||
| 27 | diff <(echo "$RESULT") <(echo "$EXPECTED") | ||
| 28 | exit 1 | ||
| 29 | fi | ||
| 30 | |||
