mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-11 08:48:40 +00:00
Initialized security inspection
This commit is contained in:
parent
11069392b0
commit
264d44551a
|
|
@ -72,3 +72,6 @@ done
|
||||||
|
|
||||||
# Find empty attributes
|
# Find empty attributes
|
||||||
grep -rln "=\"\"" --include \*.tpl.php ${ROOT_PATH} > ${ROOT_PATH}/${BUILD_PATH}/logs/unusedattributes.log
|
grep -rln "=\"\"" --include \*.tpl.php ${ROOT_PATH} > ${ROOT_PATH}/${BUILD_PATH}/logs/unusedattributes.log
|
||||||
|
|
||||||
|
# Html tag inspection
|
||||||
|
. ${ROOT_PATH}/${BUILD_PATH}/security.sh
|
||||||
|
|
|
||||||
39
security.sh
Normal file
39
security.sh
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. var.sh
|
||||||
|
|
||||||
|
# PHP code inspection
|
||||||
|
CODE[0]="file_get_content"
|
||||||
|
CODE[1]="fopen"
|
||||||
|
CODE[2]="include"
|
||||||
|
CODE[3]="require"
|
||||||
|
CODE[4]="file_put_content"
|
||||||
|
CODE[5]="fread"
|
||||||
|
CODE[6]="fwrite"
|
||||||
|
CODE[7]="fget"
|
||||||
|
CODE[8]="fput"
|
||||||
|
CODE[9]="chmod"
|
||||||
|
CODE[10]="eval"
|
||||||
|
CODE[11]="delete"
|
||||||
|
CODE[12]="mkdir"
|
||||||
|
CODE[13]="move_uploaded_file"
|
||||||
|
CODE[14]="mkdir"
|
||||||
|
CODE[15]="copy"
|
||||||
|
CODE[16]="chown"
|
||||||
|
CODE[17]="touch"
|
||||||
|
CODE[18]="exec"
|
||||||
|
CODE[19]="_GET"
|
||||||
|
CODE[20]="_POST"
|
||||||
|
CODE[21]="_SESSION"
|
||||||
|
CODE[22]="_REQUEST"
|
||||||
|
CODE[23]="_SERVER"
|
||||||
|
CODE[24]="_COOKIE"
|
||||||
|
CODE[25]="_FILES"
|
||||||
|
CODE[26]="unlink"
|
||||||
|
CODE[27]="action=\""
|
||||||
|
|
||||||
|
for i in "${CODE[@]}"
|
||||||
|
do
|
||||||
|
grep -rln "$i" --include \*.php ${ROOT_PATH}/phpOMS >> ${ROOT_PATH}/${BUILD_PATH}/logs/criticalcodeFramwork.log
|
||||||
|
grep -rln "$i" --include \*.php ${ROOT_PATH}/Modules >> ${ROOT_PATH}/${BUILD_PATH}/logs/criticalcodeModules.log
|
||||||
|
done
|
||||||
Loading…
Reference in New Issue
Block a user