4a878f17f0c18bf1dce3553b47f90f5c2c8e91d2,w3af/plugins/grep/password_profiling.py,password_profiling,end,#password_profiling#,190

Before Change


        // This fixes a very strange bug where for some reason the kb doesn"t
        // have a dict anymore (threading issue most likely) Seen here:
        // https://sourceforge.net/apps/trac/w3af/ticket/171745
        if isinstance(profiling_data, dict):
            
            // pylint: disable=E1103
            items = profiling_data.items()
            if len(items) != 0:

                items.sort(sort_func)
                om.out.information("Password profiling TOP 100:")

                list_length = len(items)
                if list_length > 100:
                    x_len = 100
                else:
                    x_len = list_length

                for i in xrange(x_len):
                    msg = "- [" + str(i + 1) + "] " + items[
                        i][0] + " with " + str(items[i][1])
                    msg += " repetitions."
                    om.out.information(msg)

    def get_plugin_deps(self):
        
        :return: A list with the names of the plugins that should be run before
                 the current one.

After Change


        
        profiling_data = kb.kb.raw_read(self, self.get_name())

        if not profiling_data:
            return

        // pylint: disable=E1103
        items = profiling_data.items()
        items.sort(sort_func)
        items = items[:100]

        om.out.information("Password profiling TOP 100:")

        for i, (password, repetitions) in enumerate(items):
            msg = " - [%s] %s with %s repetitions"
            args = (i + 1, password, repetitions)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: andresriancho/w3af
Commit Name: 4a878f17f0c18bf1dce3553b47f90f5c2c8e91d2
Time: 2018-07-19
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/password_profiling.py
Class Name: password_profiling
Method Name: end


Project Name: andresriancho/w3af
Commit Name: 0c20b05179619d3dce5f4efe342ee2a553b9c1e8
Time: 2018-02-10
Author: andres.riancho@gmail.com
File Name: w3af/plugins/crawl/urllist_txt.py
Class Name: urllist_txt
Method Name: crawl


Project Name: andresriancho/w3af
Commit Name: 38c8944176f6902838320162c5e1b78030ac4632
Time: 2019-12-02
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/plugins/auth_plugin.py
Class Name: AuthPlugin
Method Name: _configure_audit_blacklist