Files
freeCodeCamp/curriculum/challenges/english/09-information-security/python-for-penetration-testing/developing-a-banner-grabber.english.md
2020-05-28 19:10:36 +05:30

583 B

id, title, challengeType, isHidden, videoId
id title challengeType isHidden videoId
5ea9997bbec2e9bc47e94db3 Developing a Banner Grabber 11 true CeGW761BIsA

Description

Tests

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

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

  answers:
    - |
      `connect`, `port`
    - |
      `getsockname`, `'1-1024'`
    - |
      `connect`, `int(port)`
  solution: 3