Grant Willcox
57bb3fbc1c
Land #14383 , Add exploit and auxiliary Python module examples and update executable loader accordingly
2021-01-22 13:03:57 -06:00
Grant Willcox
7b7bdff1cc
Relocate the check to not load the example modules from base.rb loader to the executable loader
2021-01-22 11:07:14 -06:00
dwelch-r7
319e718a95
zeitwerk lib/msf folder, eager loading works
2021-01-18 14:20:57 +00:00
dwelch-r7
1617b3ec9b
Use zeitwerk for lib/msf/core folder
2020-12-07 10:31:45 +00:00
cgranleese-r7
8d1345de73
updates .each to .map
...
Co-authored-by: adfoster-r7 <60357436+adfoster-r7@users.noreply.github.com >
2020-11-26 15:21:10 +00:00
cgranleese-r7
8bc34038ea
Adds a fix for frozen string bug when using reload_all
2020-11-26 14:52:15 +00:00
h00die
1b0529bc96
ignore loading external modules that start with example
2020-11-11 10:56:07 -05:00
h00die
87b55afd44
better code optimization
2020-10-24 10:09:10 -04:00
h00die
eb665dae7a
warn of possible external modules which are -x
2020-10-21 17:00:32 -04:00
h00die
bda836dc65
warn of possible external modules which are -x
2020-10-21 16:57:22 -04:00
h00die
4eac4882b5
more accurate external loader error
2020-10-18 21:03:13 -04:00
Alan Foster
43ecb41575
Use and semantics when searching for text
2020-08-19 15:08:55 +01:00
Alan Foster
f8523cb3e2
Add additional tests for edge cases
2020-08-19 09:37:03 +01:00
Alan Foster
baa33df45d
Always use module cache for searching
2020-08-14 19:14:54 +01:00
Alan Foster
2439342aba
Add consistent error logging for module loading
2020-06-23 11:15:08 +01:00
Adam Galway
1a2bf98222
creates standard elog & updates exisiting usages
2020-06-22 12:48:39 +01:00
cn-kali-team
38176266f9
Check encoding
2020-04-19 09:54:04 +08:00
cn-kali-team
cca50b6cfa
fix #13150
2020-04-18 13:21:46 +08:00
Brent Cook
ce991071e4
Land #12524 , update most python code with python 3 compatibility
2019-12-23 14:49:08 -06:00
wvu-r7
7ce2c63935
Land #12702 , has_check? for modules
2019-12-16 19:50:19 -06:00
Brent Cook
9cc02cb51f
Land #12643 , add additional example exploit modules
2019-12-16 11:34:33 -06:00
Adam Galway
debded62e3
add has_check? to Module & Scanner classes
2019-12-11 13:26:32 +00:00
Jeffrey Martin
662a040154
Revert "Land #12695 , Fix incorrect check status for aux modules returned by search"
...
This reverts commit 7bac2f7618 , reversing
changes made to 049986c59a .
2019-12-10 10:24:10 -06:00
Adam Galway
073f956578
avoids Scanner methods when reading for check
2019-12-10 14:21:17 +00:00
h00die
ce7a33abf5
example module review
2019-12-05 14:47:29 -05:00
Brent Cook
010cfe2d65
=~ / match?
2019-12-02 09:03:58 -06:00
Brent Cook
0f6cab0f7b
prefer starts_with? and ends_with? over creating new strings
2019-12-02 09:03:58 -06:00
h00die
da506c9684
dont load examples and syntax fixes
2019-11-29 09:11:44 -05:00
Cristina Muñoz
311b03af93
Action remainder of code review changes.
...
- Revert files that will only run as python2.
- Remove superfluous calls to list()
- Other minor cleanup
2019-11-01 19:24:22 -07:00
Cristina Muñoz
8563a29003
Convert all python code to python3. Fixes #12506 .
2019-10-31 14:16:14 -07:00
Adam Cammack
ba9c46ee91
Remove CheckCodes kludge from external modules
...
Now that the new CheckCode class can add boilerplate human text by
itself we no longer need the hash of built-in values.
2019-10-15 16:24:35 -05:00
Adam Cammack
b98327472a
Correct realname calls in the cache to fullname
2019-08-30 15:38:45 -05:00
Adam Cammack
bcccfd86b8
Teach module cache about realname
...
Also uses the class refname where appropriate since an instances refname
reflects the alias currently in use and if a module is reloaded while
using an alias the old behavior would generate spurious cache entries
that would not be cleaned up or modified. Specifically, this could
register a self-referential alias that would cause a stack overflow when
trying to `use` such an alias.
Additionally, some other `fullname`s were changed to `realname`s for
clarity.
2019-08-26 13:26:48 -05:00
Adam Cammack
948918dacb
Use alias when reloading aliased module
...
Also speeds up module reloads by avoiding module instance creating
without a type.
Fixes #12026
2019-08-22 17:58:20 -05:00
Brent Cook
463c147977
fix method check in metadata updates
2019-07-25 23:23:20 -05:00
bwatters-r7
7a8090c3e7
Fix variable name
2019-07-25 19:45:10 -05:00
bwatters-r7
7c2d214af2
Clean up debugging, move options to one place and delete superflous file
...
change the uuid handing to prevent changes to it when it gets put in payloads
2019-07-25 19:45:05 -05:00
bwatters-r7
80dbef20f2
Follow acammack's guidance for excluding filedropped exploits
...
usage of pingback payloads
2019-07-25 19:43:14 -05:00
Adam Cammack
cf59022936
Add aliases to modules
...
This allows modules that can be addressed by name to register possible
aliases for themselves by defining an `Aliases` constant in the top
level of the module.
2019-06-03 13:40:27 -05:00
Adam Cammack
c0d365aa46
Unify modules and cache with fullname method
2019-06-03 13:19:29 -05:00
Adam Cammack
40c083b894
Force UTF-8 for more module fields
2019-04-24 09:30:38 -05:00
William Vu
8e9c207d26
Clarify module name is filename as per msftidy
2019-03-11 23:53:36 -05:00
William Vu
1d8538caee
Direct user to framework.log for load problems
...
This reduces long lines and cluttered output during startup.
2019-03-11 23:40:59 -05:00
William Vu
6c4729de7e
Prefer a soft error for invalid module names
2019-03-11 22:54:34 -05:00
Brent Cook
4a4717c3db
Land #10937 , remove server/client from module cache
2019-02-12 21:28:14 -06:00
Spencer McIntyre
0908d5a2d2
Rename default_options to describe_payload_options
2019-02-02 15:01:05 -05:00
Spencer McIntyre
6343280364
Clean up external evasion module options
2019-02-01 11:54:22 -05:00
Spencer McIntyre
162139ee1d
Keep advanced options in the same list
2019-01-31 13:41:18 -05:00
Jeffrey Martin
35ec947c17
remove is_server/is_client and app search term
2019-01-31 12:14:25 -06:00
Jeffrey Martin
a4d413348b
improve definition of server/client modules
...
update the cached data to define server vs client base on the
type of exploit module instead of the module stance.
2019-01-31 11:52:22 -06:00