Embercode
✕
Safety and PrivacyQuick quiz

Phishing

6 questions. Covers Recognising phishing and scams.

Questions 1 to 5 of 6

  1. 1. Which part of the address https://secure-login.mybank.example.account-check.test/start is the registered domain, the name the owner controls?
  2. 2. What does this program print? ``python from urllib.parse import urlsplit print(urlsplit('https://mybank.example@verify-now.test/login').hostname) ``
  3. 3. What does this program print? ``python from urllib.parse import urlsplit def host_of(url): return urlsplit(url).hostname def safe_check(url, expected): host = host_of(url) if host is None: return False return host == expected or host.endswith('.' + expected) print(safe_check('https://evilmybank.example/login', 'mybank.example')) ``
  4. 4. A check is meant to accept only links to the bank, but it accepts a fake link. Here is the code. ``python def is_bank_link(url): return 'mybank.example' in url `` What is the bug?
  5. 5. A fake bank login page shows a padlock icon in the address bar. What does the padlock prove?

5 question(s) left on this page.