Files
freeCodeCamp/curriculum/challenges/chinese/09-information-security/python-for-penetration-testing/developing-a-banner-grabber.md
Randell Dawson 94f0cf0ef8 chore(learn): Remove remaining isHidden keys from frontmatter (English and Chinese challenges) (#39809)
* fix: remove isHidden key from tool template

* fix: removed isHidden key from English challenges

* fix: remove isHidden key from Chinese challenges
2020-10-08 14:18:47 +02:00

571 B

id, challengeType, videoId
id challengeType videoId
5ea9997bbec2e9bc47e94db3 11 CeGW761BIsA

Description

Tests

question:
  text: |
    Fill in the blanks to complete the `banner` function below:

    ```py
    def banner(ip, port):
        s = socket.socket()
        s.__A__((ip, __B__))
        print(s.recv(1024))
    ```

  answers:
    - |
      A: `connect`

      B: `port`
    - |
      A: `getsockname`

      B: `'1-1024'`
    - |
      A: `connect`

      B: `int(port)`
  solution: 3