ghidra-delinker-extension VS solvespace

Compare ghidra-delinker-extension vs solvespace and see what are their differences.

ghidra-delinker-extension

Ghidra extension for exporting relocatable object files (by boricj)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
ghidra-delinker-extension solvespace
6 69
35 3,025
- 1.4%
7.8 7.2
3 days ago 26 days ago
Java C++
Apache License 2.0 GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ghidra-delinker-extension

Posts with mentions or reviews of ghidra-delinker-extension. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-22.
  • Ask HN: What rabbit hole(s) did you dive into recently?
    12 projects | news.ycombinator.com | 22 Apr 2024
    I did, you can find the Ghidra extension there: https://github.com/boricj/ghidra-delinker-extension

    The problem is properly identifying the relocations spots and their targets inside a Ghidra database, which is based on references. On x86 it's fairly easy because there's usually a 4-byte absolute or relative immediate operand within the instruction that carries the reference. On MIPS it's very hard because of split MIPS_HI16/MIPS_LO16 relocations and the actual reference can be hundreds of instructions away.

    So you need both instruction flow analysis strong enough to handle large functions and code built with optimizations, as well as pattern matching for the various possible instruction sequences, some of them overlapping and others looking like regular expressions in the case of accessing multi-dimensional arrays. All of that while trying to avoid algorithms with bad worst cases because it'll take too long to run on large functions (each ADDU instruction generates two paths to analyze because of the two source registers).

    Besides that, you're working on top of a Ghidra database mostly filled by Ghidra's analyzers, which aren't perfect. Incorrect data within that database, like constants mistaken for addresses, off-by-n references or missing references will lead to very exotic undefined behaviors by the delinked code unless cleaned up by hand. I have some diagnostics to help identify some of these cases, but it's very tricky.

    On top of that, the delinked object file doesn't have debugging symbols, so it's challenging to figure out what's going wrong with a debugger when there's a failure. It could be an immediate segmentation fault, or the program can work without crashing but with its execution flow incorrect or generating incorrect data as output. I've thought about generating DWARF or STABS debugging data from Ghidra's database, but it sounds like yet another rabbit hole.

    I'm on my fifth or sixth iteration of the MIPS analyzer, each one better than the previous one, but it's still choking on kilobytes-long functions.

    Also, I've only covered 32-bit x86 and MIPS on ELF for C code. The matrix of ISAs and object file formats (ELF, Mach-O, COFF, a.out, OMF...) is rather large. C++ or Fortran would require special considerations for COMMON sections (vtables, typeinfos, inline functions, default constructors/destructors, implicit template instantiations...). This is why I think there's one or two thesis to be done here, the rabbit hole is really that deep once you start digging.

    Sorry for the walls of text, but without literature on this I'm forced to build up my explanations from basic principles just so that people have a chance of following along.

  • Exploring Object File Formats
    3 projects | news.ycombinator.com | 16 Jan 2024
    extension [1]. It's a bit finicky to get it right (toolchains assume that object files are valid and don't have much in the way of diagnostics), but these are fairly simple under the hood. Section bytes, symbols and relocations, with some headers and metadata to wrap these up...

    It's a bit of a shame that object files aren't more of a lingua franca of toolchains in practice. Embedding binary blobs inside a program in a portable way is still a mess today.

    [1] https://github.com/boricj/ghidra-delinker-extension/tree/mas...

  • Show HN: A Ghidra extension that turns programs back into object files
    3 projects | news.ycombinator.com | 3 Jan 2024
  • Ask HN: Show me your half baked project
    163 projects | news.ycombinator.com | 12 Oct 2023
    Ghidra extension for delinking programs back into object files: https://github.com/boricj/ghidra-delinker-extension

    In short, this Ghidra extension allows one to reconstruct relocation tables through analysis and then export parts of programs as working object files, effectively reversing the work of a linker. Applications include binary patching, converting between object file formats, software ports without source code, decompilation projects...

    I've been tinkering with it for the past 16 months or so and it's the third, hopefully industrial-grade prototype. Right now it can delink 32-bit MIPS and i386 programs from the 1990s or so to ELF object files, as long as it contains basic relocation types.

    It's half-baked because while it works, it doesn't support modern instruction sets, advanced relocation types for TLS/PLT/GOT or exporting to other object file formats besides ELF, so it's not that useful on modern artifacts (which is what I assume most reverse-engineers would care about). It's not really ready for prime time because I'm not done writing blog posts that walk through real-world application and case studies ; there's very little literature out there on this esoteric topic and it can be very confusing. Like _"let's take this PlayStation PS-EXE file that was built with a COFF toolchain back in the 90s and make MIPS ELF object files out of it that work with modern Linux toolchains"_ kind of confusing.

    I started this project because I wanted to decompile a PlayStation video game and quickly realized that I'd never get anywhere without a means to divide and conquer it into more manageable pieces. Ironically the decompilation project itself hasn't advanced much, but I'm having fun so far working on this.

  • Ask HN: Tell us about your project that's not done yet but you want feedback on
    68 projects | news.ycombinator.com | 16 Aug 2023
    I've been working on a specific reverse-engineering technique called _unlinking_ [1] on-and-off for the past 16 months or so. I'm on my third prototype (first a set of Ghidra scripts written in Jython [2], then a fork of Ghidra [3] and now a Ghidra extension [4]) and I've started a blog in order to document it [5], which side-tracked into writing a whole series of articles on reverse-engineering to introduce the topic.

    What for, you may ask? Basically I'm trying to decompile a PlayStation 1 video game and I've quickly decided that dealing alone with multiple +500 KiB executables of complete utter spaghetti code wasn't going to work. Instead, I've decided that I'd rather divide-and-conquer the problem, so I've been tooling up to split executables into relocatable object files, in order to decompile those one at a time and _Ship of Theseus_-style my way to success.

    Ironically, all of that stuff is so not done that I don't even know what meaningful feedback there could be. My prototypes do work, but only for 32 bit little endian statically-linked MIPS executables. The articles on my blog are draft-quality. As for the decompilation project itself that started all of this, it hasn't seen much progress due to all of those side-quests. The overall topic is so esoteric that so far I've only managed to hear about one group of two persons that tried to do anything remotely similar and one another anecdotal account [6] that this particular skill is very uncommon among reverse engineers.

    Personally, I'm starting to think that maybe I could've actually reverse-engineered and decompiled the game in the time I took to get here. I've also tried to engage with Ghidra to upstream the foundations of my modifications in my fork, but after some back-and-forth it became clear that my prototype-grade stuff wasn't industrial-grade and couldn't be merged in its current state, which is why I'm currently reworking the code in my fork as a Ghidra extension.

    To those that want to provide feedback after reading all of this: beware, I've had a lot of fun going down that rabbit hole, but this is one hell of a time sink _and_ a particularly tricky mind-bender.

    [1] I don't actually _know_ what's the actual name for this technique, given that there are so few resources on it out there. I do know I didn't invent it.

    [2] https://github.com/boricj/ghidra-unlinker-scripts

    [3] https://github.com/boricj/ghidra/tree/feature/elfrelocateble...

    [4] https://github.com/boricj/ghidra-unlinker-extension

    [5] https://news.ycombinator.com/item?id=36575081#36590078

    [6] https://news.ycombinator.com/item?id=35729232&p=3#35740761

solvespace

Posts with mentions or reviews of solvespace. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-22.
  • Ask HN: What rabbit hole(s) did you dive into recently?
    12 projects | news.ycombinator.com | 22 Apr 2024
    Can second this!

    However, I would recommend https://solvespace.com! It hits a sweet spot between features vs complexity/learning effort.

  • My favorite code comment/rant
    1 project | news.ycombinator.com | 1 Feb 2024
  • Why large companies and fast-moving startups are banning merge commits
    1 project | news.ycombinator.com | 29 Dec 2023
    We use rebase on solvespace, along with sensible squashing so most commits along master are pretty self contained. You can see the clean history here:

    https://github.com/solvespace/solvespace/commits/master/

  • A one line code change inside iOS made me waste 5 minutes
    1 project | news.ycombinator.com | 23 Dec 2023
    I changed a behavior to the "more standard" one because it felt obviously right. This was a 3 line change. But the was enough backlash right there in the pull request. So I spent a couple hours remembering how to add a configuration option to keep the old way for those guys:

    https://github.com/solvespace/solvespace/pull/1425

  • RattleCAD
    4 projects | news.ycombinator.com | 1 Nov 2023
    > If you like Linkage, you might also like Solvespace.

    No, I mean Brent Curry's Linkage[1] bicycle design software, not David Rector's Linkage Mechanism Designer and Simulator[2].

    You should read Wikipedia article.[0]

    N.B. About SolveSpace, as I'm its experienced user[youtube,patreon], I may say next: yes, it could be used for bike mockup, as any other CAD, but it still has a lot of limitations and even does not export correct STEP files yet[3], and in FreeCAD such STEP could fixed only partially.[video]

    So, for serious 3D CAD work I highly recommend use FreeCAD (and LibreCAD for 2D CAD work) instead of SolveSpace, and use SolveSpace only as a helper tool like a calc or as a notepad for noting ideas.

    About Linkage Mechanism Designer and Simulator, it is only useful for planar (2D) kinematics analyze, and if You are looking an alternative for it take a look on Pyslvs[4], that is in part based on SolveSpace's solver.

    [0] https://en.wikipedia.org/wiki/rattleCAD#History

    [1] https://bikechecker.com/

    [2] https://blog.rectorsquid.com/linkage-mechanism-designer-and-...

    [3] https://github.com/solvespace/solvespace/issues/206

    [4] https://github.com/KmolYuan/Pyslvs-UI

    [video] https://www.youtube.com/watch?v=F3LJMeqUDrU

    [youtube] https://www.youtube.com/@appsoft

    [patreon] https://patreon.com/app4soft

  • SolveSpace has been ported to Qt
    2 projects | news.ycombinator.com | 2 Oct 2023
  • Ask HN: What are some of the most elegant codebases in your favorite language?
    37 projects | news.ycombinator.com | 17 Jun 2023
    C++ this file covers all the math for working with NURBS curves and surfaces:

    https://github.com/solvespace/solvespace/blob/master/src/srf...

    There is a lot more in other files - triangulation, booleans, creation - but the core math functions are there in very readable form.

  • My favorite rant in a code comment (on OpenGL compatibility)
    1 project | news.ycombinator.com | 6 Jun 2023
  • The Great CPU Stagnation
    4 projects | news.ycombinator.com | 18 May 2023
    >> Maybe somebody has statistical survey of how much of the existing deployed CPU core count is typically used?

    My guess is very few cores are used on average. I did some testing with Solvespace to see which build options contributed most to performance:

    https://github.com/solvespace/solvespace/issues/972

    Obviously using OpenMP for multi-core was the big win. But what's not shown is that in typical usage (not the test I ran) if you're dragging some geometry around it will use all cores (in my case 4 cores / 8 threads) at about 50 percent utilization. That percentage probably drops as more cores are thrown at it due to Amdahl's Law. In other words, throwing double the cores at it will give a good boost to a lot of code that is already taking less than half the time (wall clock time, not CPU time).

    We added OpenMP to a number of functions for significant performance gains. And in fact, any remining single-thread operation that gets the parallel treatment is likely to have a significant impact on overall performance since that is where most of the time is spent now. At this point we're more focused on features and bugs.

    Algorithmic improvements are possible and I'd like to do those in the future, but they are much harder to do than sprinkling some #pragmas around critical loops. That will improve the scalability though, where multithreading really did not.

  • Free, mac compatible, relatively easy CAD/CAM software?
    1 project | /r/hobbycnc | 9 Apr 2023

What are some alternatives?

When comparing ghidra-delinker-extension and solvespace you can also consider the following projects:

ansible-easy-vpn - An Ansible playbook that sets up a Wireguard server with ad blocking, DNS-over-HTTPS, and a WebUI with 2FA

cadquery - A python parametric CAD scripting framework based on OCCT

pls - `pls` is a prettier and powerful `ls(1)` for the pros.

Autodesk-Fusion-360-for-Linux - This is a project, where I give you a way to use Autodesk Fusion 360 on Linux!

rosboard - ROS node that turns your robot into a web server to visualize ROS topics

blender-cad-tools - a collection of Blender addons to make CAD design with Blender even more enjoyable

divedb - This is the source repository for the DiveDB site

FreeCAD_assembly3 - Experimental attempt for the next generation assembly workbench for FreeCAD

nun-db - A realtime database written in rust

LibreCAD - LibreCAD is a cross-platform 2D CAD program written in C++17. It can read DXF/DWG files and can write DXF/PDF/SVG files. It supports point/line/circle/ellipse/parabola/spline primitives. The user interface is highly customizable, and has dozens of translations.

KeenWrite - Free, open-source, cross-platform desktop Markdown text editor with live preview, string interpolation, and math.

DesignSpark-Mechanical-for-Linux