Skip to content

Commit

Permalink
Merge pull request #333 from m-1-k-3/master
Browse files Browse the repository at this point in the history
Version 1.1.2
  • Loading branch information
m-1-k-3 committed Oct 4, 2022
2 parents 312bd12 + bf8b524 commit eb33fe4
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 7 deletions.
11 changes: 11 additions & 0 deletions config/banner/KITT-01.txt
@@ -0,0 +1,11 @@

__ __ _______ _______ _______
| |/ | |_ _||_ _|_ _|
| < __ _| |_ __| |__ | |__
|__|\__|__|_______|__|___|__||___|__|


Michael: KITT can you analyze this firmware?
KITT: As usual I will use EMBA to find the weak spot ...


74 changes: 74 additions & 0 deletions config/banner/Knight_Edt-v1.1.2.txt
@@ -0,0 +1,74 @@

EMBA version 1.1.2 - Knight Rider Edt.


..............................................................................
.'cooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool,.
.:xOOkdllllllllccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccokOOkl.
.'okOOxc.;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::,.;dOOOo'.
.;xOOOd,'lkOkoolllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllokOkl.'oOOOx:.
.lkOOOo',dOkd' ,dOOd;.lkOOkl.
'oOOOkl':xOkl. .lkOkc.:kOkOo'
.,dOOOk:.ckOx: .,,,'... .:kOkl.;xOOOd;.
.:xOOOx;'lOOx, .cllollllllc;'. ;xOOo',dOkOk:.
.ckOkOd,'oOOd' .:lcccccccclloddc;. ,xOOd',dOkOkc.
.:kOkOd',dOko. .cddxxkkOkxdlccloxxo:. 'dOOd''dOOOkc.
.;kOOOo',xOko. ,cccccccccldkkxolloxkl,. 'xOOd,'dOkOk:.
.oOkOd',xOOl. ..;xOOOOkkkxollllldkxollxko, 'dOOx,'oOOOd'
,xOOk;.dOOo. .,cdkkOkkOOOOkOOOOOxolcldkdclxkc. 'dOOd''xOOx;
;kOOd.;kOx, .okOOkkOOOOOOOOOOOOOOOOkl;:dkl:oko.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:cxd::xkc. ,xOo.'dOx,
.,dOd';xOc. 'dOkOOOOOOOOOOOOOOOOOOOOOOOOOOOkkOOOkocoko:okd, 'dOd'.oOk:.
.;xOo.:kkc .dOkkOOOOOOOOOOOOOOOOOOOOOOOOOOOOkxdddxo;;oo;;lo, .oOk;.cOkc.
.:kOl'cOk: .lOOkOkOOOOOOOOOOOOOOOOOOOOOOOOkkOd,..... . . .lOk:.:kkl.
.ckOc.cOk; ;kOkOkOOOOOOOOOOOOOOOOOOOOOOOOOOOOk: .lOkc.;kOd'
.ckkc.lkx; .dOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOx; .lkkc.;xOd'
.ckkc.cOx; .:cccclllllllllllllllllllllllllllc:::' .lOkc.;xOd,
.:kkc.ckk:. ,oddooooooooooooooooooodooc' .lOkc.:kOd,
.:kkl':kkc. ;xOOOOOOOOOOOOOOOOOOkOkd:. .oOk:.ckOd'
.;xOl';xOo. .looooooooooooooooool;. ,xOx;.lkOl.
.,dOd,'oOd, 'cccllllllllllllllllllccccc:' .:kOo''oOkc.
.lkx;.ckkc. .ckOOOOOOOOOOOOOOOOOOOOOOOOOkOkc. .okkl';xOx;.
.:kkl';dOo' .lkOOkOOOOOOOOOOkkkkOOOOOOOOOkkOko. ;xOx;'lkOo'.
.,dOd,'lkx:. .okxxkkxxxxxxxxxxxxxxxxxkkkxxkkxxxxo. .lkkl';dOkc.
.ckkc',dkd, ................................... .:xOd;'ckOd,.
.;dOd;.:xko' ,oOkc';dOkc.
.ckkl,'lkkl. 'lkkl,;okOo,.
.,okxc',okxc. .lkko,,lkkx:.
.;dkx:',okkc. 'lkko;,cxOxc.
.:xOd:',okkl' 'lkko;,cxOkl'.
..:xOd:',lkkl' .,lkko;,cxOkl,.
..cxkxc',lxkl,. .;dOkl;,cxOkl,.
..:dkxl,':dkdc:;,'''''',,;cxOxc,;okOxl'.
.;okko:,;lxkkkkkkkkkkkkxo:;:dkkd:..
.,lkOxl;,,,,'''''''''';lxOko;.
.'cdOOxdddooooooooodkOxl'.
..:odxxdddddddddddl:..
................











2 changes: 1 addition & 1 deletion config/banner/Vegas_Edt-v1.1.0.txt
@@ -1,5 +1,5 @@

EMBA version 1.1.0 - Las Vegas Edt.
EMBA version 1.1.0 - Las Vegas Edt. (Historic edt.)
......
......,*///*,......
..../*,.....,,..,,*/*...
Expand Down
4 changes: 2 additions & 2 deletions emba.sh
Expand Up @@ -337,8 +337,8 @@ main()

export EMBA_PID="$$"
# 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=0
export EMBA_VERSION="1.1.x"
export RELEASE=1
export EMBA_VERSION="1.1.2"
export STRICT_MODE=0
export MATRIX_MODE=0
export UPDATE=0
Expand Down
7 changes: 4 additions & 3 deletions modules/F21_cyclonedx_sbom.sh
Expand Up @@ -25,12 +25,13 @@ F21_cyclonedx_sbom() {
local BINARY=""
local VERSION=""
local NEG_LOG=0
if ! command -v cyclonedx; then

if ! command -v cyclonedx > /dev/null; then
module_end_log "${FUNCNAME[0]}" "$NEG_LOG"
return
fi

if [[ -f "$F20_LOG" ]]; then
if [[ -f "$F20_LOG" ]] && [[ "$(wc -l "$F20_LOG" | awk '{print $1}')" -gt 1 ]]; then
if [[ -f "$CSV_DIR"/f21_cyclonedx_sbom.csv ]]; then
rm "$CSV_DIR"/f21_cyclonedx_sbom.csv
fi
Expand All @@ -52,7 +53,7 @@ F21_cyclonedx_sbom() {
cyclonedx convert --input-file "$CSV_DIR"/f21_cyclonedx_sbom.csv --output-file "$LOG_DIR"/f21_cyclonedx_sbom.json || true
fi
if [[ -f "$LOG_DIR"/f21_cyclonedx_sbom.json ]]; then
print_output "[+] SBOM in json format created in $ORANGE$LOG_DIR/f21_cyclonedx_sbom.json$NC:"
print_output "[+] SBOM in json format created:" "" "$LOG_DIR/f21_cyclonedx_sbom.json"
print_ln
tee -a "$LOG_FILE" < "$LOG_DIR"/f21_cyclonedx_sbom.json
print_ln
Expand Down
2 changes: 1 addition & 1 deletion modules/L25_web_checks.sh
Expand Up @@ -153,7 +153,7 @@ main_web_check() {

mapfile -t VERSIONS < <(grep "Retrieved x-powered-by header" "$LOG_PATH_MODULE"/nikto-scan-"$IP_ADDRESS_".txt | cut -d: -f2 | sort -u | sed 's/^\ //' | grep -e "[0-9]" || true)
for VERSION in "${VERSIONS[@]}"; do
l15_version_detector "$VERSION" "Nikto web server scanning log"
l15_version_detector "$VERSION" "Nikto web server scanning"
done

print_ln
Expand Down
3 changes: 3 additions & 0 deletions modules/S13_weak_func_check.sh
Expand Up @@ -453,6 +453,9 @@ print_top10_statistics() {
for BINARY in "${RESULTS[@]}" ; do
SEARCH_TERM="$(echo "$BINARY" | awk '{print $2}')"
F_COUNTER="$(echo "$BINARY" | awk '{print $1}')"
if [[ "$F_COUNTER" -eq 0 ]]; then
continue
fi
if [[ -f "$BASE_LINUX_FILES" ]]; then
# if we have the base linux config file we are checking it:
if grep -E -q "^$SEARCH_TERM$" "$BASE_LINUX_FILES" 2>/dev/null; then
Expand Down
3 changes: 3 additions & 0 deletions modules/S14_weak_func_radare_check.sh
Expand Up @@ -407,6 +407,9 @@ radare_print_top10_statistics() {
for BINARY in "${RESULTS[@]}" ; do
SEARCH_TERM="$(echo "$BINARY" | awk '{print $2}')"
F_COUNTER="$(echo "$BINARY" | awk '{print $1}')"
if [[ "$F_COUNTER" -eq 0 ]]; then
continue
fi
if [[ -f "$BASE_LINUX_FILES" ]]; then
# if we have the base linux config file we are checking it:
if grep -E -q "^$SEARCH_TERM$" "$BASE_LINUX_FILES" 2>/dev/null; then
Expand Down

0 comments on commit eb33fe4

Please sign in to comment.