-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update of the Credential brute-force mechanism for default accounts
Implementation of AjaxTelemetry class in order to retrieve information on the scanned GLPI GLPIScan now have a README.md :)
- Loading branch information
David CARNOT
committed
Jul 25, 2019
1 parent
ad9f410
commit 8aa3783
Showing
79 changed files
with
571 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,67 @@ | ||
# GLPIScan | ||
|
||
GLPIScan is a vulnerability scanner for GLPI. | ||
|
||
## Prerequisites | ||
|
||
* pychalk >= 2.0.1 - Recommended: latest | ||
* requests >= 2.18.4 - Recommended: latest | ||
* urllib3 >= 1.22 - Recommended: latest | ||
* packaging >= 19.0 - Recommended: latest | ||
|
||
## Installation | ||
|
||
In order to install GLPIScan, you only need to clone the repository, and install the python dependencies using the requirements.txt | ||
|
||
|
||
```bash | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
## Usage | ||
|
||
List of options : | ||
|
||
``` | ||
usage: GLPIScan.py [-h] -u url [-a] [-c] [-f] [-p] [-d] | ||
GLPI Vulnerability Scanner. | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
-u url URL of GLPI application | ||
-a Perform allcheck | ||
-c Perform Credential Check | ||
-f Perform Files Check | ||
-p Perform Plugin Check | ||
-d Debug mode | ||
``` | ||
|
||
Most common usage : | ||
|
||
```bash | ||
$ python GLPIScan.py -u http://glpi/ -a | ||
``` | ||
|
||
## Further configuration | ||
|
||
The inc/Config.py file contain addiditional parameters. | ||
|
||
The parameter "PROXY" allow you to configure a proxy : | ||
```python | ||
PROXY = {"http" : "http://127.0.0.1:8080", "https" : "https://127.0.0.1:8080"} | ||
``` | ||
|
||
The parameter "HEADER" allow you yo add custom header to each request | ||
```python | ||
HEADERS = {"X-FORWARDED-FOR" : "127.0.0.1"} | ||
``` | ||
The parameter "VERSION" allow you force the version of the scanned GLPI (if you already know the version) : | ||
```python | ||
VERSION = "9.4.0" # for GLPI version 9.4.0 | ||
``` | ||
|
||
## Authors | ||
|
||
* **David CARNOT** - [Digitemis](https://www.digitemis.com/) | ||
* **Erwan R.** - [Digitemis](https://www.digitemis.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/python | ||
|
||
import Config | ||
|
||
import chalk | ||
|
||
class AjaxTelemetry: | ||
|
||
def getPluginVersion(self, info, name): | ||
try: | ||
for plugin in Config.AJAX_TELEMETRY['glpi']['plugins']: | ||
if plugin['key'] == name: | ||
print(chalk.white('\t[+] Version of [', bold=True) + chalk.yellow(info[1], bold=True) + chalk.white('] : [', bold=True) + chalk.yellow(plugin['version'], bold=True) + chalk.white(']', bold=True)) | ||
return plugin['version'] | ||
except: | ||
return False | ||
|
||
def getGLPIVersion(self): | ||
try: | ||
Config.VERSION = Config.AJAX_TELEMETRY['glpi']['version'] | ||
return True | ||
except: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.