Lucene search
K

Malware exploit: Rovnix

🗓️ 14 Jan 2017 00:00:00Reported by XylitolType 
pwnmalw
 pwnmalw
🔗 www.pwnmalw.re👁 524 Views

Defeat Rovnix weak hash functio

Code
<code>&lt;?php
        /**
         * Defeat the weak hash function of Rovnix
         * to get password from a hash.
         */

        $HASH   = 'fbff791ef0770855e599ea6f87d41653';

        $value  = getNumber($HASH);
        $search = search($value, $HASH);

        echo('Hash:   ' . $HASH  . '&lt;br /&gt;');
        echo('Value:  ' . $value . '&lt;br /&gt;');
        echo('Search: ' . $search);

        // Search an working (number) password
        function search($value, $hash) {
                $i = 0;

                while (true) {
                        if (getHash($i) == $value)
                                return $i;

                        $i++;
                }
        }

        // Get the hashed number
        function getNumber($hash) {
                $i = 0;

                while (true) {
                        if (md5($i) == $hash)
                                return $i;

                        $i++;
                }
        }

        // Hash function without final MD5 (return only numbers)
        function getHash($hash) {
                $salt = 'LKJFDJLJkkljKJKJKJkjkj$i%&amp;@(%jkjJn@@j$r@!cdh*!@#$djl1J$r!j@o*$@duJxlJLEKJkJFKJEJ2$jkeJFJLEJFE';

                return $hash + $salt + md5($salt) + md5($hash) + $salt[3];
        }
?&gt;
</code>

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

14 Jan 2017 00:00Current
0.5Low risk
Vulners AI Score0.5
524