Coder Social home page Coder Social logo

Comments (9)

doomedraven avatar doomedraven commented on June 5, 2024

im working on the fusion of both words for myself, of shellcode-hashes and hashdb, so we have can both of them, + they have hashdb-ida that is easy to extend to support localdb

that was super easy to add to hashdb to keep generating localdb, example:

import algorithms

# ('ror7AddHash32',       32, pseudocode_ror7AddHash32),
        for algo in algorithms.__all__:
            algo = getattr(algorithms, algo)
            self.addHashType(algo.__name__.split(".")[-1], sizes_map[algo.TYPE], algo.DESCRIPTION)

@mr-tz @williballenthin what do you think guys?

and if you ask why i do this is bcz

  1. yesterday hashdb was down and is useful to do few clicks in ida to have all hashes resolved resolved
  2. unittests of algorithms so is more tested in case if something is updated
  3. my idea also to create some json maybe, that will have all data, so when we adding new dll it just add missed names, and you not need to provide over and over the same dlls to get it all, so it would update db too

from flare-ida.

mr-tz avatar mr-tz commented on June 5, 2024

@doomedraven I like your idea, but am not sure how it's related to this issue. Can you clarify?
Regardless, I think your updates would be a good addition.

from flare-ida.

doomedraven avatar doomedraven commented on June 5, 2024

hashdb-ida already does the enumeration in ida, if it match 1 hash it allows export all hashes from that library to ida's enum

from flare-ida.

mr-tz avatar mr-tz commented on June 5, 2024

Ah, perfect then 👍

from flare-ida.

doomedraven avatar doomedraven commented on June 5, 2024

i have almost already everything coded to support flare's offline db hashes, just need to find few things, i will show you it near to the weekend

from flare-ida.

doomedraven avatar doomedraven commented on June 5, 2024

hello with delay but that is done, you can generate now offline db with hashes and use my modified version of hashdb to do lookups and have it to do the rest for you, also if not found in local it goes online(you can change that for you). to make it work just clone https://github.com/OALabs/hashdb put make_sc_hash_db_ng.py inside and execute as python3 make_sc_hash_db_ng.py sc_hashes.db path_to_dlls

then drop generated db + hashdb.py to ida plugins folder and volia. to see what i have moded use search for HASHDB_USE_LOCALDB

hashdb.py.txt
make_sc_hash_db_ng.py.txt

        hash_lookup_sql = """select symbol_hashes.symbol_name, source_libs.lib_name from symbol_hashes INNER JOIN hash_types ON symbol_hashes.hash_type = hash_types.hash_type INNER JOIN source_libs ON symbol_hashes.lib_key where symbol_hashes.hash_val=? AND hash_types.hash_name=? and symbol_hashes.lib_key == source_libs.lib_key;"""
        hunt_algo_sql = """select hash_types.hash_name from hash_types INNER JOIN symbol_hashes ON symbol_hashes.hash_type = hash_types.hash_type  where symbol_hashes.hash_val=?;"""
        algo_lookup_sql = """select hash_name,hash_size from hash_types;"""

from flare-ida.

mr-tz avatar mr-tz commented on June 5, 2024

Great. Do you think we should add this to flare-ida and/or to hashdb directly?

from flare-ida.

doomedraven avatar doomedraven commented on June 5, 2024

i spoke with Herrcore about this, he told that they are not interested in having offline part. so i think this only can be useful for us who don't have access to internet all the time

from flare-ida.

mr-tz avatar mr-tz commented on June 5, 2024

Alright, thanks for the insight!

from flare-ida.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.