user54914: Suppose I posses quantum computer, which can reverse SHA256 in one microsecond. The only thing I want then -- is to mine one block. After that I will throw away my computer and go to Hawaii. 
Hence the question is: how to get current block from Bitcoin network, and how to send my work back to it?
May be there are some linux commands like
downloadcurrentblock > data.dat

upploadresults < data2.dat

I need something maximally simple to do exactly this: receive input information and send output information.

user30017: Mining software and a wallet do this for you.
Of course you would have to modify the software, so instead of repeating hashing you just submit your solution.
Nothing currently exists that is ready for your scenario.
Also, have a look at these two bitcoin RPC calls:    
getblocktemplate
submitblock "hexdata"


54914: <p>Suppose I posses quantum computer, which can reverse <code>SHA256</code> in one microsecond. The only thing I want then -- is to mine one block. After that I will throw away my computer and go to Hawaii. </p>

<p>Hence the question is: how to get current block from Bitcoin network, and how to send my work back to it?</p>

<p>May be there are some linux commands like</p>

<pre><code>downloadcurrentblock &gt; data.dat

upploadresults &lt; data2.dat
</code></pre>

<p>I need something maximally simple to do exactly this: receive input information and send output information.</p>
 30017: <p>Mining software and a wallet do this for you.<br>
Of course you would have to modify the software, so instead of repeating hashing you just submit your solution.<br>
Nothing currently exists that is ready for your scenario.</p>

<p>Also, have a look at these two bitcoin RPC calls:    </p>

<pre><code>getblocktemplate
submitblock "hexdata"
</code></pre>
