├── .DS_Store ├── Chapter01 └── README.md ├── Chapter02 └── README.md ├── Chapter03 ├── README.md ├── ch03_arrays_01.sh ├── ch03_arrays_02.sh ├── ch03_arrays_03.sh ├── ch03_conditionals_01.sh ├── ch03_conditionals_02.sh ├── ch03_conditionals_03.sh ├── ch03_conditionals_04.sh ├── ch03_conditionals_05.sh ├── ch03_conditionals_06.sh ├── ch03_conditionals_07.sh ├── ch03_conditionals_08.sh ├── ch03_conditionals_09.sh ├── ch03_conditionals_10.sh ├── ch03_loops_01.sh ├── ch03_loops_02.sh ├── ch03_loops_03.sh ├── ch03_loops_04.sh ├── ch03_loops_05.sh ├── ch03_variables_01.sh ├── ch03_variables_02.sh ├── ch03_variables_03.sh └── ch03_variables_04.sh ├── Chapter04 ├── .DS_Store ├── ch04_positive_lookahead.sh ├── ch04_regex_01.sh ├── ch04_regex_02.sh ├── ch04_regex_03.sh ├── ch04_regex_04.sh ├── ch04_regex_05.sh ├── ch04_regex_06.sh ├── ch04_regex_07.sh ├── ch04_regex_08.sh ├── ch04_regex_09.sh ├── ch04_regex_10.sh └── test_nmap.gnmap ├── Chapter05 ├── ch05_command_substitution.sh ├── ch05_count_args.sh ├── ch05_default_args.sh ├── ch05_exit_status.sh ├── ch05_explicit_exit_status.sh ├── ch05_function definition.sh ├── ch05_gen_shellcode.sh ├── ch05_global_var.sh ├── ch05_greet.sh ├── ch05_greet_args.sh ├── ch05_importing_funcs_1.sh ├── ch05_importing_funcs_2.sh ├── ch05_local_var.sh ├── ch05_modify_global_var.sh ├── ch05_parse_args.sh ├── ch05_recursive_function.sh ├── ch05_var_lifetime.sh └── ch05_variable_args.sh ├── Chapter06 ├── HSRP_election.cap └── README.md ├── Chapter07 ├── ch07_background_1.sh ├── ch07_background_2.sh ├── ch07_background_3.sh ├── ch07_no_dependencies_scan.sh ├── ch07_parallel_1.sh ├── ch07_parallel_2.sh ├── ch07_parallel_3.sh ├── ch07_screen_1.sh └── ch07_xargs_1.sh ├── Chapter08 ├── ch08_check_mdi.sh ├── ch08_convert_nuclei_output.sh ├── ch08_dnsrecon_function.sh ├── ch08_mdi_function.sh ├── ch08_nessus.sh ├── ch08_org_function.sh ├── ch08_resolve_function.sh ├── ch08_rootdomain_function.sh └── ssl-dns-names.txt ├── Chapter09 ├── ch09_data_functions.sh └── ch09_sqliscanner.sh ├── Chapter10 ├── ch10_gvm_scan.sh └── packetcap.sh ├── Chapter11 └── ch11_checkpath.sh ├── Chapter12 ├── ch12_capabilities.sh ├── ch12_cleanup.sh ├── ch12_clear_logs.sh ├── ch12_dynamic_pivot.sh ├── ch12_persistence.service.sh └── ch12_timestamps.sh ├── Chapter13 ├── asset_info.csv ├── ch13_create_db.sh ├── ch13_generate_report.sh ├── ch13_nmap_to_db.sh ├── ch13_parse_httpx.sh ├── ch13_read_db.sh ├── httpx.json ├── nmap.xml ├── pentest_results.db ├── scan_results.csv └── vulnerability_scan.csv ├── Chapter14 ├── ch14_auto_obfuscate_1.sh ├── ch14_auto_obfuscate_2.sh ├── ch14_auto_obfuscate_4.sh ├── ch14_auto_obfuscate_5.sh ├── ch14_auto_obfuscate_6.sh ├── ch14_dns_client.sh ├── ch14_dns_server.py ├── ch14_evasion_library.sh ├── ch14_gather_basic_info.sh ├── ch14_sleep_1.sh ├── ch14_sleep_2.sh └── ch14_telemetry_check.sh ├── Chapter15 ├── ch15_metasploitdb_to_tsv.sh ├── ch15_nmap_to_tsv.sh ├── ch15_pentest_hero_chat.sh ├── ch15_pentest_hero_prompt.txt ├── ch15_prompt_1.sh └── ch15_prompt_2.sh ├── Chapter16 ├── .gitlab-ci.yml ├── Dockerfile ├── app.py ├── ch16_build_kali.sh ├── ch16_devsecops_scanner.sh ├── ch16_register_runner.sh ├── ch16_sec_monitor.sh ├── ch16_setup_environment.sh ├── ch16_setup_mail.sh ├── config.toml └── requirements.txt ├── LICENSE ├── README.md └── bash_cheatsheet.md /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/.DS_Store -------------------------------------------------------------------------------- /Chapter01/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter01/README.md -------------------------------------------------------------------------------- /Chapter02/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter02/README.md -------------------------------------------------------------------------------- /Chapter03/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter03/ch03_arrays_01.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_arrays_01.sh -------------------------------------------------------------------------------- /Chapter03/ch03_arrays_02.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_arrays_02.sh -------------------------------------------------------------------------------- /Chapter03/ch03_arrays_03.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_arrays_03.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_01.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_01.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_02.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_02.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_03.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_03.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_04.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_04.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_05.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_05.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_06.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_06.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_07.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_07.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_08.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_08.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_09.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_09.sh -------------------------------------------------------------------------------- /Chapter03/ch03_conditionals_10.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_conditionals_10.sh -------------------------------------------------------------------------------- /Chapter03/ch03_loops_01.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_loops_01.sh -------------------------------------------------------------------------------- /Chapter03/ch03_loops_02.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_loops_02.sh -------------------------------------------------------------------------------- /Chapter03/ch03_loops_03.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_loops_03.sh -------------------------------------------------------------------------------- /Chapter03/ch03_loops_04.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_loops_04.sh -------------------------------------------------------------------------------- /Chapter03/ch03_loops_05.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_loops_05.sh -------------------------------------------------------------------------------- /Chapter03/ch03_variables_01.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_variables_01.sh -------------------------------------------------------------------------------- /Chapter03/ch03_variables_02.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_variables_02.sh -------------------------------------------------------------------------------- /Chapter03/ch03_variables_03.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_variables_03.sh -------------------------------------------------------------------------------- /Chapter03/ch03_variables_04.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter03/ch03_variables_04.sh -------------------------------------------------------------------------------- /Chapter04/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/.DS_Store -------------------------------------------------------------------------------- /Chapter04/ch04_positive_lookahead.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_positive_lookahead.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_01.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_01.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_02.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_02.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_03.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_03.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_04.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_04.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_05.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_05.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_06.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_06.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_07.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/ch04_regex_07.sh -------------------------------------------------------------------------------- /Chapter04/ch04_regex_08.sh: -------------------------------------------------------------------------------- 1 | ps -ef | awk '{print $0}' -------------------------------------------------------------------------------- /Chapter04/ch04_regex_09.sh: -------------------------------------------------------------------------------- 1 | ps -ef | awk '$1=="author" { print $8 }' -------------------------------------------------------------------------------- /Chapter04/ch04_regex_10.sh: -------------------------------------------------------------------------------- 1 | ps -ef | awk '$8~/[irq/[[:digit:]]{2}-pciehp]/ { print $1"--->"$8 }' -------------------------------------------------------------------------------- /Chapter04/test_nmap.gnmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter04/test_nmap.gnmap -------------------------------------------------------------------------------- /Chapter05/ch05_command_substitution.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_command_substitution.sh -------------------------------------------------------------------------------- /Chapter05/ch05_count_args.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_count_args.sh -------------------------------------------------------------------------------- /Chapter05/ch05_default_args.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_default_args.sh -------------------------------------------------------------------------------- /Chapter05/ch05_exit_status.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_exit_status.sh -------------------------------------------------------------------------------- /Chapter05/ch05_explicit_exit_status.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_explicit_exit_status.sh -------------------------------------------------------------------------------- /Chapter05/ch05_function definition.sh: -------------------------------------------------------------------------------- 1 | function_name() { 2 | # commands go here 3 | } 4 | -------------------------------------------------------------------------------- /Chapter05/ch05_gen_shellcode.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_gen_shellcode.sh -------------------------------------------------------------------------------- /Chapter05/ch05_global_var.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_global_var.sh -------------------------------------------------------------------------------- /Chapter05/ch05_greet.sh: -------------------------------------------------------------------------------- 1 | greet() { 2 | echo "Hello, world!" 3 | } 4 | 5 | greet 6 | -------------------------------------------------------------------------------- /Chapter05/ch05_greet_args.sh: -------------------------------------------------------------------------------- 1 | greet() { 2 | echo "Hello, $1 $2!" 3 | } 4 | greet "John" "Doe" 5 | -------------------------------------------------------------------------------- /Chapter05/ch05_importing_funcs_1.sh: -------------------------------------------------------------------------------- 1 | function greet() { 2 | echo "Hello, $1!" 3 | } 4 | -------------------------------------------------------------------------------- /Chapter05/ch05_importing_funcs_2.sh: -------------------------------------------------------------------------------- 1 | source script1.sh 2 | greet "John" 3 | -------------------------------------------------------------------------------- /Chapter05/ch05_local_var.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_local_var.sh -------------------------------------------------------------------------------- /Chapter05/ch05_modify_global_var.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_modify_global_var.sh -------------------------------------------------------------------------------- /Chapter05/ch05_parse_args.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_parse_args.sh -------------------------------------------------------------------------------- /Chapter05/ch05_recursive_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_recursive_function.sh -------------------------------------------------------------------------------- /Chapter05/ch05_var_lifetime.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_var_lifetime.sh -------------------------------------------------------------------------------- /Chapter05/ch05_variable_args.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter05/ch05_variable_args.sh -------------------------------------------------------------------------------- /Chapter06/HSRP_election.cap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter06/HSRP_election.cap -------------------------------------------------------------------------------- /Chapter06/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter06/README.md -------------------------------------------------------------------------------- /Chapter07/ch07_background_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_background_1.sh -------------------------------------------------------------------------------- /Chapter07/ch07_background_2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_background_2.sh -------------------------------------------------------------------------------- /Chapter07/ch07_background_3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_background_3.sh -------------------------------------------------------------------------------- /Chapter07/ch07_no_dependencies_scan.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_no_dependencies_scan.sh -------------------------------------------------------------------------------- /Chapter07/ch07_parallel_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_parallel_1.sh -------------------------------------------------------------------------------- /Chapter07/ch07_parallel_2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_parallel_2.sh -------------------------------------------------------------------------------- /Chapter07/ch07_parallel_3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_parallel_3.sh -------------------------------------------------------------------------------- /Chapter07/ch07_screen_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_screen_1.sh -------------------------------------------------------------------------------- /Chapter07/ch07_xargs_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter07/ch07_xargs_1.sh -------------------------------------------------------------------------------- /Chapter08/ch08_check_mdi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_check_mdi.sh -------------------------------------------------------------------------------- /Chapter08/ch08_convert_nuclei_output.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_convert_nuclei_output.sh -------------------------------------------------------------------------------- /Chapter08/ch08_dnsrecon_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_dnsrecon_function.sh -------------------------------------------------------------------------------- /Chapter08/ch08_mdi_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_mdi_function.sh -------------------------------------------------------------------------------- /Chapter08/ch08_nessus.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_nessus.sh -------------------------------------------------------------------------------- /Chapter08/ch08_org_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_org_function.sh -------------------------------------------------------------------------------- /Chapter08/ch08_resolve_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_resolve_function.sh -------------------------------------------------------------------------------- /Chapter08/ch08_rootdomain_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ch08_rootdomain_function.sh -------------------------------------------------------------------------------- /Chapter08/ssl-dns-names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter08/ssl-dns-names.txt -------------------------------------------------------------------------------- /Chapter09/ch09_data_functions.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter09/ch09_data_functions.sh -------------------------------------------------------------------------------- /Chapter09/ch09_sqliscanner.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter09/ch09_sqliscanner.sh -------------------------------------------------------------------------------- /Chapter10/ch10_gvm_scan.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter10/ch10_gvm_scan.sh -------------------------------------------------------------------------------- /Chapter10/packetcap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter10/packetcap.sh -------------------------------------------------------------------------------- /Chapter11/ch11_checkpath.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter11/ch11_checkpath.sh -------------------------------------------------------------------------------- /Chapter12/ch12_capabilities.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter12/ch12_capabilities.sh -------------------------------------------------------------------------------- /Chapter12/ch12_cleanup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter12/ch12_cleanup.sh -------------------------------------------------------------------------------- /Chapter12/ch12_clear_logs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter12/ch12_clear_logs.sh -------------------------------------------------------------------------------- /Chapter12/ch12_dynamic_pivot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter12/ch12_dynamic_pivot.sh -------------------------------------------------------------------------------- /Chapter12/ch12_persistence.service.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter12/ch12_persistence.service.sh -------------------------------------------------------------------------------- /Chapter12/ch12_timestamps.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter12/ch12_timestamps.sh -------------------------------------------------------------------------------- /Chapter13/asset_info.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/asset_info.csv -------------------------------------------------------------------------------- /Chapter13/ch13_create_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/ch13_create_db.sh -------------------------------------------------------------------------------- /Chapter13/ch13_generate_report.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/ch13_generate_report.sh -------------------------------------------------------------------------------- /Chapter13/ch13_nmap_to_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/ch13_nmap_to_db.sh -------------------------------------------------------------------------------- /Chapter13/ch13_parse_httpx.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/ch13_parse_httpx.sh -------------------------------------------------------------------------------- /Chapter13/ch13_read_db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/ch13_read_db.sh -------------------------------------------------------------------------------- /Chapter13/httpx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/httpx.json -------------------------------------------------------------------------------- /Chapter13/nmap.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/nmap.xml -------------------------------------------------------------------------------- /Chapter13/pentest_results.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/pentest_results.db -------------------------------------------------------------------------------- /Chapter13/scan_results.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/scan_results.csv -------------------------------------------------------------------------------- /Chapter13/vulnerability_scan.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter13/vulnerability_scan.csv -------------------------------------------------------------------------------- /Chapter14/ch14_auto_obfuscate_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_auto_obfuscate_1.sh -------------------------------------------------------------------------------- /Chapter14/ch14_auto_obfuscate_2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_auto_obfuscate_2.sh -------------------------------------------------------------------------------- /Chapter14/ch14_auto_obfuscate_4.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_auto_obfuscate_4.sh -------------------------------------------------------------------------------- /Chapter14/ch14_auto_obfuscate_5.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_auto_obfuscate_5.sh -------------------------------------------------------------------------------- /Chapter14/ch14_auto_obfuscate_6.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_auto_obfuscate_6.sh -------------------------------------------------------------------------------- /Chapter14/ch14_dns_client.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_dns_client.sh -------------------------------------------------------------------------------- /Chapter14/ch14_dns_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_dns_server.py -------------------------------------------------------------------------------- /Chapter14/ch14_evasion_library.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_evasion_library.sh -------------------------------------------------------------------------------- /Chapter14/ch14_gather_basic_info.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_gather_basic_info.sh -------------------------------------------------------------------------------- /Chapter14/ch14_sleep_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_sleep_1.sh -------------------------------------------------------------------------------- /Chapter14/ch14_sleep_2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_sleep_2.sh -------------------------------------------------------------------------------- /Chapter14/ch14_telemetry_check.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter14/ch14_telemetry_check.sh -------------------------------------------------------------------------------- /Chapter15/ch15_metasploitdb_to_tsv.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter15/ch15_metasploitdb_to_tsv.sh -------------------------------------------------------------------------------- /Chapter15/ch15_nmap_to_tsv.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter15/ch15_nmap_to_tsv.sh -------------------------------------------------------------------------------- /Chapter15/ch15_pentest_hero_chat.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter15/ch15_pentest_hero_chat.sh -------------------------------------------------------------------------------- /Chapter15/ch15_pentest_hero_prompt.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter15/ch15_pentest_hero_prompt.txt -------------------------------------------------------------------------------- /Chapter15/ch15_prompt_1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter15/ch15_prompt_1.sh -------------------------------------------------------------------------------- /Chapter15/ch15_prompt_2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter15/ch15_prompt_2.sh -------------------------------------------------------------------------------- /Chapter16/.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/.gitlab-ci.yml -------------------------------------------------------------------------------- /Chapter16/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/Dockerfile -------------------------------------------------------------------------------- /Chapter16/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/app.py -------------------------------------------------------------------------------- /Chapter16/ch16_build_kali.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/ch16_build_kali.sh -------------------------------------------------------------------------------- /Chapter16/ch16_devsecops_scanner.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/ch16_devsecops_scanner.sh -------------------------------------------------------------------------------- /Chapter16/ch16_register_runner.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/ch16_register_runner.sh -------------------------------------------------------------------------------- /Chapter16/ch16_sec_monitor.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/ch16_sec_monitor.sh -------------------------------------------------------------------------------- /Chapter16/ch16_setup_environment.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/ch16_setup_environment.sh -------------------------------------------------------------------------------- /Chapter16/ch16_setup_mail.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/ch16_setup_mail.sh -------------------------------------------------------------------------------- /Chapter16/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/config.toml -------------------------------------------------------------------------------- /Chapter16/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/Chapter16/requirements.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/README.md -------------------------------------------------------------------------------- /bash_cheatsheet.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Bash-Shell-Scripting-for-Pentesters/HEAD/bash_cheatsheet.md --------------------------------------------------------------------------------