Skip to content

Commit 9547c90

Browse files
authored
Move kernel dump code for cleaner kernel dumps
1 parent 4bb3382 commit 9547c90

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ int main()
142142
// Print out the kernel base
143143
SOCK_LOG("[+] Kernel base = 0x%lx\n", ktext(0));
144144

145+
// run_dump_server(9003);
146+
// reset_mirrors();
147+
// return 0;
148+
145149
// Apply patches
146150
if (apply_kernel_patches() != 0) {
147151
SOCK_LOG("[!] Applying kernel patches failed, firmware likely not supported\n");
@@ -178,7 +182,6 @@ int main()
178182
SOCK_LOG("[+] Aft. hook is_development_mode = 0x%x\n", __sys_is_development_mode());
179183

180184
run_self_server(9004);
181-
// run_dump_server(9003);
182185
reset_mirrors();
183186
return 0;
184-
}
187+
}

0 commit comments

Comments
 (0)