Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
certbot /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-03-20 10:36
display
[ DIR ]
drwxrwxrwx
2022-03-20 10:36
plugins
[ DIR ]
drwxrwxrwx
2022-03-20 10:36
tests
[ DIR ]
drwxrwxrwx
2022-03-20 10:36
__init__.py
114
B
-rw-r--r--
2018-11-07 22:14
account.py
13.99
KB
-rw-r--r--
2018-11-07 22:14
achallenges.py
1.59
KB
-rw-r--r--
2018-11-07 22:14
auth_handler.py
20.56
KB
-rw-r--r--
2018-11-07 22:14
cert_manager.py
15.1
KB
-rw-r--r--
2018-11-07 22:14
cli.py
70.18
KB
-rw-r--r--
2018-11-07 22:14
client.py
27.86
KB
-rw-r--r--
2018-11-07 22:14
compat.py
6.02
KB
-rw-r--r--
2018-11-07 22:14
configuration.py
5.55
KB
-rw-r--r--
2018-11-07 22:14
constants.py
6.39
KB
-rw-r--r--
2020-09-26 20:25
crypto_util.py
15.29
KB
-rw-r--r--
2018-11-07 22:14
eff.py
3.07
KB
-rw-r--r--
2018-11-07 22:14
error_handler.py
5.81
KB
-rw-r--r--
2018-11-07 22:14
errors.py
2.59
KB
-rw-r--r--
2018-11-07 22:14
hooks.py
8.44
KB
-rw-r--r--
2018-11-07 22:14
interfaces.py
23.3
KB
-rw-r--r--
2018-11-07 22:14
lock.py
3.56
KB
-rw-r--r--
2018-11-07 22:14
log.py
12.39
KB
-rw-r--r--
2018-11-07 22:14
main.py
47.64
KB
-rw-r--r--
2018-11-07 22:14
notify.py
1.04
KB
-rw-r--r--
2018-11-07 22:14
ocsp.py
4.09
KB
-rw-r--r--
2018-11-07 22:14
renewal.py
19.85
KB
-rw-r--r--
2020-09-26 20:25
reporter.py
3.46
KB
-rw-r--r--
2018-11-07 22:14
reverter.py
23.32
KB
-rw-r--r--
2018-11-07 22:14
ssl-dhparams.pem
424
B
-rw-r--r--
2018-11-07 22:14
storage.py
45.75
KB
-rw-r--r--
2018-11-07 22:14
updater.py
3.86
KB
-rw-r--r--
2018-11-07 22:14
util.py
20.35
KB
-rw-r--r--
2018-11-07 22:14
Save
Rename
"""Subscribes users to the EFF newsletter.""" import logging import requests import zope.component from certbot import constants from certbot import interfaces logger = logging.getLogger(__name__) def handle_subscription(config): """High level function to take care of EFF newsletter subscriptions. The user may be asked if they want to sign up for the newsletter if they have not already specified. :param .IConfig config: Client configuration. """ if config.email is None: if config.eff_email: _report_failure("you didn't provide an e-mail address") return if config.eff_email is None: config.eff_email = _want_subscription() if config.eff_email: subscribe(config.email) def _want_subscription(): """Does the user want to be subscribed to the EFF newsletter? :returns: True if we should subscribe the user, otherwise, False :rtype: bool """ prompt = ( 'Would you be willing to share your email address with the ' "Electronic Frontier Foundation, a founding partner of the Let's " 'Encrypt project and the non-profit organization that develops ' "Certbot? We'd like to send you email about our work encrypting " "the web, EFF news, campaigns, and ways to support digital freedom. ") display = zope.component.getUtility(interfaces.IDisplay) return display.yesno(prompt, default=False) def subscribe(email): """Subscribe the user to the EFF mailing list. :param str email: the e-mail address to subscribe """ url = constants.EFF_SUBSCRIBE_URI data = {'data_type': 'json', 'email': email, 'form_id': 'eff_supporters_library_subscribe_form'} logger.debug('Sending POST request to %s:\n%s', url, data) _check_response(requests.post(url, data=data)) def _check_response(response): """Check for errors in the server's response. If an error occurred, it will be reported to the user. :param requests.Response response: the server's response to the subscription request """ logger.debug('Received response:\n%s', response.content) try: response.raise_for_status() if response.json()['status'] == False: _report_failure('your e-mail address appears to be invalid') except requests.exceptions.HTTPError: _report_failure() except (ValueError, KeyError): _report_failure('there was a problem with the server response') def _report_failure(reason=None): """Notify the user of failing to sign them up for the newsletter. :param reason: a phrase describing what the problem was beginning with a lowercase letter and no closing punctuation :type reason: `str` or `None` """ msg = ['We were unable to subscribe you the EFF mailing list'] if reason is not None: msg.append(' because ') msg.append(reason) msg.append('. You can try again later by visiting https://act.eff.org.') reporter = zope.component.getUtility(interfaces.IReporter) reporter.add_message(''.join(msg), reporter.LOW_PRIORITY)