Skip to content

Commit

Permalink
use the correct variable for cookie expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Cook committed May 24, 2016
1 parent e382b2e commit 3bc0201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/remote/browser_exploit_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def cookie_header(tag)
if datastore['CookieExpiration'].present?
expires_date = (DateTime.now + 365*datastore['CookieExpiration'].to_i)
expires_str = expires_date.to_time.strftime("%a, %d %b %Y 12:00:00 GMT")
cookie << " Expires=#{expires};"
cookie << " Expires=#{expires_str};"
end
cookie
end
Expand Down

0 comments on commit 3bc0201

Please sign in to comment.