Exemple #1
0
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

"""
from w3af.core.controllers.dependency_check.os_detection import (
    is_mac, is_openbsd, is_fedora, is_suse, is_centos, is_kali)
from w3af.core.ui.gui.dependency_check.requirements import PIP_PACKAGES

if is_mac():
    from .mac import (SYSTEM_NAME, PKG_MANAGER_CMD, SYSTEM_PACKAGES, PIP_CMD,
                      os_package_is_installed, after_hook)

elif is_openbsd():
    from .openbsd import (SYSTEM_NAME, PKG_MANAGER_CMD, SYSTEM_PACKAGES,
                          PIP_CMD, os_package_is_installed, after_hook)

elif is_fedora():
    from .fedora import (SYSTEM_NAME, PKG_MANAGER_CMD, SYSTEM_PACKAGES,
                         PIP_CMD, os_package_is_installed, after_hook)

elif is_centos():
    from .centos import (SYSTEM_NAME, PKG_MANAGER_CMD, SYSTEM_PACKAGES,
                         PIP_CMD, os_package_is_installed, after_hook)
Exemple #2
0
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

"""
from w3af.core.controllers.dependency_check.os_detection import (is_mac,
                                                                 is_openbsd,
                                                                 is_fedora,
                                                                 is_suse,
                                                                 is_centos,
                                                                 is_kali)
from w3af.core.ui.gui.dependency_check.requirements import PIP_PACKAGES


if is_mac():
    from .mac import (SYSTEM_NAME, PKG_MANAGER_CMD,
                      SYSTEM_PACKAGES, PIP_CMD,
                      os_package_is_installed,
                      after_hook)

elif is_openbsd():
    from .openbsd import (SYSTEM_NAME, PKG_MANAGER_CMD,
                          SYSTEM_PACKAGES, PIP_CMD,
                          os_package_is_installed,
                          after_hook)

elif is_fedora():
    from .fedora import (SYSTEM_NAME, PKG_MANAGER_CMD,
                         SYSTEM_PACKAGES, PIP_CMD,
                         os_package_is_installed,
Exemple #3
0
 def test_only_one(self):
     results = [is_mac(), is_fedora(), is_linux(), is_openbsd()]
     self.assertEqual(1, results.count(True))