Bitcoin Forum
October 22, 2018, 05:07:23 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Looking for a good decompiler - any suggestions?  (Read 2246 times)
p3yot33at3r
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.
1540184843
Hero Member
*
Offline Offline

Posts: 1540184843

View Profile Personal Message (Offline)

Ignore
1540184843
Reply with quote  #2

1540184843
Report to moderator
1540184843
Hero Member
*
Offline Offline

Posts: 1540184843

View Profile Personal Message (Offline)

Ignore
1540184843
Reply with quote  #2

1540184843
Report to moderator
1540184843
Hero Member
*
Offline Offline

Posts: 1540184843

View Profile Personal Message (Offline)

Ignore
1540184843
Reply with quote  #2

1540184843
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1540184843
Hero Member
*
Offline Offline

Posts: 1540184843

View Profile Personal Message (Offline)

Ignore
1540184843
Reply with quote  #2

1540184843
Report to moderator
1540184843
Hero Member
*
Offline Offline

Posts: 1540184843

View Profile Personal Message (Offline)

Ignore
1540184843
Reply with quote  #2

1540184843
Report to moderator
1540184843
Hero Member
*
Offline Offline

Posts: 1540184843

View Profile Personal Message (Offline)

Ignore
1540184843
Reply with quote  #2

1540184843
Report to moderator
kano
Legendary
*
Offline Offline

Activity: 2604
Merit: 1056


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 Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
p3yot33at3r
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: 254



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: 2604
Merit: 1056


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 Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
p3yot33at3r
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: 683
Merit: 509



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: 254



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: 525
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!