Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden Connectors
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Warden
Warden Connectors
Commits
3fb6670a
Commit
3fb6670a
authored
3 months ago
by
Pavel Valach
Browse files
Options
Downloads
Patches
Plain Diff
cowrie/wardenfiler: Only send accepted credentials with the Intrusion.UserCompromise event
parent
c4300b84
No related branches found
No related tags found
1 merge request
!10
cowrie/wardenfiler: Store credentials for both successful and unsuccessful attempts
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cowrie/wardenfiler.py
+2
-1
2 additions, 1 deletion
cowrie/wardenfiler.py
with
2 additions
and
1 deletion
cowrie/wardenfiler.py
+
2
−
1
View file @
3fb6670a
...
...
@@ -400,7 +400,8 @@ class Output(cowrie.core.output.Output):
attach
[
"
ContentEncoding
"
]
=
"
base64
"
event
[
"
Attach
"
]
=
[
attach
]
if
self
.
sessions
[
s
][
"
credentials
"
]:
event
[
"
Credentials
"
]
=
self
.
sessions
[
s
][
"
credentials
"
]
accepted_creds
=
[
c
for
c
in
self
.
sessions
[
s
][
"
credentials
"
]
if
"
Accepted
"
in
c
]
event
[
"
Credentials
"
]
=
list
(
accepted_creds
)
self
.
save_event
(
event
)
if
s
in
self
.
sessions
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment