mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Improved extra716 and extra788
This commit is contained in:
@@ -14,11 +14,22 @@
|
||||
|
||||
# Function test_tcp_connectivity is in include/os_detector
|
||||
|
||||
# see here https://gist.github.com/rsvp/1171304/3d6714a469105faf03943b685090f90f576cf904
|
||||
|
||||
# Functions to connection responses initially used for Elasticsearch related checks
|
||||
httpStatus(){
|
||||
case $1 in
|
||||
000) SERVER_RESPONSE="000 Not responding" ;;
|
||||
200) SERVER_RESPONSE="200 Successful" ;;
|
||||
300) SERVER_RESPONSE="300 Multiple Choices" ;;
|
||||
301) SERVER_RESPONSE="301 Moved Permanently" ;;
|
||||
302) SERVER_RESPONSE="302 Found residing temporarily under different URI" ;;
|
||||
303) SERVER_RESPONSE="303 See Other" ;;
|
||||
304) SERVER_RESPONSE="304 Not Modified" ;;
|
||||
305) SERVER_RESPONSE="305 Use Proxy" ;;
|
||||
306) SERVER_RESPONSE="306 Status not defined" ;;
|
||||
307) SERVER_RESPONSE="307 Temporary Redirect" ;;
|
||||
301) SERVER_RESPONSE="301 Moved" ;;
|
||||
400) SERVER_RESPONSE="400 Error: Bad Request" ;;
|
||||
401) SERVER_RESPONSE="401 Error: Unauthorized" ;;
|
||||
403) SERVER_RESPONSE="403 Error: Forbidden" ;;
|
||||
@@ -30,6 +41,6 @@ httpStatus(){
|
||||
503) SERVER_RESPONSE="503 Error: Service Unavailable" ;;
|
||||
504) SERVER_RESPONSE="504 Error: Gateway Timeout" ;;
|
||||
505) SERVER_RESPONSE="505 Error: HTTP Version Not Supported" ;;
|
||||
*) SERVER_RESPONSE="HTTP: status not defined." ;;
|
||||
*) SERVER_RESPONSE="HTTP: SERVER_RESPONSE not defined." ;;
|
||||
esac
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user