Skip to content

Add windows default install#605

Merged
hulto merged 5 commits intomainfrom
add-windows-default-install
Feb 17, 2024
Merged

Add windows default install#605
hulto merged 5 commits intomainfrom
add-windows-default-install

Conversation

@hulto
Copy link
Copy Markdown
Collaborator

@hulto hulto commented Feb 17, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add a default way for imix users to install on windows.
Fix imix service build allowing it to run as a regular exe as well.

@hulto hulto added this to the v0.1.0 milestone Feb 17, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 17, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (8d8d457) 67.84% compared to head (9c77057) 71.53%.

Files Patch % Lines
implants/imix/src/main.rs 0.00% 11 Missing ⚠️
implants/imix/src/lib.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #605      +/-   ##
==========================================
+ Coverage   67.84%   71.53%   +3.69%     
==========================================
  Files         167      167              
  Lines       10420    11002     +582     
==========================================
+ Hits         7069     7870     +801     
+ Misses       3172     2953     -219     
  Partials      179      179              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

create_res = sys.shell("sc.exe create "+service_name+" binpath= "+executable_path+" displayname="+service_display_name+" start= auto type= own")
if 'ERROR' in create_res['stdout'] or create_res['stderr'] != "":
print("Failed to create service:\n")
print(create_res)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: combine these into one print statement

print("failed to create service:\n"+create_rest+"\n")

Comment thread implants/imix/src/main.rs Outdated
extern crate windows_service;

use imix::handle_main;
use imix::{handle_main};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the {}

KCarretto
KCarretto previously approved these changes Feb 17, 2024
@hulto hulto merged commit 150caa1 into main Feb 17, 2024
@hulto hulto deleted the add-windows-default-install branch February 17, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants