Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 18:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Showing iPatientZero's PolyEngine algorithm

Discussion on Showing iPatientZero's PolyEngine algorithm within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 225
Join Date: Sep 2014
Posts: 334
Received Thanks: 461
Showing iPatientZero's PolyEngine algorithm

PHP Code:
#include <Windows.h>
#include <iostream>
#include <time.h>
#include <vector>
#include <map>
#include <string>

#define MAX_VALUE_FOR_RANDOM 9734983
#define MAX_VALUE_FOR_TYPES 5
#define MAX_VALUE_FOR_VARNAME 15

enum Types
{
    
fl 0,
    
integer 1,
    
character 2,
    
const_character 3,
    
booleaN 4,
};

std::string TypeToStringsize_t typeValue )
{
    if ( 
typeValue == Types::fl )
        return 
"float ";
    if ( 
typeValue == Types::integer )
        return 
"int ";
    if ( 
typeValue == Types::character )
        return 
"char ";
    if ( 
typeValue == Types::const_character )
        return 
"const char* ";
    if ( 
typeValue == Types::booleaN )
        return 
"bool ";
}

void gen_randomchar *s, const int len ) {
    static const 
char alphanum[] =
        
"0123456789"
        "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        "abcdefghijklmnopqrstuvwxyz"
;

    for ( 
int i 0len; ++) {
        
s[i] = alphanum[rand( ) % ( sizeofalphanum ) - )];
    }

    
s[len] = 0;
}

int main( )
{
    
srandtimeNULL ) );

    
size_t randomType;
    
unsigned randomValue;


    
charrandomVarNamePrefix "_var_";
    
charrandomVarNameSuffix = ( char* )mallocMAX_VALUE_FOR_VARNAME );
    
charfinalVarName = ( char* )mallocMAX_VALUE_FOR_VARNAME );


    
charrandomCharValue = ( char* )mallocMAX_VALUE_FOR_VARNAME );
    
size_t randomVarNameSize;
    
charrandomChar = ( char* )malloc);
    for ( 
auto i); 10; ++)
    {
        
randomVarNameSize rand( ) % MAX_VALUE_FOR_VARNAME 5;
        
gen_randomrandomVarNameSuffixrandomVarNameSize );
        
strcpyfinalVarNamerandomVarNamePrefix );
        
strcatfinalVarNamerandomVarNameSuffix );
        
        
randomType rand( ) % MAX_VALUE_FOR_TYPES// 0 to 4
        
randomValue rand( ) % MAX_VALUE_FOR_RANDOM// 0 to 9734982

        
if ( randomValue == )
        {
            
std::cout << TypeToStringrandomType ) << finalVarName << ";\n";
            continue;
        }

        if ( 
randomType == Types::character )
        {
            
gen_randomrandomChar);
            
std::cout << TypeToStringrandomType ) << finalVarName << " = '" << randomChar << "';\n";
            continue;
        }
        else if ( 
randomType == Types::const_character )
        {
            
gen_randomrandomCharValueMAX_VALUE_FOR_VARNAME );
            
std::cout << TypeToStringrandomType ) << finalVarName << " = \"" << randomCharValue << "\";\n";
            continue;
        }

        
std::cout << TypeToStringrandomType ) << finalVarName << " = " << randomValue << ";\n";
    }

    
std::cin.get( );

possible output:

Code:
bool _var_tj1hr7hd = 20686;
bool _var_gV2pkbHp8wlou = 21773;
char _var_D2KfqxT9 = 'U';
bool _var_qmWAFw = 22076;
const char* _var_4bkttBMw1mJl8j = "qdheM1MZuFv1TpO";
bool _var_U4iQahPq = 8714;
float _var_ynSUGegSN = 18218;
char _var_L75H34Ed2MN = 'X';
int _var_W4clpxnOR5jXhq7th = 24626;
const char* _var_31kbmJwGRbMHPX = "ISQEoloh6ZmJzhi";
his polyengine 'should' protect you from signatures ROFL.
if you wanna use this(XD) you have to wrap the junk code around your 'real'
source code stuff whatever lol lmao.

just wrap this whole thing in a function and then do something like
"[JUNK PLEASE HERE]" string before your codenz .cpp / .txt / .hpp / .h file and
"[JUNK PLEASE END HERE]" string after your codenz you want to HIDE.

Search for that with std algorithms get the offset in file lines or stuff
and then place it there with the wrapper function.

here: search that shit set stream pos with
fseek and then write the crap out of it.

PS: don't forget to free the allocated memory
Cyrex' is offline  
Reply


Similar Threads Similar Threads
[Just another graph-related algorithm] Kruskal`s algorithm
07/25/2012 - CO2 Programming - 11 Replies
(Scroll down for the code if you aren`t interested in my wall of text.) Okay, my previous post on Dijkstra`s algorithm didn`t really get the attention it was supposed to get, but I`m still starting a trend out of this. What exactly? I will be posting general purpose algorithms from time to time, as I truly believe that this is one of the most fundamental and important aspect of being a good coder : knowing the basic algorithms (lol?). If anyone can provide a way of implementing this in a CO...
Getting blowfish key and using the algorithm
03/17/2011 - SRO Coding Corner - 10 Replies
Good evening:) I am still busy with the packets of silkroad and I'm now trying to understand on how to decrypt the packets but I'm having some problems with it. I read drew benton's artikel about the silkroad security but I still don't know on which blowfish key is used to decrypt the packets. let's say these four packets are the first 4 S -> C 00000 25 00 00 50 00 00 0e d2 a9 27 80 2d c3 23 6c f6 %..P.....'.-.#l. 00016 00 00 00 62 00 00 00 8d ac fe 38 3d d0 9c ef 67 ...



All times are GMT +2. The time now is 18:25.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.