Ejemplo n.º 1
0
    def __init__(self):
        super(Splash, self).__init__()

        # These two lines are required here to make sure that unity shows the
        # correct information in the menu
        self.set_icon_from_file(W3AF_ICON)
        self.set_title('w3af - 0wn the Web')

        vbox = gtk.VBox()
        self.add(vbox)

        # content
        splash = os.path.join(ROOT_PATH, 'core', 'ui', 'gui', 'data',
                              'splash.png')
        img = gtk.image_new_from_file(splash)
        vbox.pack_start(img)
        self.label = gtk.Label()
        vbox.pack_start(self.label)

        # Splash screen doesn't have decoration (at least where supported)
        # https://github.com/andresriancho/w3af/issues/9084
        if not MacOSX.is_current_platform():
            self.set_decorated(False)

        # color and position
        color = gtk.gdk.color_parse('#f2f2ff')
        self.modify_bg(gtk.STATE_NORMAL, color)
        self.set_position(gtk.WIN_POS_CENTER)
        self.set_size_request(644, 315)

        # ensure it is rendered immediately
        self.show_all()

        while gtk.events_pending():
            gtk.main_iteration()
Ejemplo n.º 2
0
    def __init__(self):
        super(Splash, self).__init__()

        # These two lines are required here to make sure that unity shows the
        # correct information in the menu
        self.set_icon_from_file(W3AF_ICON)
        self.set_title('w3af - 0wn the Web')

        vbox = gtk.VBox()
        self.add(vbox)

        # content
        splash = os.path.join(ROOT_PATH, 'core', 'ui', 'gui', 'data',
                              'splash.png')
        img = gtk.image_new_from_file(splash)
        vbox.pack_start(img)
        self.label = gtk.Label()
        vbox.pack_start(self.label)

        # Splash screen doesn't have decoration (at least where supported)
        # https://github.com/andresriancho/w3af/issues/9084
        if not MacOSX.is_current_platform():
            self.set_decorated(False)

        # color and position
        color = gtk.gdk.color_parse('#f2f2ff')
        self.modify_bg(gtk.STATE_NORMAL, color)
        self.set_position(gtk.WIN_POS_CENTER)
        self.set_size_request(644, 315)

        # ensure it is rendered immediately
        self.show_all()

        while gtk.events_pending():
            gtk.main_iteration()
Ejemplo n.º 3
0
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.data.bloomfilter.wrappers import GenericBloomFilter
from w3af.core.controllers.dependency_check.platforms.mac import MacOSX

# This import can't fail, it is pure-python love ;)
from w3af.core.data.bloomfilter.seekfile_bloom import FileSeekBloomFilter \
    as FileSeekFilter

if MacOSX.is_current_platform():
    # Awful workaround for Mac OS X:
    # https://github.com/andresriancho/w3af/issues/485
    WrappedBloomFilter = FileSeekFilter

    OSX_MSG = """
    w3af runs slower on Mac OS X.

    We need OS X contributors that can spend a couple of hours helping the
    pybloomfiltermmap [1] project improve their packaging for Mac. Contribute
    to make both pybloomfiltermmap and w3af better!

    For more information about this issue please visit [0][1].

    [0] https://github.com/andresriancho/w3af/issues/485
    [1] https://github.com/axiak/pybloomfiltermmap/issues/50
Ejemplo n.º 4
0
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.data.bloomfilter.wrappers import GenericBloomFilter
from w3af.core.controllers.dependency_check.platforms.mac import MacOSX

# This import can't fail, it is pure-python love ;)
from w3af.core.data.bloomfilter.seekfile_bloom import FileSeekBloomFilter\
    as FileSeekFilter

if MacOSX.is_current_platform():
    # Awful workaround for Mac OS X:
    # https://github.com/andresriancho/w3af/issues/485
    WrappedBloomFilter = FileSeekFilter

    OSX_MSG = """
    w3af runs slower on Mac OS X.

    We need OS X contributors that can spend a couple of hours helping the
    pybloomfiltermmap [1] project improve their packaging for Mac. Contribute
    to make both pybloomfiltermmap and w3af better!

    For more information about this issue please visit [0][1].

    [0] https://github.com/andresriancho/w3af/issues/485
    [1] https://github.com/axiak/pybloomfiltermmap/issues/50