Bitcoin Forum
November 06, 2024, 09:50:36 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Looking for a good decompiler - any suggestions?  (Read 2352 times)
p3yot33at3r (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
June 04, 2015, 11:18:57 AM
 #1

Hello all,

I'm looking for a good (free Wink) decompiler that is capable of decompiling Bitmain firmware - can anyone give me a suggestion?

Thanks.
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
June 05, 2015, 11:30:00 AM
 #2

Hello all,

I'm looking for a good (free Wink) decompiler that is capable of decompiling Bitmain firmware - can anyone give me a suggestion?

Thanks.
Bitmain firmware is basically just an OS partition.
Nothing to do with decompiling.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
p3yot33at3r (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
June 05, 2015, 11:41:39 AM
 #3

Thanks kano, I realised my mistake while at work earlier..... Roll Eyes

Can you recommend a suitable (cross platform?) decompiler for regular applications/binaries?
bitsolutions
Sr. Member
****
Offline Offline

Activity: 261
Merit: 257



View Profile
June 05, 2015, 02:42:25 PM
 #4

Thanks kano, I realised my mistake while at work earlier..... Roll Eyes

Can you recommend a suitable (cross platform?) decompiler for regular applications/binaries?
Why would you want a decompiler when you can just use the source code?

Mining Software Developer.
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
June 05, 2015, 02:48:33 PM
 #5

Most of it:
https://github.com/bitmaintech

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
p3yot33at3r (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
June 05, 2015, 04:43:11 PM
 #6

Why would you want a decompiler when you can just use the source code?

I'm looking for a good decompiler for software that doesn't provide source code.
MarkAz
Hero Member
*****
Offline Offline

Activity: 687
Merit: 511



View Profile
June 05, 2015, 08:45:25 PM
 #7

There's only one that's even marginally good for compiled (non-interpreted languages), and that's Hex-Rays:

https://www.hex-rays.com/products/decompiler/

That being said, you can't recompile what you decompile, so it only will give you is slightly more insight into what they're doing...  You're better off just getting a disassembler and working in assembly - it will completely work, and you can do whatever you want, but it's also much more difficult.
bitsolutions
Sr. Member
****
Offline Offline

Activity: 261
Merit: 257



View Profile
June 05, 2015, 08:55:36 PM
 #8

I'm looking for a good decompiler for software that doesn't provide source code.
Which software in particular? Its hard to help without knowing specifically what you are trying to decompile and why.

There's only one that's even marginally good for compiled (non-interpreted languages), and that's Hex-Rays:

https://www.hex-rays.com/products/decompiler/

That being said, you can't recompile what you decompile, so it only will give you is slightly more insight into what they're doing...  You're better off just getting a disassembler and working in assembly - it will completely work, and you can do whatever you want, but it's also much more difficult.


This is very true, reversing most compiled languages such as c and c++ is very difficult. The software on bitcoin miners is mostly written in c with scripts controlling execution and configuration.

Mining Software Developer.
smolen
Hero Member
*****
Offline Offline

Activity: 524
Merit: 500


View Profile
July 11, 2015, 03:41:20 PM
 #9

There's only one that's even marginally good for compiled (non-interpreted languages), and that's Hex-Rays:

https://www.hex-rays.com/products/decompiler/

That being said, you can't recompile what you decompile, so it only will give you is slightly more insight into what they're doing...  You're better off just getting a disassembler and working in assembly - it will completely work, and you can do whatever you want, but it's also much more difficult.


This is very true, reversing most compiled languages such as c and c++ is very difficult. The software on bitcoin miners is mostly written in c with scripts controlling execution and configuration.
Last time I looked at it HexRays was not ready for production use. With trained eyes, disassembler and debugger it's possible to locate algorithm inside a program and make usable C sketch of it, but it takes A LOT of time, think ~3 full days for 100 lines of C code.

Of course I gave you bad advice. Good one is way out of your price range.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!