-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Generate manual run commands with OTP #3195
Conversation
.../monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunManually/LocalManualRunOptions.js
Show resolved
Hide resolved
8472067
to
2d86ab5
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #3195 +/- ##
==========================================
Coverage ? 73.05%
==========================================
Files ? 471
Lines ? 13585
Branches ? 0
==========================================
Hits ? 9924
Misses ? 3661
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
458e546
to
0583355
Compare
.../monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunManually/LocalManualRunOptions.js
Outdated
Show resolved
Hide resolved
function generateCommands() { | ||
if (osType === OS_TYPES.WINDOWS_64) { | ||
return [{type: 'Powershell', command: GenerateLocalWindowsPowershell(selectedIp, customUsername)}] | ||
return [{type: 'Powershell', command: GenerateLocalWindowsPowershell(selectedIp, customUsername, otp)}] | ||
} else { | ||
return [{type: 'CURL', command: GenerateLocalLinuxCurl(selectedIp, customUsername)}, | ||
{type: 'WGET', command: GenerateLocalLinuxWget(selectedIp, customUsername)}] | ||
return [{type: 'CURL', command: GenerateLocalLinuxCurl(selectedIp, customUsername, otp)}, | ||
{type: 'WGET', command: GenerateLocalLinuxWget(selectedIp, customUsername, otp)}] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hide the OTP and replace it with '*'?
.../monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunManually/LocalManualRunOptions.js
Outdated
Show resolved
Hide resolved
.../monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunManually/LocalManualRunOptions.js
Outdated
Show resolved
Hide resolved
.../monkey_island/cc/ui/src/components/pages/RunMonkeyPage/RunManually/LocalManualRunOptions.js
Outdated
Show resolved
Hide resolved
0fbe7b8
to
81da708
Compare
What does this PR do?
Fixes part of #3078.
PR Checklist
Testing Checklist