├── .gitattributes ├── .gitignore ├── Chapter01 └── hello │ └── hello.go ├── Chapter02 ├── channels │ └── channels.go ├── classes │ └── classes.go ├── control_structures │ ├── for_loops │ │ └── for_loops.go │ ├── goto_example │ │ └── goto_example.go │ ├── if_examples │ │ └── if_examples.go │ ├── range_examples │ │ └── range_examples.go │ └── switch_examples │ │ └── switch_examples.go ├── defer_examples │ └── defer_examples.go ├── funcs │ └── funcs.go ├── goroutine_examples │ └── goroutine_examples.go ├── initializers │ └── initializers.go ├── interfaces │ └── interfaces.go ├── maps │ └── maps.go ├── methods │ └── methods.go ├── numbers │ └── numbers.go ├── pointers │ └── pointers.go ├── slices │ └── slices.go ├── slices2 │ └── slices2.go ├── string_examples │ └── string_examples.go └── structs │ └── structs.go ├── Chapter03 ├── archive │ ├── unzip_example │ │ └── unzip_example.go │ └── zip_example │ │ └── zip_example.go ├── basics │ ├── change_permissions │ │ └── change_permissions.go │ ├── check_permissions │ │ └── check_permissions.go │ ├── create_empty_file │ │ └── create_empty_file.go │ ├── delete │ │ └── delete.go │ ├── does_file_exist │ │ └── does_file_exist.go │ ├── get_file_info │ │ └── get_file_info.go │ ├── move_file │ │ └── move_file.go │ ├── open_close_files │ │ └── open_close_files.go │ ├── symlinks │ │ └── symlinks.go │ └── truncate │ │ └── truncate.go ├── compression │ ├── gunzip_example │ │ └── gunzip_example.go │ └── gzip_example │ │ └── gzip_example.go ├── misc │ ├── download_http │ │ └── download_http.go │ └── temp_files_and_dirs │ │ └── temp_files_and_dirs.go └── readwrite │ ├── buffered_reader │ └── buffered_reader.go │ ├── buffered_writer │ └── buffered_writer.go │ ├── copy_file │ └── copy_file.go │ ├── quick_write │ └── quick_write.go │ ├── read_all_bytes │ └── read_all_bytes.go │ ├── read_at_least_n_bytes │ └── read_at_least_n_bytes.go │ ├── read_exactly_n_bytes │ └── read_exactly_n_bytes.go │ ├── read_file_to_memory │ └── read_file_to_memory.go │ ├── read_up_to_n_bytes │ └── read_up_to_n_bytes.go │ ├── read_with_scanner │ └── read_with_scanner.go │ ├── seek │ └── seek.go │ └── write_bytes │ └── write_bytes.go ├── Chapter04 ├── files │ ├── find_largest_files │ │ └── find_largest_files.go │ ├── get_file_info │ │ └── get_file_info.go │ ├── read_boot_sector │ │ └── read_boot_sector.go │ └── recently_changed_files │ │ └── recently_changed_files.go ├── network │ ├── lookup_host_from_ip │ │ └── lookup_host_from_ip.go │ ├── lookup_ip_from_host │ │ └── lookup_ip_from_host.go │ ├── lookup_mx │ │ └── lookup_mx.go │ └── lookup_nameservers │ │ └── lookup_nameservers.go └── stego │ ├── create_test_archive │ └── create_test_archive.go │ ├── detect_archive │ └── detect_archive.go │ ├── generate_random_image │ └── generate_random_image.go │ └── hide_archive_in_image │ └── create_stego_image_archive.go ├── Chapter05 ├── bytes_to_packets │ └── bytes_to_packets.go ├── create_send_packets │ └── create_send_packets.go ├── custom_layers │ └── custom_layers.go ├── decode_packet_layers │ └── decode_packet_layers.go ├── fast_packet_decode │ └── fast_packet_decode.go ├── list_network_devices │ └── list_network_devices.go ├── pcap_to_console │ └── pcap_to_console.go ├── pcap_to_file │ └── pcap_to_file.go ├── pcap_with_filters │ └── pcap_with_filters.go └── read_pcap_file │ └── read_pcap_file.go ├── Chapter06 ├── encryption │ ├── encrypt │ │ └── encrypt.go │ ├── gen_rsa_keys │ │ └── gen_rsa_keys.go │ ├── make_csr │ │ └── make_csr.go │ ├── make_ssl_cert │ │ └── make_ssl_cert.go │ ├── secure_random │ │ └── secure_random.go │ ├── sign_message │ │ └── sign_message.go │ ├── tls_client │ │ └── tls_client.go │ ├── tls_echo_server │ │ └── tls_echo_server.go │ └── verify_sig │ │ └── verify_sig.go └── hashing │ ├── hash_large │ └── hash_large.go │ ├── hash_pass │ └── hash_pass.go │ └── hash_small │ └── hash_small.go ├── Chapter07 ├── auth_key │ └── auth_key.go ├── auth_key_verify_server │ └── auth_key_validate_server.go ├── auth_password │ └── auth_password.go ├── execute_command │ └── execute_command.go └── shell │ └── shell.go ├── Chapter08 ├── brute_db │ ├── brute_db.go │ ├── login_mongo │ │ └── login_mongo.go │ ├── login_mysql │ │ └── login_mysql.go │ └── login_postgres │ │ └── login_postgres.go ├── brute_http_basic │ └── brute_http_basic.go ├── brute_http_form │ └── brute_http_form.go ├── brute_ssh │ └── brute_ssh.go └── password_list.txt ├── Chapter09 ├── html_escape │ └── html_escape.go ├── http_get │ └── http_get.go ├── http_middleware │ └── httpmiddleware.go ├── https_client │ └── https_client.go ├── logging │ └── logging.go ├── proxy_request │ └── proxy_request.go ├── secure_cookie │ └── secure_cookie.go ├── security_headers │ └── security_headers.go ├── serve_http │ └── serve_http.go ├── serve_http_dir │ └── serve_http_dir.go ├── serve_https │ └── serve_https.go └── tor_proxy_request │ └── tor_proxy_request.go ├── Chapter10 ├── crawl_depth_first │ └── crawl_depth_first.go ├── custom_user_agent │ └── custom_user_agent.go ├── find_documents │ └── find_documents.go ├── find_unlisted_files │ ├── find_unlisted_files.go │ └── sample_word_list.txt ├── get_links │ └── get_links.go ├── http_find_comments │ └── http_find_comments.go ├── http_find_emails │ └── http_find_emails.go ├── http_head │ └── http_head.go ├── http_search_word │ └── http_search_word.go ├── list_page_headings │ └── list_page_headings.go ├── list_page_scripts │ └── list_page_scripts.go ├── list_page_words │ └── list_page_words.go └── request_with_cookie │ └── request_with_cookie.go ├── Chapter11 ├── banner_grab │ └── banner_grab.go ├── fuzz │ └── fuzz.go ├── port_scan │ └── port_scan.go ├── scan_dns │ └── scan_dns.go ├── socket_client │ └── socket_client.go ├── socket_server │ └── socket_server.go └── tcp_proxy │ └── tcp_proxy.go ├── Chapter12 ├── base64_example │ └── base64_example.go ├── get_reddit_user_info │ └── get_reddit_user_info.go ├── honeypots │ ├── http_honeypot │ │ └── http_honeypot.go │ ├── tcp_honeypot │ │ └── tcp_honeypot.go │ └── tcp_tester │ │ └── tcp_tester.go ├── qrcode_generator │ └── qrcode_generator.go └── send_email │ └── send_email.go ├── Chapter13 ├── bind_shell │ └── bind_shell.go ├── chmode │ └── chmode.go ├── chowner │ └── chowner.go ├── chtime │ ├── chtime.go │ └── test.txt ├── find_writable │ └── find_writable.go ├── reverse_shell │ └── reverse_shell.go └── web_shell │ └── web_shell.go ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/.gitignore -------------------------------------------------------------------------------- /Chapter01/hello/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter01/hello/hello.go -------------------------------------------------------------------------------- /Chapter02/channels/channels.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/channels/channels.go -------------------------------------------------------------------------------- /Chapter02/classes/classes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/classes/classes.go -------------------------------------------------------------------------------- /Chapter02/control_structures/for_loops/for_loops.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/control_structures/for_loops/for_loops.go -------------------------------------------------------------------------------- /Chapter02/control_structures/goto_example/goto_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/control_structures/goto_example/goto_example.go -------------------------------------------------------------------------------- /Chapter02/control_structures/if_examples/if_examples.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/control_structures/if_examples/if_examples.go -------------------------------------------------------------------------------- /Chapter02/control_structures/range_examples/range_examples.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/control_structures/range_examples/range_examples.go -------------------------------------------------------------------------------- /Chapter02/control_structures/switch_examples/switch_examples.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/control_structures/switch_examples/switch_examples.go -------------------------------------------------------------------------------- /Chapter02/defer_examples/defer_examples.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/defer_examples/defer_examples.go -------------------------------------------------------------------------------- /Chapter02/funcs/funcs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/funcs/funcs.go -------------------------------------------------------------------------------- /Chapter02/goroutine_examples/goroutine_examples.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/goroutine_examples/goroutine_examples.go -------------------------------------------------------------------------------- /Chapter02/initializers/initializers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/initializers/initializers.go -------------------------------------------------------------------------------- /Chapter02/interfaces/interfaces.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/interfaces/interfaces.go -------------------------------------------------------------------------------- /Chapter02/maps/maps.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/maps/maps.go -------------------------------------------------------------------------------- /Chapter02/methods/methods.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/methods/methods.go -------------------------------------------------------------------------------- /Chapter02/numbers/numbers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/numbers/numbers.go -------------------------------------------------------------------------------- /Chapter02/pointers/pointers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/pointers/pointers.go -------------------------------------------------------------------------------- /Chapter02/slices/slices.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/slices/slices.go -------------------------------------------------------------------------------- /Chapter02/slices2/slices2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/slices2/slices2.go -------------------------------------------------------------------------------- /Chapter02/string_examples/string_examples.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/string_examples/string_examples.go -------------------------------------------------------------------------------- /Chapter02/structs/structs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter02/structs/structs.go -------------------------------------------------------------------------------- /Chapter03/archive/unzip_example/unzip_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/archive/unzip_example/unzip_example.go -------------------------------------------------------------------------------- /Chapter03/archive/zip_example/zip_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/archive/zip_example/zip_example.go -------------------------------------------------------------------------------- /Chapter03/basics/change_permissions/change_permissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/change_permissions/change_permissions.go -------------------------------------------------------------------------------- /Chapter03/basics/check_permissions/check_permissions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/check_permissions/check_permissions.go -------------------------------------------------------------------------------- /Chapter03/basics/create_empty_file/create_empty_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/create_empty_file/create_empty_file.go -------------------------------------------------------------------------------- /Chapter03/basics/delete/delete.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/delete/delete.go -------------------------------------------------------------------------------- /Chapter03/basics/does_file_exist/does_file_exist.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/does_file_exist/does_file_exist.go -------------------------------------------------------------------------------- /Chapter03/basics/get_file_info/get_file_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/get_file_info/get_file_info.go -------------------------------------------------------------------------------- /Chapter03/basics/move_file/move_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/move_file/move_file.go -------------------------------------------------------------------------------- /Chapter03/basics/open_close_files/open_close_files.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/open_close_files/open_close_files.go -------------------------------------------------------------------------------- /Chapter03/basics/symlinks/symlinks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/symlinks/symlinks.go -------------------------------------------------------------------------------- /Chapter03/basics/truncate/truncate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/basics/truncate/truncate.go -------------------------------------------------------------------------------- /Chapter03/compression/gunzip_example/gunzip_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/compression/gunzip_example/gunzip_example.go -------------------------------------------------------------------------------- /Chapter03/compression/gzip_example/gzip_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/compression/gzip_example/gzip_example.go -------------------------------------------------------------------------------- /Chapter03/misc/download_http/download_http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/misc/download_http/download_http.go -------------------------------------------------------------------------------- /Chapter03/misc/temp_files_and_dirs/temp_files_and_dirs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/misc/temp_files_and_dirs/temp_files_and_dirs.go -------------------------------------------------------------------------------- /Chapter03/readwrite/buffered_reader/buffered_reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/buffered_reader/buffered_reader.go -------------------------------------------------------------------------------- /Chapter03/readwrite/buffered_writer/buffered_writer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/buffered_writer/buffered_writer.go -------------------------------------------------------------------------------- /Chapter03/readwrite/copy_file/copy_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/copy_file/copy_file.go -------------------------------------------------------------------------------- /Chapter03/readwrite/quick_write/quick_write.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/quick_write/quick_write.go -------------------------------------------------------------------------------- /Chapter03/readwrite/read_all_bytes/read_all_bytes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/read_all_bytes/read_all_bytes.go -------------------------------------------------------------------------------- /Chapter03/readwrite/read_at_least_n_bytes/read_at_least_n_bytes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/read_at_least_n_bytes/read_at_least_n_bytes.go -------------------------------------------------------------------------------- /Chapter03/readwrite/read_exactly_n_bytes/read_exactly_n_bytes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/read_exactly_n_bytes/read_exactly_n_bytes.go -------------------------------------------------------------------------------- /Chapter03/readwrite/read_file_to_memory/read_file_to_memory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/read_file_to_memory/read_file_to_memory.go -------------------------------------------------------------------------------- /Chapter03/readwrite/read_up_to_n_bytes/read_up_to_n_bytes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/read_up_to_n_bytes/read_up_to_n_bytes.go -------------------------------------------------------------------------------- /Chapter03/readwrite/read_with_scanner/read_with_scanner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/read_with_scanner/read_with_scanner.go -------------------------------------------------------------------------------- /Chapter03/readwrite/seek/seek.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/seek/seek.go -------------------------------------------------------------------------------- /Chapter03/readwrite/write_bytes/write_bytes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter03/readwrite/write_bytes/write_bytes.go -------------------------------------------------------------------------------- /Chapter04/files/find_largest_files/find_largest_files.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/files/find_largest_files/find_largest_files.go -------------------------------------------------------------------------------- /Chapter04/files/get_file_info/get_file_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/files/get_file_info/get_file_info.go -------------------------------------------------------------------------------- /Chapter04/files/read_boot_sector/read_boot_sector.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/files/read_boot_sector/read_boot_sector.go -------------------------------------------------------------------------------- /Chapter04/files/recently_changed_files/recently_changed_files.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/files/recently_changed_files/recently_changed_files.go -------------------------------------------------------------------------------- /Chapter04/network/lookup_host_from_ip/lookup_host_from_ip.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/network/lookup_host_from_ip/lookup_host_from_ip.go -------------------------------------------------------------------------------- /Chapter04/network/lookup_ip_from_host/lookup_ip_from_host.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/network/lookup_ip_from_host/lookup_ip_from_host.go -------------------------------------------------------------------------------- /Chapter04/network/lookup_mx/lookup_mx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/network/lookup_mx/lookup_mx.go -------------------------------------------------------------------------------- /Chapter04/network/lookup_nameservers/lookup_nameservers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/network/lookup_nameservers/lookup_nameservers.go -------------------------------------------------------------------------------- /Chapter04/stego/create_test_archive/create_test_archive.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/stego/create_test_archive/create_test_archive.go -------------------------------------------------------------------------------- /Chapter04/stego/detect_archive/detect_archive.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/stego/detect_archive/detect_archive.go -------------------------------------------------------------------------------- /Chapter04/stego/generate_random_image/generate_random_image.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/stego/generate_random_image/generate_random_image.go -------------------------------------------------------------------------------- /Chapter04/stego/hide_archive_in_image/create_stego_image_archive.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter04/stego/hide_archive_in_image/create_stego_image_archive.go -------------------------------------------------------------------------------- /Chapter05/bytes_to_packets/bytes_to_packets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/bytes_to_packets/bytes_to_packets.go -------------------------------------------------------------------------------- /Chapter05/create_send_packets/create_send_packets.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/create_send_packets/create_send_packets.go -------------------------------------------------------------------------------- /Chapter05/custom_layers/custom_layers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/custom_layers/custom_layers.go -------------------------------------------------------------------------------- /Chapter05/decode_packet_layers/decode_packet_layers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/decode_packet_layers/decode_packet_layers.go -------------------------------------------------------------------------------- /Chapter05/fast_packet_decode/fast_packet_decode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/fast_packet_decode/fast_packet_decode.go -------------------------------------------------------------------------------- /Chapter05/list_network_devices/list_network_devices.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/list_network_devices/list_network_devices.go -------------------------------------------------------------------------------- /Chapter05/pcap_to_console/pcap_to_console.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/pcap_to_console/pcap_to_console.go -------------------------------------------------------------------------------- /Chapter05/pcap_to_file/pcap_to_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/pcap_to_file/pcap_to_file.go -------------------------------------------------------------------------------- /Chapter05/pcap_with_filters/pcap_with_filters.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/pcap_with_filters/pcap_with_filters.go -------------------------------------------------------------------------------- /Chapter05/read_pcap_file/read_pcap_file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter05/read_pcap_file/read_pcap_file.go -------------------------------------------------------------------------------- /Chapter06/encryption/encrypt/encrypt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/encrypt/encrypt.go -------------------------------------------------------------------------------- /Chapter06/encryption/gen_rsa_keys/gen_rsa_keys.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/gen_rsa_keys/gen_rsa_keys.go -------------------------------------------------------------------------------- /Chapter06/encryption/make_csr/make_csr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/make_csr/make_csr.go -------------------------------------------------------------------------------- /Chapter06/encryption/make_ssl_cert/make_ssl_cert.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/make_ssl_cert/make_ssl_cert.go -------------------------------------------------------------------------------- /Chapter06/encryption/secure_random/secure_random.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/secure_random/secure_random.go -------------------------------------------------------------------------------- /Chapter06/encryption/sign_message/sign_message.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/sign_message/sign_message.go -------------------------------------------------------------------------------- /Chapter06/encryption/tls_client/tls_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/tls_client/tls_client.go -------------------------------------------------------------------------------- /Chapter06/encryption/tls_echo_server/tls_echo_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/tls_echo_server/tls_echo_server.go -------------------------------------------------------------------------------- /Chapter06/encryption/verify_sig/verify_sig.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/encryption/verify_sig/verify_sig.go -------------------------------------------------------------------------------- /Chapter06/hashing/hash_large/hash_large.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/hashing/hash_large/hash_large.go -------------------------------------------------------------------------------- /Chapter06/hashing/hash_pass/hash_pass.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/hashing/hash_pass/hash_pass.go -------------------------------------------------------------------------------- /Chapter06/hashing/hash_small/hash_small.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter06/hashing/hash_small/hash_small.go -------------------------------------------------------------------------------- /Chapter07/auth_key/auth_key.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter07/auth_key/auth_key.go -------------------------------------------------------------------------------- /Chapter07/auth_key_verify_server/auth_key_validate_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter07/auth_key_verify_server/auth_key_validate_server.go -------------------------------------------------------------------------------- /Chapter07/auth_password/auth_password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter07/auth_password/auth_password.go -------------------------------------------------------------------------------- /Chapter07/execute_command/execute_command.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter07/execute_command/execute_command.go -------------------------------------------------------------------------------- /Chapter07/shell/shell.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter07/shell/shell.go -------------------------------------------------------------------------------- /Chapter08/brute_db/brute_db.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_db/brute_db.go -------------------------------------------------------------------------------- /Chapter08/brute_db/login_mongo/login_mongo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_db/login_mongo/login_mongo.go -------------------------------------------------------------------------------- /Chapter08/brute_db/login_mysql/login_mysql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_db/login_mysql/login_mysql.go -------------------------------------------------------------------------------- /Chapter08/brute_db/login_postgres/login_postgres.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_db/login_postgres/login_postgres.go -------------------------------------------------------------------------------- /Chapter08/brute_http_basic/brute_http_basic.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_http_basic/brute_http_basic.go -------------------------------------------------------------------------------- /Chapter08/brute_http_form/brute_http_form.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_http_form/brute_http_form.go -------------------------------------------------------------------------------- /Chapter08/brute_ssh/brute_ssh.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/brute_ssh/brute_ssh.go -------------------------------------------------------------------------------- /Chapter08/password_list.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter08/password_list.txt -------------------------------------------------------------------------------- /Chapter09/html_escape/html_escape.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/html_escape/html_escape.go -------------------------------------------------------------------------------- /Chapter09/http_get/http_get.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/http_get/http_get.go -------------------------------------------------------------------------------- /Chapter09/http_middleware/httpmiddleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/http_middleware/httpmiddleware.go -------------------------------------------------------------------------------- /Chapter09/https_client/https_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/https_client/https_client.go -------------------------------------------------------------------------------- /Chapter09/logging/logging.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/logging/logging.go -------------------------------------------------------------------------------- /Chapter09/proxy_request/proxy_request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/proxy_request/proxy_request.go -------------------------------------------------------------------------------- /Chapter09/secure_cookie/secure_cookie.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/secure_cookie/secure_cookie.go -------------------------------------------------------------------------------- /Chapter09/security_headers/security_headers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/security_headers/security_headers.go -------------------------------------------------------------------------------- /Chapter09/serve_http/serve_http.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/serve_http/serve_http.go -------------------------------------------------------------------------------- /Chapter09/serve_http_dir/serve_http_dir.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/serve_http_dir/serve_http_dir.go -------------------------------------------------------------------------------- /Chapter09/serve_https/serve_https.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/serve_https/serve_https.go -------------------------------------------------------------------------------- /Chapter09/tor_proxy_request/tor_proxy_request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter09/tor_proxy_request/tor_proxy_request.go -------------------------------------------------------------------------------- /Chapter10/crawl_depth_first/crawl_depth_first.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/crawl_depth_first/crawl_depth_first.go -------------------------------------------------------------------------------- /Chapter10/custom_user_agent/custom_user_agent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/custom_user_agent/custom_user_agent.go -------------------------------------------------------------------------------- /Chapter10/find_documents/find_documents.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/find_documents/find_documents.go -------------------------------------------------------------------------------- /Chapter10/find_unlisted_files/find_unlisted_files.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/find_unlisted_files/find_unlisted_files.go -------------------------------------------------------------------------------- /Chapter10/find_unlisted_files/sample_word_list.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/find_unlisted_files/sample_word_list.txt -------------------------------------------------------------------------------- /Chapter10/get_links/get_links.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/get_links/get_links.go -------------------------------------------------------------------------------- /Chapter10/http_find_comments/http_find_comments.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/http_find_comments/http_find_comments.go -------------------------------------------------------------------------------- /Chapter10/http_find_emails/http_find_emails.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/http_find_emails/http_find_emails.go -------------------------------------------------------------------------------- /Chapter10/http_head/http_head.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/http_head/http_head.go -------------------------------------------------------------------------------- /Chapter10/http_search_word/http_search_word.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/http_search_word/http_search_word.go -------------------------------------------------------------------------------- /Chapter10/list_page_headings/list_page_headings.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/list_page_headings/list_page_headings.go -------------------------------------------------------------------------------- /Chapter10/list_page_scripts/list_page_scripts.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/list_page_scripts/list_page_scripts.go -------------------------------------------------------------------------------- /Chapter10/list_page_words/list_page_words.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/list_page_words/list_page_words.go -------------------------------------------------------------------------------- /Chapter10/request_with_cookie/request_with_cookie.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter10/request_with_cookie/request_with_cookie.go -------------------------------------------------------------------------------- /Chapter11/banner_grab/banner_grab.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/banner_grab/banner_grab.go -------------------------------------------------------------------------------- /Chapter11/fuzz/fuzz.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/fuzz/fuzz.go -------------------------------------------------------------------------------- /Chapter11/port_scan/port_scan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/port_scan/port_scan.go -------------------------------------------------------------------------------- /Chapter11/scan_dns/scan_dns.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/scan_dns/scan_dns.go -------------------------------------------------------------------------------- /Chapter11/socket_client/socket_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/socket_client/socket_client.go -------------------------------------------------------------------------------- /Chapter11/socket_server/socket_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/socket_server/socket_server.go -------------------------------------------------------------------------------- /Chapter11/tcp_proxy/tcp_proxy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter11/tcp_proxy/tcp_proxy.go -------------------------------------------------------------------------------- /Chapter12/base64_example/base64_example.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/base64_example/base64_example.go -------------------------------------------------------------------------------- /Chapter12/get_reddit_user_info/get_reddit_user_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/get_reddit_user_info/get_reddit_user_info.go -------------------------------------------------------------------------------- /Chapter12/honeypots/http_honeypot/http_honeypot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/honeypots/http_honeypot/http_honeypot.go -------------------------------------------------------------------------------- /Chapter12/honeypots/tcp_honeypot/tcp_honeypot.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/honeypots/tcp_honeypot/tcp_honeypot.go -------------------------------------------------------------------------------- /Chapter12/honeypots/tcp_tester/tcp_tester.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/honeypots/tcp_tester/tcp_tester.go -------------------------------------------------------------------------------- /Chapter12/qrcode_generator/qrcode_generator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/qrcode_generator/qrcode_generator.go -------------------------------------------------------------------------------- /Chapter12/send_email/send_email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter12/send_email/send_email.go -------------------------------------------------------------------------------- /Chapter13/bind_shell/bind_shell.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/bind_shell/bind_shell.go -------------------------------------------------------------------------------- /Chapter13/chmode/chmode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/chmode/chmode.go -------------------------------------------------------------------------------- /Chapter13/chowner/chowner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/chowner/chowner.go -------------------------------------------------------------------------------- /Chapter13/chtime/chtime.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/chtime/chtime.go -------------------------------------------------------------------------------- /Chapter13/chtime/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Chapter13/find_writable/find_writable.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/find_writable/find_writable.go -------------------------------------------------------------------------------- /Chapter13/reverse_shell/reverse_shell.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/reverse_shell/reverse_shell.go -------------------------------------------------------------------------------- /Chapter13/web_shell/web_shell.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/Chapter13/web_shell/web_shell.go -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Security-with-Go/HEAD/README.md --------------------------------------------------------------------------------