Update c source with argc check and CRASH notes for module

This commit is contained in:
bwatters 2022-04-20 17:37:48 -05:00
parent d9a241defb
commit 26f9175816
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
4 changed files with 9 additions and 2 deletions

View File

@ -256,6 +256,9 @@ void save_state() {
}
int main(int argc, char* argv[]) {
if (argc != 2){
exit(1);
}
exec_path = argv[1];
// Assign to cpu 0
cpu_set_t my_set;

View File

@ -261,7 +261,11 @@ void save_state() {
}
int main(int argc, char* argv[]) {
printf("Trying to launch %s\n", argv[1]);
if (argc != 2){
perror("Incorrect number of arguments provided\n")
exit(1);
}
printf("Attempting to launch %s\n", argv[1]);
exec_path = argv[1];
printf("Trying to launch %s\n", exec_path);
// Assign to cpu 0

View File

@ -47,7 +47,7 @@ class MetasploitModule < Msf::Exploit::Local
'DefaultTarget' => 0,
'Notes' => {
'Reliability' => [ REPEATABLE_SESSION ],
'Stability' => [ CRASH_OS_RESTARTS ], # In practice haven't seen this happen but there is a small potential for a kernel panic here.
'Stability' => [ CRASH_OS_DOWN ],
'SideEffects' => [ ARTIFACTS_ON_DISK ]
}
)