Browse files

Adding support for ubuntu 16.04

  • Loading branch information...
1 parent 0b66efc commit 4148909709016197a2573baba9b2d1417aa3635a @andresriancho committed Jan 3, 2017
@@ -22,6 +22,7 @@
from .ubuntu1204 import Ubuntu1204
from .ubuntu1404 import Ubuntu1404
from .ubuntu1410 import Ubuntu1410
+from .ubuntu1604 import Ubuntu1604
from .debian76 import Debian76
from .debian78 import Debian78
from .debian80 import Debian80
@@ -38,7 +39,7 @@
KNOWN_PLATFORMS = [Debian76, Debian78, Debian80, Ubuntu1204, CentOS65, CentOS,
Fedora, Kali, Kali2, MacOSX, OpenBSD5, SuSE, Ubuntu1404,
- Ubuntu1410, ElementaryOS02]
+ Ubuntu1410, ElementaryOS02, Ubuntu1604]
def get_current_platform(known_platforms=KNOWN_PLATFORMS):
@@ -0,0 +1,33 @@
+Copyright 2017 Andres Riancho
+This file is part of w3af, .
+w3af is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation version 2 of the License.
+w3af is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+GNU General Public License for more details.
+You should have received a copy of the GNU General Public License
+along with w3af; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+import platform
+from .ubuntu1204 import Ubuntu1204
+class Ubuntu1604(Ubuntu1204):
+ SYSTEM_NAME = 'Ubuntu 16.04'
+ @staticmethod
+ def is_current_platform():
+ return 'Ubuntu' in platform.dist() and '16.04' in platform.dist()

0 comments on commit 4148909

Please sign in to comment.