Update c source with argc check and CRASH notes for module
This commit is contained in:
parent
d9a241defb
commit
26f9175816
Binary file not shown.
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ]
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue