Add Odyssey logo

This commit is contained in:
Brendan Coles
2016-01-30 14:14:05 +00:00
parent 9e7f36c113
commit 85106b98de
4 changed files with 5 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ module Models
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_SAFARI_IMG if browser.eql? 'S' # Safari
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_CHROME_IMG if browser.eql? 'C' # Chrome
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_OPERA_IMG if browser.eql? 'O' # Opera
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_ODYSSEY_IMG if browser.eql? 'OD' # Odyssey
BeEF::Extension::AdminUI::Constants::Agents::AGENT_UNKNOWN_IMG
end

View File

@@ -43,6 +43,7 @@ module Models
# @return [String] String constant containing browser icon path
def browser_icon
agent = JSON.parse(self.httpheaders)['user-agent'].to_s || nil
puts 'A'*100
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_UNKNOWN_IMG if agent.nil?
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_IE_IMG if agent.include? BeEF::Extension::AdminUI::Constants::Agents::AGENT_IE_UA_STR
@@ -52,6 +53,7 @@ module Models
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_KONQ_IMG if agent.include? BeEF::Extension::AdminUI::Constants::Agents::AGENT_KONQ_UA_STR
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_CHROME_IMG if agent.include? BeEF::Extension::AdminUI::Constants::Agents::AGENT_CHROME_UA_STR
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_OPERA_IMG if agent.include? BeEF::Extension::AdminUI::Constants::Agents::AGENT_OPERA_UA_STR
return BeEF::Extension::AdminUI::Constants::Agents::AGENT_ODYSSEY_IMG if agent.include? BeEF::Extension::AdminUI::Constants::Agents::AGENT_ODYSSEY_UA_STR
BeEF::Extension::AdminUI::Constants::Agents::AGENT_UNKNOWN_IMG
end

View File

@@ -26,6 +26,8 @@ module Constants
AGENT_CHROME_IMG = 'chrome.png'
AGENT_OPERA_UA_STR = 'Opera'
AGENT_OPERA_IMG = 'opera.ico'
AGENT_ODYSSEY_UA_STR = 'Odyssey Web Browser'
AGENT_ODYSSEY_IMG = 'odyssey.png'
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB