Add mount commands and fstab entries with clear credentials#210
Merged
bee-san merged 5 commits intobee-san:mainfrom Oct 15, 2021
Merged
Add mount commands and fstab entries with clear credentials#210bee-san merged 5 commits intobee-san:mainfrom
bee-san merged 5 commits intobee-san:mainfrom
Conversation
ghost
reviewed
Oct 12, 2021
pywhat/Data/regex.json
Outdated
| }, | ||
| { | ||
| "Name": "Mount Command With Clear Credentials", | ||
| "Regex": "^(mount(.cifs)?[ ]+[^\\n]*(username=[^, \\n]+[^\\n ]*password=[^, \\n]+|password=[^, \\n]+[^\\n ]*username=[^, \\n]+))$", |
There was a problem hiding this comment.
What[ ]+ is supposed to mean? Why not \s+?
Contributor
Author
There was a problem hiding this comment.
[ ]+ indeed does have the same meaning as \s+, I'll change it if it's more meaningful.
Contributor
Author
|
Code seems to break with the change, let me check out why. |
Contributor
Author
|
FIxed 😉 |
Codecov Report
@@ Coverage Diff @@
## main #210 +/- ##
==========================================
+ Coverage 94.46% 94.50% +0.03%
==========================================
Files 14 14
Lines 1717 1729 +12
==========================================
+ Hits 1622 1634 +12
Misses 95 95
Continue to review full report at Codecov.
|
Contributor
Author
|
Windows tests failure are currently investigated by GitHub > https://www.githubstatus.com/ |
Contributor
Author
|
Tests should now be able to run normally by the way 😉 |
bee-san
approved these changes
Oct 15, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Why do we need this pull request?
mountandmount.cifscommands with clear credentials as args. Can be found in various scripts. Complex commands with multiple arguments, flags and random arg order are supported.fstabentries. Easily found vulnerability.Copy / paste of output