Skip to content

Commit

Permalink
Merge pull request #314 from m-1-k-3/sanitizing_env
Browse files Browse the repository at this point in the history
Sanitizing environment
  • Loading branch information
p4cx committed Sep 24, 2022
2 parents 000755f + 7564752 commit cf8c4f4
Show file tree
Hide file tree
Showing 82 changed files with 84 additions and 83 deletions.
2 changes: 1 addition & 1 deletion check_project.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
3 changes: 2 additions & 1 deletion emba.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/bash -p
# see: https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/ShellScriptSecurity/ShellScriptSecurity.html#//apple_ref/doc/uid/TP40004268-CH8-SW29

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_dependency_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_extractors.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_helpers.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_html_generator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p
# shellcheck disable=SC2001

# EMBA - EMBEDDED LINUX ANALYZER
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_path.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_prepare.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_print.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion helpers/helpers_emba_status_bar.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion installer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/F10_license_summary.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/F20_vul_aggregator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/F21_cyclonedx_sbom.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/F50_base_aggregator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
4 changes: 2 additions & 2 deletions modules/L10_system_emulation.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down Expand Up @@ -1699,7 +1699,7 @@ write_script_exec() {

if [[ "$EXECUTE" -ne 2 ]];then
if ! [[ -f "$SCRIPT_WRITE" ]]; then
echo "#!/bin/bash" > "$SCRIPT_WRITE"
echo "#!/bin/bash -p" > "$SCRIPT_WRITE"
fi

# for the final script we need to adjust the paths:
Expand Down
2 changes: 1 addition & 1 deletion modules/L15_emulated_checks_nmap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/L20_snmp_checks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/L25_web_checks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/L30_routersploit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/L99_cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P02_firmware_bin_file_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P03_firmware_virustotal_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P05_patools_init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P10_vmdk_extractor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P11_dlink_SHRS_enc_extract.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P12_avm_freetz_ng_extract.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P13_uboot_mkimage.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P14_ext_mounter.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P15_ubi_extractor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P16_EnGenius_decryptor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P17_gpg_decompress.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P18_qnap_decryptor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P19_bsd_ufs_mounter.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P20_foscam_decryptor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P21_buffalo_decryptor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P25_android_ota.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P35_UEFI_extractor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P60_firmware_bin_extractor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P61_unblob_eval.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P65_package_extractor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/P99_prepare_analyzer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S02_UEFI_FwHunt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S03_firmware_bin_base_analyzer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S05_firmware_details.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S06_distribution_identification.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S08_package_mgmt_extractor.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S09_firmware_base_version_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S100_command_inj_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S106_deep_key_search.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S107_deep_password_search.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S108_stacs_password_search.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S109_jtr_local_pw_cracking.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S10_binaries_basic_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S110_yara_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S115_usermode_emulator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S116_qemu_version_detection.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S120_cwe_checker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S12_binary_protection.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S13_weak_func_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S14_weak_func_radare_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p
# shellcheck disable=SC2016

# EMBA - EMBEDDED LINUX ANALYZER
Expand Down
2 changes: 1 addition & 1 deletion modules/S15_bootloader_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S20_shell_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S21_python_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down
2 changes: 1 addition & 1 deletion modules/S22_php_check.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -p

# EMBA - EMBEDDED LINUX ANALYZER
#
Expand Down

0 comments on commit cf8c4f4

Please sign in to comment.