Skip to content

Commit 0283ac0

Browse files
committed
Do minor style fixes
1 parent 69b8edd commit 0283ac0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/gather/apple_safari_ftp_url_cookie_theft.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def start_http(opts={})
107107
proto = (datastore['SSL'] ? 'https' : 'http')
108108
print_status("Using URL: #{proto}://#{opts['ServerHost']}:#{opts['ServerPort']}#{uopts['Path']}")
109109

110-
if (opts['ServerHost'] == '0.0.0.0')
110+
if opts['ServerHost'] == '0.0.0.0'
111111
print_status(" Local IP: #{proto}://#{Rex::Socket.source_address('1.2.3.4')}:#{opts['ServerPort']}#{uopts['Path']}")
112112
end
113113

@@ -138,7 +138,7 @@ def lookup_lhost(c=nil)
138138
#
139139
def on_client_command_retr(c, arg)
140140
conn = establish_data_connection(c)
141-
if not conn
141+
unless conn
142142
c.put("425 can't build data connection\r\n")
143143
return
144144
end
@@ -159,7 +159,7 @@ def cleanup
159159
super
160160

161161
# Kill FTP
162-
stop_service()
162+
stop_service
163163

164164
# clear my resource, deregister ref, stop/close the HTTP socket
165165
begin

0 commit comments

Comments
 (0)