Post
Topic
Board Mining (Altcoins)
Re: DSTM 0.5.7 Fee REMOVE (Hashpower redirect to own wallet)
by
ap0stol
on 23/02/2018, 17:49:07 UTC
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);
}