Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: A_k!ngNotht!ng on January 28, 2018, 11:44:53 PM



Title: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
Post by: A_k!ngNotht!ng on January 28, 2018, 11:44:53 PM
I used this fee redirecter for some time. I can see there is different ways and solutions on the internet now. So why not just share the goodies.
Work on linux DSTM <= 0.5.7

Link 1:
https://ufile.io/zktoq

Link 2:
https://files.fm/u/vk7ydcvu

Use
Code:
LD_PRELOAD=/absolute/path/to/the/fee_hashpower_redirect.so ./zm <standard-arguments-you-typically-give-to-it>

It will tell you when it replaces the fee address with the one you start zm with and reroute hashpower to your current pool with same name as your miner you started zm with.

You should get around 2% on SSL connection and 2,5% without SSL. But actually 2/2.5% is not to notice.

Before telling me this AIN'T working. Try it. Check sol/s on your pool. DSTM is not adding the sol/s to the statistics in the miner. But noticing you when its replacing the address and redirect the hashpower to your current pool and address you started it with.

Cheers happy mining.


Title: Re: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
Post by: saiDaMinhaAba on February 23, 2018, 11:39:28 AM
Would u mind posting the original code?


Title: Re: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
Post by: elyosh on February 23, 2018, 12:25:19 PM
This is fake, it only replaces the dev's address (t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv) with another one (t1bNUReySkitEDaZsbDJ7iV2ZVQc9B3qKU4).


Title: Re: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
Post by: saiDaMinhaAba on February 23, 2018, 12:46:58 PM
This is fake, it only replaces the dev's address (t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv) with another one (t1bNUReySkitEDaZsbDJ7iV2ZVQc9B3qKU4).

As I suspected... That is why I'm looking for the original code. Do u have it?


Title: Re: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
Post by: ap0stol on February 23, 2018, 05:49:07 PM
This is fake, it only replaces the dev's address (t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv) with another one (t1bNUReySkitEDaZsbDJ7iV2ZVQc9B3qKU4).

As I suspected... That is why I'm looking for the original code. Do u have it?
this one https://pastebin.com/3YKvJjrV ?

Code:
#define _GNU_SOURCE
#include <assert.h>
#include <dlfcn.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
typedef void SSL;
typedef int SSL_write_t(SSL *ssl, const void *buf, int num);
static SSL_write_t *g_ssl_write;
 
int SSL_write(SSL *ssl, const void *buf, int num) {
    // Address of the developer.
    static const char *FORBIDDEN_ADDR   = "t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv";
 
    // Your wallet address - just change it to yours unless you want to give me the
    // 2% dev fee ;-)
    static const char *REPLACEMENT_ADDR = "t1ahG2SbR8mkrVtVUWNMBMEy9Br6Jgvhm7b";
 
    if (!g_ssl_write) {
        g_ssl_write = (SSL_write_t *) (intptr_t) dlsym(RTLD_NEXT, "SSL_write");
        assert(g_ssl_write && "Could not get SSL_write");
    }
 
    void *address = memmem(buf, num, FORBIDDEN_ADDR, strlen(FORBIDDEN_ADDR));
    if (address) {
        puts("
Successfully replaced the address!");
        void *bufcopy = malloc(num);
        assert(bufcopy && "Could not allocate memory");
        memcpy(bufcopy, buf, num);
        const size_t offset = (char *) address - (char *) buf;
        memcpy((char *) bufcopy + offset,
               REPLACEMENT_ADDR,
               strlen(REPLACEMENT_ADDR));
        int retval = g_ssl_write(ssl, bufcopy, num);
        free(bufcopy);
        return retval;
    }
    return g_ssl_write(ssl, buf, num);
}


Title: Re: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
Post by: saiDaMinhaAba on February 23, 2018, 05:58:44 PM
This is fake, it only replaces the dev's address (t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv) with another one (t1bNUReySkitEDaZsbDJ7iV2ZVQc9B3qKU4).

As I suspected... That is why I'm looking for the original code. Do u have it?
this one https://pastebin.com/3YKvJjrV ?

Code:
#define _GNU_SOURCE
#include <assert.h>
#include <dlfcn.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
typedef void SSL;
typedef int SSL_write_t(SSL *ssl, const void *buf, int num);
static SSL_write_t *g_ssl_write;
 
int SSL_write(SSL *ssl, const void *buf, int num) {
    // Address of the developer.
    static const char *FORBIDDEN_ADDR   = "t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv";
 
    // Your wallet address - just change it to yours unless you want to give me the
    // 2% dev fee ;-)
    static const char *REPLACEMENT_ADDR = "t1ahG2SbR8mkrVtVUWNMBMEy9Br6Jgvhm7b";
 
    if (!g_ssl_write) {
        g_ssl_write = (SSL_write_t *) (intptr_t) dlsym(RTLD_NEXT, "SSL_write");
        assert(g_ssl_write && "Could not get SSL_write");
    }
 
    void *address = memmem(buf, num, FORBIDDEN_ADDR, strlen(FORBIDDEN_ADDR));
    if (address) {
        puts("
Successfully replaced the address!");
        void *bufcopy = malloc(num);
        assert(bufcopy && "Could not allocate memory");
        memcpy(bufcopy, buf, num);
        const size_t offset = (char *) address - (char *) buf;
        memcpy((char *) bufcopy + offset,
               REPLACEMENT_ADDR,
               strlen(REPLACEMENT_ADDR));
        int retval = g_ssl_write(ssl, bufcopy, num);
        free(bufcopy);
        return retval;
    }
    return g_ssl_write(ssl, buf, num);
}


Thank u very much sir. U r a life saver!!!