forked from wifiphisher/wifiphisher
-
Notifications
You must be signed in to change notification settings - Fork 0
Phishing Module
Brian edited this page Jan 4, 2016
·
1 revision
- Errors
- Class UrlNotAvailable
- Class TemplateNotAvailable
- Class ArgumentIsNotAString
- Functions
- Funcion grab_online
- Funcion exists
- Funcion get_path
- Funcion url_check
- Funcion check_template
- Funcion clean_template
This error can be caused by two reasons:
- No access to the internet
- Invalid URL
Could not reach the given URL!
This error is caused in case the provided template is not in the TEMPLATE_DATABASE.
The given template is not available!
The provided argument is no a string.
The given argument is not a string!
Makes a new folder with the name provided in template and fetches all the files for the given template from the internet.
Name | Type | Description |
---|---|---|
template | string | The name of requsted template |
Value | Type | Description |
---|---|---|
None | None | None will be returned |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |
[TemplateNotAvailble](# Class TemplateNotAvailable ) |
If the given template is not in the TEMPLATE_DATABASE |
Checks to see if the template directory in the given path exists.
Name | Type | Description |
---|---|---|
dir_path | string | A path of a directory |
Value | Type | Description |
---|---|---|
True | boolean | If the given directory exists |
False | boolean | If the given directory doesn't exist |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |
[TemplateNotAvailble](# Class TemplateNotAvailable ) |
If the given template is not in the TEMPLATE_DATABASE |
Returns the directory of the the given template.
Name | Type | Description |
---|---|---|
template | string | The name of the choosen template |
Value | Type | Description |
---|---|---|
string | The full path of the choosen tempalte |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |
[TemplateNotAvailble](# Class TemplateNotAvailable ) |
If the given template is not in the TEMPLATE_DATABASE |
Checks the existence of the URL.
Name | Type | Description |
---|---|---|
url | string | The URL to be checked |
Value | Type | Description |
---|---|---|
True | boolean | If URL exists |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |
[UrlNotAvailable](# Class UrlNotAvailable ) |
If URL is not available |
Checks if the given template has all the files locally.
Name | Type | Description |
---|---|---|
template | string | The template name to be checked |
Value | Type | Description |
---|---|---|
True | boolean | If all the files are locally present |
False | boolean | If not all the files are locally present |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |
[TemplateNotAvailble](# Class TemplateNotAvailable ) |
If the given template is not in the TEMPLATE_DATABASE |
Cleans the directory and all the files for the given template
Name | Type | Description |
---|---|---|
template | string | The template name to be cleaned |
Value | Type | Description |
---|---|---|
True | boolean | If the operation was successful |
False | boolean | If the operation was not successful |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |
[TemplateNotAvailble](# Class TemplateNotAvailable ) |
If the given template is not in the TEMPLATE_DATABASE |
Checks to see if the given information is a string. The purpose of this function is to type check the input and it is used in the module extensivly.
Name | Type | Description |
---|---|---|
info | Any Type | The given information to be checked |
Value | Type | Description |
---|---|---|
True | boolean | If info is a string |
Name | Reason |
---|---|
[ArgumentIsNotAString](# Class ArgumentIsNotAString ) |
If the given info is not a string |