Comments (9)
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
- yesterday hashdb was down and is useful to do few clicks in ida to have all hashes resolved resolved
- unittests of algorithms so is more tested in case if something is updated
- 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.
@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.
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.
Ah, perfect then
from flare-ida.
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.
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.
Great. Do you think we should add this to flare-ida and/or to hashdb directly?
from flare-ida.
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.
Alright, thanks for the insight!
from flare-ida.
Related Issues (20)
- MSDN_Crawler issue HOT 13
- idb2pat.py issue on IDA 7.5 HOT 1
- idb2pat sigmake FATAL: Bad xdigit: error HOT 3
- 0 functions applied in IDA from .sig file HOT 10
- 'itertools.count' object has no attribute 'next' HOT 2
- shellcode hashes operand size issue
- Rename Conti hashing algorithm to MurmurHash2 HOT 1
- An error occurred while using argtacker HOT 1
- objc2_xrefs_helper.py MemoryError
- Several errors of objc2_analyzer.py HOT 1
- OverflowError with 64-bit IDBs HOT 1
- stackstrings-plugin excepion HOT 1
- Python 3 support HOT 5
- Possible problem with 64 bit code (find_ref_loc fucntion)?
- No table with addresses is getting printed in ironstring, and so many "DEBUG:root..." in the output
- objc2_analyzer.py cannot work for IDA 7.5
- shellcode_hash_search.py has some logic errors HOT 1
- sc_hashes.db: add process name database + filename database
- idb2pat fix bugs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flare-ida.