Add support for AROS
This commit is contained in:
@@ -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';
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user