Skip to content

Commit c54f06c

Browse files
authored
Merge pull request #200 from adfoster-r7/defer-loading-zip-and-rex-socket
Defer loading zip and rex socket
2 parents c05515c + 9f98498 commit c54f06c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/metasploit/credential.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
require 'metasploit/concern'
1111
require 'metasploit_data_models'
1212
require 'metasploit/model'
13-
require 'zip'
13+
14+
autoload :Zip, 'zip'
1415

1516
#
1617
# Project

lib/metasploit/credential/creation.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
require 'rex/socket'
1+
module Rex
2+
autoload :Socket, 'rex/socket'
3+
end
24

35
# Implements a set of "convenience methods" for creating credentials and related portions of the object graph. Creates
46
# {Metasploit::Credential::Core} objects and their attendant relationships as well as {Metasploit::Credential::Login}

0 commit comments

Comments
 (0)