Skip to content

Commit

Permalink
Small adjustments after the received user-agent feature PR
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarAkaElvis committed Jul 1, 2024
1 parent bd6ce52 commit 271b6b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion evil-winrm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def arguments
$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|
Expand Down

0 comments on commit 271b6b6

Please sign in to comment.