[+] Check scripts with shellcheck and semgrep

This module tries to identify shell scripts and analyses them with shellcheck - https://www.shellcheck.net/.


==> Check scripts with shellcheck

[+] Found 2 issues in script (common linux file: yes): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/etc/init.d/rcS (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/usr/bin/ap_update.sh (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/usr/bin/insmod_wifi (-rw-r--r-- root root)
[+] Found 2 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/usr/bin/insmod_wifi_2 (-rw-r--r-- root root)
[+] Found 1 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/usr/bin/led_blink.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/usr/bin/tf_update.sh (-rw-r--r-- root root)
[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/11108416-13869836.lzma_extract/lzma.uncompressed_extract/3761304-11775640.cpio_portable_ascii_extract/usr/share/udhcpc/default.script (-rw-r--r-- root root)


==> Summary of shell issues (shellcheck)

[+] Found 15 issues in 14 shell scripts


    [+] SC2086 (info): Double quote to prevent globbing and word splitting.
    [+] SC2161 (style): Instead of '[ 1 ]', use 'true'.
    [+] SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
    [+] SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.

==> Check scripts with semgrep



==> Summary of shell issues (semgrep)

[+] Found 81 issues in 9 shell scripts


==> Check shell scripts for eval usage