Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo, csv cleanup #687

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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