Skip to content

Commit 64754a5

Browse files
committed
Delete unnecessary begin..end block
1 parent 0919f74 commit 64754a5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

modules/auxiliary/gather/eventlog_cred_disclosure.rb

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,16 @@ def run
157157
username: username,
158158
})
159159

160-
begin
161-
host_login_data = {
162-
address: host_ipaddress,
163-
service_name: type,
164-
workspace_id: myworkspace_id,
165-
protocol: 'tcp',
166-
port: 0, # can be any port, so just set to 0 else the cred api screams
167-
core: credential_core,
168-
status: Metasploit::Model::Login::Status::UNTRIED
169-
}
170-
create_credential_login(host_login_data)
171-
end
160+
host_login_data = {
161+
address: host_ipaddress,
162+
service_name: type,
163+
workspace_id: myworkspace_id,
164+
protocol: 'tcp',
165+
port: 0, # can be any port, so just set to 0 else the cred api screams
166+
core: credential_core,
167+
status: Metasploit::Model::Login::Status::UNTRIED
168+
}
169+
create_credential_login(host_login_data)
172170
end
173171
end
174172

0 commit comments

Comments
 (0)