Commit Graph

136 Commits

Author SHA1 Message Date
bcoles 9de029e2fa Post::Linux::Kernel.kernel_arch: Add support for RISC-V and LoongArch 2024-09-21 23:00:52 +10:00
jvoisin 38972a7b31 Add an Auto option to live_compile
Co-authored-by: zeroSteiner
2024-09-19 01:48:00 +02:00
Spencer McIntyre 87ccb97d79 Remove an extra end statement 2024-09-09 13:07:48 -04:00
jvoisin 4b79889052 Add clang support for live_compile?/upload_and_compile?
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
2024-09-09 13:26:24 +02:00
jvoisin f5145dee35 Minor improvements to lib/msf/core/post/linux/kernel.rb
1. Add a couple of missing architectures
2. Use `read_file` instead of `cmd_exec + cat`
2. Use File.… instead of `cmd_exec` and `test`
2024-08-22 11:34:22 +02:00
Spencer McIntyre 47c8d7252b Land #18519, Docker kernel module escape 2024-05-06 09:08:08 -04:00
RadioLogic 53ac5118cd Added report host to virtualization check 2024-04-26 21:58:43 -04:00
RadioLogic 15a9b59ccf Made case statements more readable 2024-04-26 21:55:01 -04:00
RadioLogic b51d1b9017 Made shared function with checkcontainer 2024-04-26 21:32:20 -04:00
sjanusz-r7 aac74778b9 Move memory search method to Meterpreter stdapi 2024-01-24 19:53:30 +00:00
Ron Bowes e981dde15f Move the mcp-objects out of the class and into a data/ file (per Jeffrey's request) 2022-11-23 12:49:00 -08:00
Ron Bowes 944fd07502 Add three post-modules and a mixin for communicating with F5's MCP 2022-11-16 12:09:58 -08:00
bwatters 88f14950a0 Land #16688, Add Mimipenguin
Merge branch 'land-16688' into upstream-master
2022-09-19 12:43:16 -05:00
space-r7 065fe425d3 pass in read permissions to process_open() 2022-07-01 13:05:38 -05:00
space-r7 8094c67465 switch to hash, reorder args 2022-07-01 13:05:38 -05:00
Shelby Pace 722241ed3e Update lib/msf/core/post/linux/process.rb
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
2022-07-01 12:56:44 -05:00
Shelby Pace 6ffd9a8cfa Update lib/msf/core/post/linux/process.rb
Co-authored-by: Spencer McIntyre <58950994+smcintyre-r7@users.noreply.github.com>
2022-07-01 12:56:44 -05:00
space-r7 69342f5431 add docs and mixin 2022-07-01 12:56:43 -05:00
Spencer McIntyre 2c323ae4db Move a library function to where it's needed 2022-05-23 12:36:07 -04:00
Tim W 955cc9c986 fix cross compiling 2022-03-09 06:59:25 +00:00
Gaurav Purswani a2219b9568 Merge branch 'master' into check_consistency_post_libs 2021-08-31 19:56:28 +05:30
pingport80 26d1a3d5e0 minor fixes 2021-08-31 19:46:38 +05:30
pingport80 9a03462f02 update some post libs to use library methods defined in file.rb 2021-08-31 19:25:35 +05:30
Grant Willcox 93ad6e4c93 Change unprivileged_bpf_disabled? to use read_file so it will also check if the file exists or not 2021-08-26 14:24:04 -05:00
Brendan Coles 3f5693bdb7 Msf::Post::Linux::Kernel: Check kernel.unprivileged_bpf_disabled for values 1 or 2 2021-08-21 09:29:48 +00:00
Jack Heysel 1a73cfbe25 Updated check method 2021-07-08 16:09:03 -05:00
pingport80 1d47d9e3a4 remove pid() method from post/linux/priv.rb 2021-06-03 21:29:56 +05:30
pingport80 fe8e586b22 fall to shell when meterpreter fails get_processes
shift `pidof` to `Msf::Post::Process`
2021-06-01 18:51:39 +05:30
Spencer McIntyre 97ca76038a Revert "Land #15199, Improve the get_processes API"
This reverts commit 0203989821, reversing
changes made to 0ca3dbc831.
2021-05-24 18:21:12 -04:00
Spencer McIntyre 0203989821 Land #15199, Improve the get_processes API 2021-05-24 17:17:16 -04:00
pingport80 ca803e63c3 improve get_proccesses api and remove pids() method from post/linux/priv 2021-05-14 23:50:50 +05:30
Spencer McIntyre fede87ca1f Raise an exception when a wildcard is invalid 2021-04-22 17:57:59 -04:00
Spencer McIntyre 20067d183e Use single quotes for escaping arguments consistently 2021-02-12 08:59:38 -05:00
Spencer McIntyre f31c7846d2 Escape shell arguments even more thoroughly 2021-02-11 12:25:28 -05:00
Spencer McIntyre 6562f309ce Handle whitespace in the target path 2021-02-10 17:40:42 -05:00
Spencer McIntyre 8757eb33fe Add an automatic target that uses version fingerprinting 2021-02-10 16:16:33 -05:00
Spencer McIntyre 7281d00938 Implement feedback from PR review 2021-02-04 09:25:40 -05:00
dwelch-r7 1617b3ec9b Use zeitwerk for lib/msf/core folder 2020-12-07 10:31:45 +00:00
Brendan Coles d986d27218 Remove Msf::Post::Linux::Priv.download_cmd 2020-07-22 15:45:50 +00:00
HacKurx 5630b36d5f Update PaX detection
The use of paxctld makes paxctl unnecessary.
2020-05-01 13:54:08 +00:00
Auxilus 26b2ec3d84 remove spaces at EOL 2020-03-24 18:08:34 +05:30
Tim W d364c22541 fix NameError uninitialized constant Msf::Post::Linux::Compile::Failure 2019-11-13 12:30:02 +08:00
Tim W 8c93b219d1 fix compile.rb and rubocop 2019-10-23 20:54:42 +08:00
Tim 620609c955 Update lib/msf/core/post/linux/compile.rb
Co-Authored-By: bcoles <bcoles@gmail.com>
2019-10-10 13:13:40 +08:00
Tim W ac9b4c137c add compile.rb 2019-09-03 18:46:13 +08:00
Brendan Coles 56bff4f748 Add OpenSUSE detection to Linux system lib 2019-03-13 23:18:54 +00:00
William Vu d0d383c8db Move command_exists? to Msf::Post::Common 2019-01-31 22:04:29 -06:00
William Vu f0aa002009 Land #10119, Linux post-exploitation metashell 2019-01-24 11:24:12 -06:00
William Vu 8b6807254b Fix whoami 2019-01-24 10:57:53 -06:00
Brendan Coles 9ecd22e63c Add Msf::Post::Linux::Kernel.cpu_flags 2019-01-23 11:35:38 +00:00