Commit Graph

130 Commits

Author SHA1 Message Date
Spencer McIntyre d82774be59 Test and handle REG_QWORD 2022-09-20 16:31:54 -04:00
Spencer McIntyre 2654752585 Fix REG_EXPAND_SZ correctly 2022-09-20 16:31:47 -04:00
Spencer McIntyre 80e4abe2b4 Support skipping tests and skip views on XP
XP doesn't support the /reg: command so skip those tests.
2022-09-08 13:12:01 -04:00
Spencer McIntyre 61a2bde27d Fix and test writing REG_EXPAND_SZ values 2022-09-08 12:18:28 -04:00
Spencer McIntyre 79046c5259 Add a REG_BINARY test 2022-09-06 16:53:36 -04:00
Spencer McIntyre f1a7be6c49 Fix how REG_MULTI_SZ is handled 2022-09-06 16:53:30 -04:00
adfoster-r7 29cc349649 Run rubocop --fix-layout test 2022-04-28 15:06:43 +01:00
Simon Janusz 47cdbea16f Land #16179, Update Meterpreter file existence tests for CI environments
Update Meterpreter file existence tests for CI environments
2022-03-04 12:13:51 +00:00
Simon Janusz 7b7b5c6914 Land #16197, Fix Meterpreter module tests on Windows host
Fix Meterpreter module tests on Windows host
2022-02-22 14:43:01 +00:00
adfoster-r7 603c4d67f9 Fix Meterpreter module tests on Windows host 2022-02-17 17:28:58 +00:00
alanfoster 9098709fc3 Update Meterpreter file existence tests for CI environments 2022-02-12 22:45:18 +00:00
alanfoster b1d10bd699 Fix search path date test for osx 2022-02-12 22:23:18 +00:00
Spencer McIntyre 6b64985328 Add Windows support for symlink checks 2022-01-07 09:43:37 -05:00
Spencer McIntyre 30e1b6ee81 Add tests for deleting directories and symlinks 2022-01-06 15:07:48 -05:00
Spencer McIntyre b3862ac95c Build a larger tree for testing directory removal
Add a subdirectory with it's own subfile to ensure that the directory
and its contents are removed in a truly recursive manner.
2022-01-06 15:07:48 -05:00
Spencer McIntyre 311e189c90 Update post/test/file to check directory deletion 2022-01-06 15:07:48 -05:00
Tim W c7b4a31ae6 modify Post::File tests to check write_file return value 2021-11-25 03:37:06 +00:00
Ashley Donaldson ebd927da44 Apply suggestions from code review
Co-authored-by: Grant Willcox <63261883+gwillcox-r7@users.noreply.github.com>
2021-11-12 11:56:49 +11:00
Ashley Donaldson e1b8a79c37 Added test cases for environment variable expansion on Linux 2021-11-11 20:44:40 +11:00
Tim W 4289c8b3ea Land #15441, add date filtering to stdapi_fs_search 2021-09-28 15:55:43 +01:00
Tim W f096102e1c add test case to search for an exact modified date 2021-09-24 18:58:39 +01:00
bwatters 07204dc99e Rubocop -A 2021-09-14 07:41:45 -05:00
bwatters 51c4c9bd4e Update file library and file test module to work correctly
- added file append
- changed powershell commands to script-style (they seem to work much better)
- cleaned out use of string literals for filenames in test module
2021-09-14 07:41:45 -05:00
Tim W 4228f071ca add tests for file.search 2021-09-09 19:32:18 +01:00
Spencer McIntyre 7f56fccafc Remove an extra spec in a function definition 2021-05-24 14:36:22 -04:00
Spencer McIntyre 50c013bcbb Add a compat req and fix railgun mixin references 2021-05-04 09:29:23 -04:00
Spencer McIntyre 7cf5879836 Add a meterpreter test for enumerating core commands 2021-02-19 15:51:39 -06:00
Tim W cef120b0cd fix railgun file_version and add test 2020-12-11 15:08:19 +00:00
dwelch-r7 1617b3ec9b Use zeitwerk for lib/msf/core folder 2020-12-07 10:31:45 +00:00
OJ ec2d1a886f Update modules to reference COMMAND IDs not strings 2020-06-09 11:38:14 +10:00
Tim W 78bd74eaec add a test for stderr output to the cmd_exec tests 2020-05-21 14:47:12 +08:00
bwatters-r7 299865bdeb * Clean up cmd_exec test module's dead code and add support for
inconsistent windows platform type.
* Add extra front chomp to shell_command response string because
there's a leading newline there.. for some reason?
2019-10-17 13:30:43 -05:00
Jacob Robles af1afca1e3 Land #11940, Add files to test that may not be open 2019-06-05 15:03:33 -05:00
bwatters-r7 cd182e2014 Land #11938, fix cmd_exec tests on python/windows
Merge branch 'land-11938' into upstream-master
2019-06-04 08:01:49 -05:00
bwatters-r7 e425547398 Add some files to the test that are not likely to be open 2019-06-03 08:25:46 -05:00
Tim W cd460aa2cb fix cmd_exec tests on python/windows 2019-06-03 03:47:52 +08:00
Brent Cook 53557cc92e replace trivial usage of expand_path with getenv
expand_path is not implemented consistently across platforms and
sessions, which leads to confusing behavior. In places where we have trivial
single variable expansions, this changes modules and library code to just use
getenv.

We'll look at the rest individually to see if they can also be reimplemented in
terms of getenv.
2019-05-31 17:44:35 -05:00
Brent Cook 625f383ade blank 2019-05-02 10:01:21 -05:00
Brent Cook ad1190b5c1 check for platform-specific env. variables
'USERNAME' is not a standard environment variable outside of Windows,
which leads to this test failing on non-Windows Meterpreter platforms.
2019-05-02 09:55:58 -05:00
bwatters-r7 43bc159022 Fix if/end 2018-03-06 15:01:15 -06:00
bwatters-r7 4694ef6723 Make Rubocop less angy 2018-03-06 14:54:00 -06:00
bwatters-r7 b13a54ba2b clean up some code and skip non-windows tests 2018-03-06 10:10:53 -06:00
bwatters-r7 6c177b7c3b Add windows checks 2018-03-06 12:14:33 +07:00
Tim W bfec2e8293 add more cmd_exec tests 2018-02-22 17:14:56 +08:00
Tim W 78309f30cd add test for cmd_exec 2018-02-22 16:41:37 +08:00
Brent Cook 6300758c46 use https for metaploit.com links 2017-07-24 06:26:21 -07:00
Spencer McIntyre f7c133cdf7 Add OSX support to railgun 2017-06-19 11:11:55 -04:00
Spencer McIntyre a3bcd20b26 Minor cleanups for multi-platform railgun 2017-04-25 17:45:07 -04:00
Spencer McIntyre 3347af24ba Add some basic libc definitions for railgun 2017-04-25 15:12:39 -04:00
Spencer McIntyre d3a759d631 Make changes for initial linux railgun support 2017-04-24 17:11:27 -04:00