Author

Topic: [XMR] How to take advantage of private locked monero.rs miner ? (Read 1208 times)

sr. member
Activity: 462
Merit: 250
I tried their original Windows version of the private miner. I also use Yam's cpu miner.
The hash rate for Yam is 290h/s, private miner 226 h/s. 5 threads of CPU 3930K Sandybridge, 32 GB memory. So the private miner is worse than Yam miner for me.
full member
Activity: 219
Merit: 100
Also you can directly modify the binary with hexedit:

Code:
hexedit minerd-eu-ip1

Use "tab" to switch to ascii mode and use CTRL-s to get the prompt for search :
Code:
000F49F0   0E 0A 04 08  09 0F 0D 06  01 0C 00 02  0B 07 05 03  0B 08 0C 00  05 02 0F 0D  0A 0E 03 06  07 01 09 04  07 09 03 01  0D 0C 0B 0E  02 06 05 0A  ............................................
000F4A1C   04 00 0F 08  72 D5 DE A2  DF 15 F8 67  7B 84 15 0A  B7 23 15 57  81 AB D6 90  4D 5A 87 F6  4E 9F 4F C5  C3 D1 2B 40  EA 98 3A E0  5C 45 FA 9C  ....r......g{....#.W....MZ..N.O...+@..:.\E..
000F4A48   03 C5 D2 99  66 B2 99 9A  66 02 96 B4  F2 BB 53 8A  B5 56 14 1A  88 DB A2 31  03 A3 5A 5C  9A 19 0E DB  40 3F B2 0A  87 C1 44 10  1C 05 19 80  ....f...f.....S..V.....1..Z\....@?....D.....
000F4A74   84 9E 95 1D  6F 33 EB AD  5E E7 CD DC  10 BA 13 92  02 BF 6B 41  DC 78 65 15  F7 BB 27 D0  0A 2C 81 39  37 AA 78 50  3F 1A BF D2  41 00 91 D3  ....o3..^.........kA.xe...'..,.97.xP?...A...

                                                                                          Ascii string to search: 46.105.244.190

000F4B24   A9 A3 63 15  AA 5F 56 24  D5 B7 F9 89  B6 F1 ED 20  7C 5A E0 FD  36 CA E9 5A  06 42 2C 36  CE 29 35 43  4E FE 98 3D  53 3A F9 74  73 9A 4B A7  ..c.._V$....... |Z..6..Z.B,6.)5CN..=S:.ts.K.
000F4B50   D0 F5 1F 59  6F 4E 81 86  0E 9D AD 81  AF D8 5A 9F  A7 05 06 67  EE 34 62 6A  8B 0B 28 BE  6E B9 17 27  47 74 07 26  C6 80 10 3F  E0 A0 7E 6F  ...YoN........Z....g.4bj..(.n..'Gt.&...?..~o
000F4B7C   C6 7E 48 7B  0D 55 0A A5  4A F8 A4 C0  91 E3 E7 9F  97 8E F1 9E  86 76 72 81  50 60 8D D4  7E 9E 5A 41  F3 E5 B0 62  FC 9F 1F EC  40 54 20 7A  .~H{.U..J............vr.P`..~.ZA...b....@T z
000F4BA8   E3 E4 1A 00  CE F4 C9 84  4F D7 94 F5  9D FA 95 D8  55 2E 7E 11  24 C3 54 A5  5B DF 72 28  BD FE 6E 28  78 F5 7F E2  0F A5 C4 B2  05 89 7C EF  ........O.......U.~.$.T.[.r(..n(x.........|.

Then you will find the line
Code:
000F6308   65 6C 70 00  6E 6F 2D 6C  6F 6E 67 70  6F 6C 6C 00  6E 6F 2D 72  65 64 69 72  65 63 74 00  6E 6F 2D 73  74 72 61 74  75 6D 00 70  72 6F 74 6F  elp.no-longpoll.no-redirect.no-stratum.proto
000F6334   63 6F 6C 2D  64 75 6D 70  00 70 72 6F  78 79 00 71  75 69 65 74  00 72 65 74  72 69 65 73  00 72 65 74  72 79 2D 70  61 75 73 65  00 73 63 61  col-dump.proxy.quiet.retries.retry-pause.sca
000F6360   6E 74 69 6D  65 00 73 79  73 6C 6F 67  00 74 68 72  65 61 64 73  00 74 69 6D  65 6F 75 74  00 75 72 6C  00 75 73 65  72 00 75 73  65 72 70 61  ntime.syslog.threads.timeout.url.user.userpa
000F638C   73 73 00 76  65 72 73 69  6F 6E 00 00  73 74 72 61  74 75 6D 2B  74 63 70 3A  2F 2F 34 36  2E 31 30 35  2E 32 34 34  2E 31 39 30  3A 34 34 33  ss.version..stratum+tcp://46.105.244.190:443
000F63B8   00 00 00 00  00 00 00 00  25 73 3A 20  75 6E 73 75  70 70 6F 72  74 65 64 20  6E 6F 6E 2D  6F 70 74 69  6F 6E 20 61  72 67 75 6D  65 6E 74 20  ........%s: unsupported non-option argument
000F63E4   27 25 73 27  0A 00 00 00  00 00 00 00  25 64 20 6D  69 6E 65 72  20 74 68 72  65 61 64 73  20 73 74 61  72 74 65 64  2C 20 75 73  69 6E 67 20  '%s'........%d miner threads started, using
000F6410   27 25 73 27  20 61 6C 67  6F 72 69 74  68 6D 2E 00  05 00 00 00  0D 00 00 00  17 00 00 00  35 00 00 00  61 00 00 00  C1 00 00 00  85 01 00 00  '%s' algorithm..............5...a...........

Move the cursor to the begining of the ip and change it to ip and port of your prefered pool :
Code:
000F638C   73 73 00 76  65 72 73 69  6F 6E 00 00  73 74 72 61  74 75 6D 2B  74 63 70 3A  2F 2F 38 38  2E 31 35 31  2E 31 30 31  2E 32 32 3A  37 37 37 37  ss.version..stratum+tcp://88.151.101.22:7777
For exemple Smiley

And then save and quit ! by using CTRL-x and confirm by pressing y
Code:
000F5F98   D0 03 D3 B8  D3 BB B8 D0  82 DC 5E C3  5E 1F C3 82  29 E2 CB B0  CB 52 B0 29  5A C3 99 77  99 B4 77 5A  1E 2D 33 11  33 3C 11 1E  7B 3D 46 CB  ..........^.^...)....R.)Z..w..wZ.-3.3<..{=F.

                                                                                       Save changes (Yes/No/Cancel) ?

000F6048   51 84 50 C6  57 05 7A 0F  7B E4 D3 67  70 24 12 EA  89 E3 AB 13  D3 1C D7 69  27 5B 27 20  6F 72 20 27  7B 27 20 65  78 70 65 63  74 65 64 00  Q.P.W.z.{..gp$.........i'[' or '{' expected.

If all goes well you should have something like this :
Code:
root@sd-56197:/home/netmonk# ./minerd-eu-ip1 -u ****************************************************************************** -t 4 -P
[2014-09-16 11:29:54] Using JSON-RPC 2.0
[2014-09-16 11:29:54] Starting Logrotation
[2014-09-16 11:29:54] 4 miner threads started, using 'cryptonight' algorithm.
* About to connect() to 88.151.101.22 port 7777 (#0)
*   Trying 88.151.101.22... * TCP_NODELAY set
* connected
* Connected to 88.151.101.22 (88.151.101.22) port 7777 (#0)
* Connection #0 to host 88.151.101.22 left intact
[2014-09-16 11:29:54] > {"method": "login", "params": {"login": "*********************************************************************************************", "pass": "", "agent": "cpuminer-multi/0.1"}, "id": 1}
[2014-09-16 11:29:54] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"513350947294384","job":{"blob":"01009386e0a005ee77d02b158d8adf6940585f3ac3d9123d5a37d9d218e3466507c21a5aca748e0000000069289ff26a0723a4581a48d96f0f2675673f83e7f56d1469d22657ae96320be001","job_id":"219754267297685","target":"b88d0600"},"status":"OK"}}
[2014-09-16 11:29:54] Pool set diff to 10000
[2014-09-16 11:29:54] Stratum detected new block
[2014-09-16 11:30:40] > {"method": "submit", "params": {"id": "513350947294384", "job_id": "219754267297685", "nonce": "ab0a00c0", "result": "82b8358ff2497a6e511ce4aeef8c6d1462634f8fb35c36a830fa7b67c3410400"}, "id":1}

[2014-09-16 11:30:40] < {"id":1,"jsonrpc":"2.0","error":null,"result":{"status":"OK"}}
[2014-09-16 11:30:40] accepted: 1/1 (100.00%), 234.63 H/s at diff 10000 (yay!!!)
legendary
Activity: 1382
Merit: 1002
.....
In the hosts file, I cannot add port number.



No, I think that the hosts file does not support that, it just tells Windows where a hostname should resolve to.
If you are running windows, you will have to look into forwarding traffic with your firewall, similar to what netmonk showed in the parent post.
sr. member
Activity: 462
Merit: 250
I cannot find the post, but it was sayd that for windows it was a name hardcoded into the binary (not an ip).

If so modifying the host file on your computer would help. Just the port should remain the same on the new target server.

When you say "host file", is it minerd-eu.exe? How do I modify that?

Check your host file located here:
C:\Windows\System32\drivers\etc\hosts

Edit the file and put in a hostname and ip address. Ideally this will redirect the traffic to this host specified.
You might need to run notepad as Administrator to make changes to the file.

In the hosts file, I cannot add port number.

newbie
Activity: 42
Merit: 0
Thanks for the free promotion, good luck with your pool netmonk.

Serious miners, more info about our miners and pool features here : https://bitcointalksearch.org/topic/monero-mining-pool-monerors-ddos-protected-private-cpu-miner-5-20-boost-758961
legendary
Activity: 1382
Merit: 1002
I cannot find the post, but it was sayd that for windows it was a name hardcoded into the binary (not an ip).

If so modifying the host file on your computer would help. Just the port should remain the same on the new target server.

When you say "host file", is it minerd-eu.exe? How do I modify that?

Check your host file located here:
C:\Windows\System32\drivers\etc\hosts

Edit the file and put in a hostname and ip address. Ideally this will redirect the traffic to this host specified.
You might need to run notepad as Administrator to make changes to the file.
sr. member
Activity: 462
Merit: 250
I cannot find the post, but it was sayd that for windows it was a name hardcoded into the binary (not an ip).

If so modifying the host file on your computer would help. Just the port should remain the same on the new target server.

When you say "host file", is it minerd-eu.exe? How do I modify that?
full member
Activity: 219
Merit: 100
I cannot find the post, but it was sayd that for windows it was a name hardcoded into the binary (not an ip).

If so modifying the host file on your computer would help. Just the port should remain the same on the new target server.
sr. member
Activity: 462
Merit: 250
do you have instruction for Windows?
full member
Activity: 219
Merit: 100
Monero.rs had a very aggressive attitude to catch and keep miner with their "improved" private mining software.

Those mining software are supposed to be 5%-12% more hashrate than any public version currently available.
The bad thing is that they are locked on monero.rs pool, with hardcoded ip or name (in the windows version).

As you can see here : https://bitcointalksearch.org/topic/monero-mining-pool-monerors-ddos-protected-private-cpu-miner-5-20-boost-758961

So basically, how to use those supposed improved version on other pool (even private pool) ?

For linux version we know that the IP and the PORT of monero.rs pool server are hardcoded.

For exemple : EUROPE eu.monero.rs node (46.105.244.190:443): http://monero.rs/minerd-eu-ip1.gz
The version 1 of the improved miner point to ip 46.105.244.190 and port 443.

If you are running this program on your local machine (localhost) you can force your tcp/ip stack to redirect this connexion to another ip and port.

For this you need iptable and play with routing table and dnat.

For exemple bending the traffic to point to another pool can be done like this :

Code:
iptables -t nat -A OUTPUT -p tcp -d 46.105.244.190 --dport 443 -j DNAT --to-destination 88.151.101.22:7777

To check if ok :
Code:
iptables -L -vt NAT
you should see the new entry.

This way the improved miner talk to another pool, than the one hardcoded in the binary.

Enjoy !

PS: Dont expect too much improvement, i run it since 3 days now, and my average H/s go to 240 to 250.
PS2: and to fear those who will say the binary will check... it checks nothing even after 3 hours ! and it runs on my pool thing 3 days now without any problem. 
Jump to: