-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsource_code.c
More file actions
73 lines (68 loc) · 3.75 KB
/
source_code.c
File metadata and controls
73 lines (68 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include<stdio.h>
#include<string.h>
#include <unistd.h>
#include<stdlib.h>
void main() {
system("clear");
printf(" \033[0;31m /$$$$$$$$ /$$ /$$ /$$ /$$$$$$$ /$$$$$$ /$$$$$$ \033[0m \n"
" \033[0;31m | $$_____/ | $$ |__/ | $$ | $$__ $$ /$$__ $$ /$$__ $$ \033[0m \n"
" \033[0;31m | $$ /$$ /$$ /$$$$$$ | $$ /$$$$$$ /$$ /$$$$$$ | $$ $$ /$$ /$$| $$ __/| $$ __//$$$$$$ /$$$$$$\033[0m \n"
" \033[0;31m| $$$$$ | $$ /$$/ /$$__ $$| $$ /$$__ $$| $$|_ $$_/ | $$$$$$$ | $$ | $$| $$$$ | $$$$ /$$__ $$ /$$__ $$\033[0m \n"
" \033[0;31m | $$__/ $$$$/ | $$ $$| $$| $$ $$| $$ | $$ | $$__ $$| $$ | $$| $$_/ | $$_/ | $$$$$$$$| $$ \\__/\033[0m \n"
" \033[0;31m | $$ >$$ $$ | $$ | $$| $$| $$ | $$| $$ | $$ /$$ | $$ $$| $$ | $$| $$ | $$ | $$_____/| $$ \033[0m \n"
" \033[0;31m | $$$$$$$$ /$$/ $$| $$$$$$$/| $$| $$$$$$/| $$ | $$$$/ | $$$$$$$/| $$$$$$/| $$ | $$ | $$$$$$$| $$ \033[0m \n"
" \033[0;31m |________/|__/ __/| $$____/ |__/ ______/ |__/ ___/ |_______/ ______/ |__/ |__/ _______/|__/ \033[0m \n"
" \033[0;31m | $$ \033[0m \n"
" \033[0;31m | $$ \033[0m \n"
" \033[0;31m |__/ \033[0m \n");
printf("\t\t\t\t\t\t\t\t\033[0;32m--------------------> Coded By:\033[0m ");
int length;
char words[] = "\033[1;32mPredator0x300 <--------------------\033[0m\n";
for (length = 0; length < strlen(words); length++) {
sleep(0.9);
putchar(words[length]);
fflush(stdout);
}
printf("{+} Pls Wait!\n");
int length1;
char words1[] = "\033[1;31mLoading....\033[0m\n";
for (length1 = 0; length1 < strlen(words1); length1++) {
sleep(1);
putchar(words1[length1]);
fflush(stdout);
}
char *initial_memory;
initial_memory = malloc(10);
char *execution;
execution = malloc(128);
printf("\033[1;32m{+} Initial Memory address: %d\n", initial_memory);
sleep(0.9);
printf("\033[1;32m{+} Final Memory address: %d\n", execution);
sleep(0.9);
int roll = printf("\033[1;32m{+} Allocated space between %d & % is: %d\n",initial_memory,execution, execution-initial_memory);
sleep(0.9);
if(roll == 16){
char character_y[40];
char character_z[40];
strcpy(character_y,"nnnnnnnnnnnnnnnn");
printf("*Enter the command for execution: \n");
fgets(character_z, sizeof(character_z), stdin);
printf("\033[0;31m{+} Data Fetched: \033[0m \n");
strcat(character_y, character_z);
printf("\033[0;31mExecuted: %s\033[0m", character_z);
strcpy(initial_memory, character_y);
system(execution);
}
else{
char character_y[40];
char character_z[40];
strcpy(character_y,"nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn");
printf("\033[0;31mEnter the command for execution: \033[0m\n");
fgets(character_z, sizeof(character_z), stdin);
printf("\033[0;31m{+} Data Fetched: \033[0m \n");
strcat(character_y, character_z);
printf("Executed: %s", character_z);
strcpy(initial_memory, character_y);
system(execution);
}
}