Skip to content

Commit

Permalink
Merge pull request #7847 from codychamberlain/develop
Browse files Browse the repository at this point in the history
Ubuntu 14.10 Platform
  • Loading branch information
andresriancho committed Jan 27, 2015
2 parents 0c6fc33 + dd3d004 commit b917eb1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"""
from .ubuntu1204 import Ubuntu1204
from .ubuntu1404 import Ubuntu1404
from .ubuntu1410 import Ubuntu1410
from .debian76 import Debian76
from .debian78 import Debian78
from .centos import CentOS
Expand All @@ -33,7 +34,7 @@
from .default import DefaultPlatform

KNOWN_PLATFORMS = [Debian76, Ubuntu1204, CentOS65, CentOS, Fedora, Kali, MacOSX,
OpenBSD5, SuSE, Ubuntu1404]
OpenBSD5, SuSE, Ubuntu1404, Ubuntu1410]


def get_current_platform(known_platforms=KNOWN_PLATFORMS):
Expand Down
33 changes: 33 additions & 0 deletions w3af/core/controllers/dependency_check/platforms/ubuntu1410.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""
ubuntu1410.py
Copyright 2014 Andres Riancho
This file is part of w3af, http://w3af.org/ .
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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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 Ubuntu1410(Ubuntu1204):
SYSTEM_NAME = 'Ubuntu 14.10'

@staticmethod
def is_current_platform():
return 'Ubuntu' in platform.dist() and '14.10' in platform.dist()

0 comments on commit b917eb1

Please sign in to comment.