Add support for AROS

This commit is contained in:
Brendan Coles
2016-01-27 19:07:57 +00:00
parent 2d2edc6858
commit e7490a33c3
2 changed files with 8 additions and 0 deletions

View File

@@ -155,6 +155,10 @@ beef.os = {
return (this.ua.match('BeOS')) ? true : false;
},
isAros: function() {
return (this.ua.match('AROS')) ? true : false;
},
isWindows: function() {
return (this.ua.match('Windows')) ? true : false;
},
@@ -199,6 +203,7 @@ beef.os = {
if(this.isQNX()) return 'QNX';
if(this.isBeOS()) return 'BeOS';
if(this.isWebOS()) return 'webOS';
if(this.isAros()) return 'AROS';
return 'unknown';
},

View File

@@ -30,6 +30,7 @@ module BeEF
OS_IOS_IMG = 'ios.png'
OS_IPHONE_UA_STR = 'iPhone'
OS_WEBOS_UA_STR = 'webos.png'
OS_AROS_UA_STR = 'AROS'
OS_IPHONE_IMG = 'iphone.jpg'
OS_IPAD_UA_STR = 'iPad'
OS_IPAD_IMG = 'ipad.png'
@@ -70,6 +71,8 @@ module BeEF
OS_BLACKBERRY_UA_STR
when /android/
OS_ANDROID_UA_STR
when /aros/
OS_AROS_UA_STR
else
'ALL'
end