Skip to content

Commit 318c0ed

Browse files
Update to line 126
Line originally references the read_timeout instance variable associated with the smb variable (line 118 || 120), which is an object of the simpleclient class that doesn't have a read_timeout instance variable. Updated the line to reference the client instance variable of smb, which does have a read_timeout variable. Testing this change appears to result in expected behavior.
1 parent f29c9a7 commit 318c0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/proto/dcerpc/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def smb_connect()
123123
smb.login('*SMBSERVER', self.options['smb_user'], self.options['smb_pass'])
124124
smb.connect("\\\\#{self.handle.address}\\IPC$")
125125
self.smb = smb
126-
self.smb.read_timeout = self.options['read_timeout']
126+
self.smb.client.read_timeout = self.options['read_timeout']
127127
end
128128

129129
f = self.smb.create_pipe(self.handle.options[0])

0 commit comments

Comments
 (0)