Small adjustments after the received user-agent feature PR

This commit is contained in:
OscarAkaElvis
2024-07-01 14:16:58 +02:00
parent bd6ce52d92
commit 271b6b6871
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
- Improvements of paths parsing
- Fixed bug downloading files without extension
- Replaced deprecated File.exists by File.exist function to avoid errors on newer Ruby versions
- Added useragent option
- Added user-agent option (Thanks gmkbenjamin)
### 3.5
- Improvements on powershell functions loading
+1 -1
View File
@@ -10,7 +10,7 @@ Please note we have a [Code of Conduct], please follow it in all your interactio
1. Direct push to [Master] is not allowed.
2. Pull Requests to [Master] are not allowed.
3. Usually, commits and pull requests should be done on [Dev] branch. If you have any doubt, don't hesitate to ask first.
3. Usually, commits and pull requests should be done on [Dev] branch using the content of our [Dev] branch to avoid missing features not released yet. If you have any doubt, don't hesitate to ask first.
4. Temporary branches may be existing for specific features, be pretty sure that the branch you are going to commit on is the right one. Ask first if you have any doubt.
5. Any branch will be finally merged to [Dev], there it will be reviewed and tested deeply before being merged to [Master].
6. All merges from [Dev] to [Master] are a new `evil-winrm` release. This merges to [Master] will be performed and reviewed exclusively by the staff.
+2 -1
View File
@@ -38,6 +38,7 @@ protocol, it is using PSRP (Powershell Remoting Protocol) for initializing runsp
- Optional logging feature
- Docker support (prebuilt images available at [Dockerhub])
- Trap capturing to avoid accidental shell exit on Ctrl+C
- Customizable user-agent using legitimate Windows default one
## Help
```
@@ -55,7 +56,7 @@ Usage: evil-winrm -i IP -u USER [-s SCRIPTS_PATH] [-e EXES_PATH] [-P PORT] [-p P
-p, --password PASS Password
-H, --hash HASH NTHash
-P, --port PORT Remote host port (default 5985)
-a, --user-agent Specify connection useragent (default Microsoft WinRM Client)
-a, --user-agent Specify connection user-agent (default Microsoft WinRM Client)
-V, --version Show version
-n, --no-colors Disable colors
-N, --no-rpath-completion Disable remote path completion
+1 -1
View File
@@ -164,7 +164,7 @@ class EvilWinRM
$ssl = true
options[:port] = '5986'
end
opts.on('-a', '--user-agent USERAGENT', 'Specify connection useragent (default Microsoft WinRM Client)') do |val|
opts.on('-a', '--user-agent USERAGENT', 'Specify connection user-agent (default Microsoft WinRM Client)') do |val|
options[:user_agent] = val
end
opts.on('-c', '--pub-key PUBLIC_KEY_PATH', 'Local path to public key certificate') do |val|