Skip to content

Commit

Permalink
Merge pull request #687 from m-1-k-3/restart_emulation
Browse files Browse the repository at this point in the history
typo, csv cleanup
  • Loading branch information
m-1-k-3 authored Jul 6, 2023
2 parents 0010672 + 428fca2 commit c9f15e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helpers/helpers_emba_defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

set_defaults() {
# if this is a release version set RELEASE to 1, add a banner to config/banner and name the banner with the version details
export RELEASE=1
export EMBA_VERSION="1.2.3"
export RELEASE=0
export EMBA_VERSION="1.2.x"

export CLEANED=0 # used for the final cleaner function for not running it multiple times
export STRICT_MODE=0
Expand Down
2 changes: 2 additions & 0 deletions modules/L15_emulated_checks_nmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ l15_version_detector() {
print_output "[+] Version information found ${RED}""$VERSION_FINDER""${NC}${GREEN} in $TYPE_ log."
# use get_csv_rule from s09:
get_csv_rule "$VERSION_FINDER" "$CSV_REGEX"
# get rid of ; which destroys our csv:
VERSION_FINDER="${VERSION_FINDER/;}"
write_csv_log "---" "$IDENTIFIER" "$VERSION_FINDER" "$CSV_RULE" "$LIC" "$TYPE_"
continue
fi
Expand Down
2 changes: 1 addition & 1 deletion modules/L25_web_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ main_web_check() {
mapfile -t VERSIONS < <(grep "+ Server: " "$LOG_PATH_MODULE"/nikto-scan-"$IP_ADDRESS_".txt | cut -d: -f2 | sort -u | grep -v "null" | grep -e "[0-9]" | sed 's/^\ //' || true)
for VERSION in "${VERSIONS[@]}"; do
if [[ "$VERSION" != *"Server banner has changed from"* ]]; then
l15_version_detector "$VERSION" "Nikto web server scanning log"
l15_version_detector "$VERSION" "Nikto web server scanning"
fi
done

Expand Down

0 comments on commit c9f15e3

Please sign in to comment.