Author

Topic: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet) (Read 326 times)

newbie
Activity: 20
Merit: 0
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
#include
#include
#include
#include
#include
 
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!!!
newbie
Activity: 39
Merit: 0
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
#include
#include
#include
#include
#include
 
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);
}
newbie
Activity: 20
Merit: 0
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?
newbie
Activity: 1
Merit: 0
This is fake, it only replaces the dev's address (t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv) with another one (t1bNUReySkitEDaZsbDJ7iV2ZVQc9B3qKU4).
newbie
Activity: 20
Merit: 0
Would u mind posting the original code?
newbie
Activity: 2
Merit: 0
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

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.
Jump to: