Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: sheanom on May 13, 2019, 11:38:51 PM



Title: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: sheanom on May 13, 2019, 11:38:51 PM
Hello,

I was recently contacted by someone asking for a solution to unlock their miners after upgrading to the latest firmware.

I was able to find a solution to open SSH and remove the signature check thing which was added by bitmain.

I want to know if anyone would be interested in a tool to do that. I am not sure if I should ask for money for this because it took me
30 mins to do it, but I might open an account for donations if you find it useful.

If I get at least 3 people which need this, I will write the tool so it's easy to use and also keeps permanent changes.

If there's more people which need this kind of solution, add what kind of features it should have, if you want to downgrade or just
enable ssh at boot time.

Shean


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: PassThePopcorn on May 14, 2019, 12:15:43 AM
I wouldn't mind a guide for this.

Provide an exe or similar and you'll get neg'd quicker than you would believe.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: philipma1957 on May 14, 2019, 12:21:29 AM
I wouldn't mind a guide for this.

Provide an exe or similar and you'll get neg'd quicker than you would believe.

Yeah  people will think software is a back door to be used later.  And that the op hides with a newbie name.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: Artemis3 on May 14, 2019, 12:28:23 PM
The tool should be uploaded to gitlab (https://about.gitlab.com/) or similar (http://github.com/), along with the source code. Even better if its a simple python script or such that anyone could quickly inspect. I suggest you set up a donations address in your readme. Pick a suitable open source license of your liking and the community will appreciate it.

The very next version of Braiins OS (http://braiins-os.org/) (open source replacement firmware) will provide a method using the sdcard to flash itself from the sdcard into the controller's nand, this would also achieve the same result (by wiping out the evil Bitmain firmware).

And i believe someone here was even willing to give a bounty for it.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: sheanom on May 14, 2019, 07:54:42 PM
I am glad to see comunity concerned when a newbie post something out. I will try to think of an way to make this trustworthy. Providing source code will make it easy to fix in future firmwares or other hardware versions so this is not the best option.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: Artemis3 on May 14, 2019, 08:25:48 PM
Even if you kept it closed they would inspect it to find out what its doing to bypass their security, so in both ways the mere existence of the tool will make them react if they repeat the same mistakes of other companies with this hostile attitude.

The difference is that the community wouldn't trust it, what else it might do after regaining SSH?

Keep it closed and you will: Not stop them from "fix it in future firmware or other hardware versions", AND get distrusted by the community.

If you want trust, release code. You have nothing to fear from Bitmain, they are your opponent anyway, but losing the trust from the community is final.

And do note some determined person might also reverse engineer your tool and release an open source solution based on it ANYWAY. Why lose your chance? Embrace Open Source and earn the reputation it brings.

Of course Bitmain COULD learn from computer history (at least since the 80ies) and drop the stupidity already. OR people could vote with their wallets and buy MicroBT, Canaan Creative, etc.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: alex1560 on May 14, 2019, 08:28:42 PM
Hi,

I've done some work on s15, opening ssh and overclocking it: https://youtu.be/UJv6rrUNU60

Your mod might work similarly, a video would be welcome to see that it's actually doing something.

My suggestion is to keep this under control, small miners can open ssh with serial console easily if they need it badly, but it will be a pain for big mining facilities if this gets fixed in new hardware and firmware.

Good luck with whatever you're trying to do, but make sure you're not releasing "Just another fishing trojan" and mean it when you say you want to do some good to the community.

... Of course Bitmain COULD learn from computer history (at least since the 80ies) and drop the stupidity already. OR people could vote with their wallets and buy MicroBT, Canaan Creative, etc.

I somehow disagree with that. I though in the past that I will be helping the community by making a video on how to compile Bmminer because github docs from bitmain were unbiguous then after a short while, "custom" firmware were popping like mushrooms. Took the video down for a while but others started to repost the video cuz they saved it.

Sometimes it's better not to mess with things because you might do more harm than the intended good.

IMHO at least, other might disagree because they need such solution. I am part of the asicfreeware.io telegram chat where there's a bounty for opening s15.

I actually been part of developing a solution to overclock s15, https://www.youtube.com/watch?v=dbriKlQ-2hg done it, but too less people participated to the bounty and it does not make any sense to release it for free if people don't actually need it as it might be used in other harming ways in the future. I figure if people really needed such solution, would've donated at least $5 for seeing this project go together. The bounty is pretty much stuck and John and Scott put quite some work in promoting this stuff.

So my giveaway for this is becareful what you wish for. :)


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: Artemis3 on May 14, 2019, 09:30:12 PM
Do you think people would have not done it even if you didn't post the video? You are very wrong. And yes, they put the thing on github, somebody else would have figured it out anyway, what with the actual developers of cgminer around here and all.

But ok, no one can predict the future, or how others will react. Even if you both decide to keep quiet, somebody else might do it (or Bitmain drop its attitude). The serial solution is not that different to the sdcard method, except saving you from soldering a socket if the controller lacks one. In both you have to be physically present to do it. What the people offering bounties is about doing it remotely, so they can fix their large mining farms they foolishly updated to 2019 firmware, or for the new models that come crippled already.

Bitmain might even pull out a tivoization (https://en.wikipedia.org/wiki/Tivoization), ie. checksum the image in nand and refuse to boot otherwise. We just don't know just how deep their stupidity will get, but expect anything and be ready to join the effort to defeat it instead of everyone keeping quiet until the bomb explodes.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: taserz on May 14, 2019, 10:04:19 PM
That is the same guy who was trying to sell firmware and trying to sell a script that just ssh'd and replaced bmminer if memory is correct. Compiling bmminer is not the hard part making a flashable firmware version that doesn't shit the bed is more a bitch than anything else.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: BitMaxz on May 17, 2019, 11:35:48 PM
I thought someone already discovers to enabled SSH but looks like he's planning to sell this fake SSH unlock tool.

If you can provide an opensource code of the tool we can verify it if the tool has stuffing or backdoors.

Why not we can donate any amount if your tools are actually clean and working.
There are many miners out there that are eagerly waiting for a solution to enable SSH.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: Artemis3 on May 17, 2019, 11:46:53 PM
I thought someone already discovers to enabled SSH but looks like he's planning to sell this fake SSH unlock tool.

If you can provide an opensource code of the tool we can verify it if the tool has stuffing or backdoors.

Why not we can donate any amount if your tools are actually clean and working.
There are many miners out there that are eagerly waiting for a solution to enable SSH.

There is indeed real interest and people willing to pay for this. Since they made the mistake of remotely upgrading their S9s remotely and now found (the hard way) they can no longer SSH to them. And, well, not everyone can go physically do the SD card or serial port method...

If you are an Antminer owner, DO NOT upgrade to any firmware from 2019 or you will lose SSH access. (https://bitcointalk.org/index.php?topic=5131546.0)

Logically to avoid scams, trojans or backdoors releasing the source code of the tool is the honest thing to do.

There is no need to doubt the person, code talks.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: thierry4wd on June 01, 2019, 03:46:42 PM
hi, i'm really interessed by this ! i locked my miner with latest firmware T9+ (but is good for lambda perssonne) ... 10,5Ths for only 930w ... is not bad :) but i need SSH for hack this and unlock more power :p


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: BitMaxz on June 01, 2019, 09:36:25 PM
There is a tested procedure to enable back the SSH access by downgrading the t9+ firmware to below 2018 firmware but you can downgrade it through web GUI but you can flash it through SD card by follow this method "T9+ Control Board Program Recovery (https://support.bitmain.com/hc/en-us/articles/360007577214-T9-Control-Board-Program-Recovery)".

After you flash it with SD card now flash it again with lower version through web GUI (make sure not to flash it with 2019 firmware).

Now you have gain access again with SSH.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: mikeywith on June 11, 2019, 11:00:15 PM
I don't mind paying you an average programmer month worth of salary for you to release the "code/script" , so if it's money that you want, let me know how much is it, but if you are just wasting your time and trying to get some newbies to send you money for something you don't have, or/and attempting to give them an executable file or steal their hashrate then this may be the wrong place for all of that.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: bruiser on June 28, 2019, 07:20:13 AM
https://asicseer.com/page/security-restoring-ssh There you go. Free of charge.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: Artemis3 on July 04, 2019, 12:32:48 AM
https://asicseer.com/page/security-restoring-ssh There you go. Free of charge.

Well it was bound to happen. I hope it doesn't do any nasties, as this is some binary blob without source code...


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: PassThePopcorn on July 06, 2019, 04:01:47 PM
Well it was bound to happen. I hope it doesn't do any nasties, as this is some binary blob without source code...

So far their firmware has been working without an issue, I haven't tried their ssh recovery tool because I currently don't have that need.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: philipma1957 on July 06, 2019, 04:26:17 PM
So far their firmware has been working without an issue, I haven't tried their ssh recovery tool because I currently don't have that need.

Good news


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: s3binator on July 08, 2019, 02:36:35 PM
FYI

The asicseer "SSH Restore" does not work with newest firmware for s9. It runs, says it was successful, but port 22 is still closed.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: PassThePopcorn on July 08, 2019, 04:03:46 PM
Did you talk to their devs on telegram, I haven't seen anyone say it hasn't worked but I think most people who ran it were on March.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: s3binator on July 10, 2019, 02:59:04 PM
I did, and they told me that it probably got patched. The other guy with the red "exploited" stuff tells me his still works.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: BitMaxz on July 10, 2019, 08:49:13 PM
Did you try to restart the miner? Maybe you need to restart it first.

If it's not working maybe the latest firmware got patched recently.

Your last option if you want to enable the SSH you need to downgrade the miner through SD card.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: bruiser on July 15, 2019, 10:20:15 AM
FYI

The asicseer "SSH Restore" does not work with newest firmware for s9. It runs, says it was successful, but port 22 is still closed.

Need to downgrade to March first. Instructions added: https://asicseer.com/page/security-restoring-ssh


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: tim-bc on July 22, 2019, 07:29:27 PM
Need to downgrade to March first. Instructions added: https://asicseer.com/page/security-restoring-ssh

It seems to me like the multi-option menu provided by the May 2019 firmware is more useful than anything that SSH would provide? (Assuming that upgrading back to May would lock SSH again)

What is there that you can do with SSH that you can't do through the web portal?


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: Artemis3 on July 23, 2019, 05:35:45 PM
Freedom. You only remember it when you want to do something outside of the norm, but then its too late, because you foolishly committed to them. I can simply counter your argument, there is nothing the Bitmain firmware can do that Braiins OS can't do much better, AND you keep full control of your device...

Just because they made the chips doesn't mean they are the best to use them. There are countless examples in history, but i would mention: Atari, Activision and the Stella graphics chip (hint: The rainbow). We could go over all 40 years of personal computing history, and this history only repeats itself.

You would have never gotten that "multi-option" menu without bOS.


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: s3binator on July 24, 2019, 11:30:59 PM
I can automate the configuration of machines. Using web portal is time consuming and tedious if you have many machines.

... What is there that you can do with SSH that you can't do through the web portal?


Title: Re: SSH Unlock for antminer s9 firmware, anyone interested?
Post by: cfbtcman on August 05, 2019, 06:07:58 PM
Hello,

I was recently contacted by someone asking for a solution to unlock their miners after upgrading to the latest firmware.

I was able to find a solution to open SSH and remove the signature check thing which was added by bitmain.

I want to know if anyone would be interested in a tool to do that. I am not sure if I should ask for money for this because it took me
30 mins to do it, but I might open an account for donations if you find it useful.

If I get at least 3 people which need this, I will write the tool so it's easy to use and also keeps permanent changes.

If there's more people which need this kind of solution, add what kind of features it should have, if you want to downgrade or just
enable ssh at boot time.

Shean

Im interested, send me your contact.