usiegl00
09ae52fecd
Update smb_shadow and shadow_mitm_dispatcher
...
Remove duplicated print_status messages. Use respond_to? instead of
methods.include?. Simplify payload generation. Fix naming for the rst
capture thread.
2022-04-05 20:03:14 +09:00
usiegl00
7e010cbde2
Merge master and update smb_shadow + dispatcher
...
The smb_shadow module can confirm the server smb version supported with
the ConfirmServerDialect option. The shadow_mitm_dispatcher closes each
stream before opening a new one to prevent leaking file descriptors.
2022-04-02 10:39:02 +09:00
usiegl00
6d94a316cf
Add packet fragmentation to ShadowMitmDispatcher
...
The ShadowMitmDispatcher now supports arbitrary size packets. The
ShadowMitmDispatcher now supports SMB3. The ShadowMitmDispatcher no
longer interferes with existing sessions.
2022-02-18 17:05:37 +09:00
usiegl00
881805c543
Update ShadowMitmDispatcher fix PacketFu timeout
...
Setting the timeout to 0 was causing packet capturing issues in
PacketFu. Using cap.stream.each_data instead of cap.next reduces cpu
usage.
2022-02-13 21:24:57 +09:00
usiegl00
72a0732009
Update ShadowMitmDispatcher to reduce ip lookups
...
The ShadowMitmDispatcher must be initialized with an interface, mac, and
ip address as keyword arguments. This prevents dispatchers from
retrieving the same network configuration multiple times.
2022-02-11 22:35:40 +09:00
usiegl00
8558f88a14
Update the Shadow Dispatcher for portability
...
Use PacketFu::Utils.whoami? instead of PacketFu::Utils.default_int to
retrieve the ip address for a network interface. The Exploit class for
the Shadow Dispatcher is now a module.
2022-02-10 22:42:25 +09:00
usiegl00
8bf51dd1d8
Update smb_shadow and shadow_mitm_dispatcher
...
The dispatcher no longer uses an override flag, Instead the smb_shadow
module explicitly sets the attributes.
2022-01-31 14:49:18 +09:00
usiegl00
0259e586a9
Update smb_shadow module and rename MitmDispatcher
...
The MitmDispatcher is now the ShadowMitmDispatcher to help prevent name
confusion. Updated the ShadowMitmDispatcher to use native rex lib calls
to decode binary fields.
2022-01-28 08:39:07 +09:00
usiegl00
5cc716fa0d
Add MitmDispatcher to the smb_shadow module
...
The MitmDispatcher reduces code repetition and enables the use of
standard RubySMB syntax. I have noticed increased power draw when using
the new dispatcher compared to the previous (less stateful) approach.
2022-01-21 14:57:07 +09:00
dwelch-r7
1617b3ec9b
Use zeitwerk for lib/msf/core folder
2020-12-07 10:31:45 +00:00
Spencer McIntyre
58a56a2b24
Support an explicit backend for the SMB simple client
2020-08-28 17:28:07 -04:00
Jeffrey Martin
65039a5091
Merge upstream into 6.x
2020-07-15 09:58:07 -05:00
Spencer McIntyre
700d2ff819
Fix the SMB share for the psexec command target
2020-07-06 10:36:25 -04:00
Spencer McIntyre
9dc02229e9
Support ARCH_CMD payloads in the psexec exploit module
2020-07-06 10:33:03 -04:00
Adam Galway
1a2bf98222
creates standard elog & updates exisiting usages
2020-06-22 12:48:39 +01:00
Christophe De La Fuente
a9a1d01419
Update some libraries and modules
2020-06-09 14:18:52 +02:00
Christophe De La Fuente
0bb93b4efb
Update modules
...
- ms17_010_command and ms17_010_psexec: deregister
SMB::ProtocolVersion option
- client: update error handling
- is_known_pipename: force SMB1 only for #enumerate_directories and
update error handling
2020-06-09 14:18:52 +02:00
Christophe De La Fuente
04a44d2334
Improve client error/warning/debug messages
2020-06-09 14:18:52 +02:00
Christophe De La Fuente
31a117f8f7
Update modules
...
- smb_ms17_010.rb
- psexec_ms17_010.rb
- psexec_psh.rb
- smb_enumshares.rb
2020-06-09 14:18:52 +02:00
Christophe De La Fuente
474d7ebbab
Update SMB client
...
- Add SMB::AlwaysEncrypt option
- Force SMB1 for SMB fingerprint
- Update smb_netshareenumall
2020-06-09 14:18:51 +02:00
Christophe De La Fuente
6ab47eb001
Update SMB Client and SimpleClient
...
- multiple protocol version negotiation
- SMB 1, 2 and 3 by default
- add SMB::ProtocolVersion option to SMB Client mixin
2020-06-09 14:18:51 +02:00
cn-kali-team
1b796aa50b
OptString to OptPort
2020-05-30 10:27:48 +08:00
Clément Notin
258895f534
Use print_error for error messages
2020-05-12 00:02:52 +02:00
Clément Notin
b7d16b1e72
Fix regression in psexec mixing filename and encoder
...
Closes #13407
2020-05-12 00:02:52 +02:00
Christophe De La Fuente
071b9598a4
Add support to SMBv2 and remove catch-all exception handler
2020-02-26 11:53:41 +01:00
ines
4856e0f87d
remove call for to_ascii on share_type
2019-07-28 10:19:58 +02:00
William Vu
b5622b160e
Fix typo
2019-05-22 19:59:08 -05:00
William Vu
0febc730fa
Clarify comment
2019-05-22 19:49:24 -05:00
William Vu
3e84f57544
Clarify comment
2019-05-22 18:34:02 -05:00
William Vu
3ffd6363f3
Add comment
2019-05-21 14:34:27 -05:00
William Vu
bb5ce078f3
Fix style
2019-05-21 01:23:26 -05:00
Thom Morgan
7325ea669f
Update pipe_auditor.rb
2019-05-20 14:35:32 -04:00
Thom Morgan
4d9ae525c2
Update lib/msf/core/exploit/smb/client/pipe_auditor.rb
...
Co-Authored-By: bcoles <bcoles@gmail.com >
2019-05-20 13:58:22 -04:00
NoodleOfDeath
f656638f94
smb client now preprends named pipes with missing backslash during check named pipes enumeration
2019-05-20 13:47:18 -04:00
Brent Cook
0308f80c0e
fix Failure scoping (needed for libraries)
2019-04-08 09:57:22 -05:00
Shelby Pace
34ae9c38f9
added WebEx modules, arch check
2018-10-23 15:51:23 -05:00
Brent Cook
85dc81a58b
Land #10185 , add SMBv1/2 support in psexec
2018-06-29 17:49:27 -05:00
Jacob Robles
5e02e7a2c8
smb_file_exist check for rubysmb
2018-06-28 18:10:39 -05:00
Brent Cook
c06f13b33e
remove superfluous sleeps, simplify logic
2018-06-28 12:15:42 -05:00
Brent Cook
b01bd060ee
remove unneeded slashes
2018-06-28 12:15:42 -05:00
Brent Cook
055c90c076
fix filename randomization while debugging
2018-06-28 12:15:42 -05:00
zerosum0x0
f742df028b
shitty typos
2018-06-27 20:34:01 -06:00
zerosum0x0
a5c0881c08
add Windows Embedded Standard 7 support
2018-06-27 19:17:18 -06:00
Jacob Robles
2fd0d797ac
psexec smb2 support
2018-06-25 15:06:23 -05:00
Brent Cook
4cf834d670
restore a few more mixin aliases for now
2018-05-08 17:10:01 -05:00
Brent Cook
25177ef9dc
add local CONST definition
2018-05-08 17:08:05 -05:00
Aaron Soto
40f1bb223d
Revert deleted code from #9986 . See issue #9993
2018-05-08 16:40:49 -05:00
Brent Cook
8463d94891
remove mostly unused shortcuts
2018-05-07 00:24:38 -05:00
Jacob Robles
534d05ff44
simpleclient versions option
2018-05-07 00:24:38 -05:00
Jacob Robles
ff202a5f5b
Simpleclient/SMB2 support
2018-05-07 00:24:38 -05:00