Files
freeCodeCamp/curriculum/challenges/chinese-traditional/09-information-security/python-for-penetration-testing/developing-a-banner-grabber.md
Nicholas Carrigan (he/him) 3da4be21bb chore: seed chinese traditional (#42005)
Seeds the chinese traditional files manually so we can deploy to
staging.
2021-05-05 22:43:49 +05:30

488 B

id, title, challengeType, videoId, dashedName
id title challengeType videoId dashedName
5ea9997bbec2e9bc47e94db3 Developing a Banner Grabber 11 CeGW761BIsA developing-a-banner-grabber

--question--

--text--

Fill in the blanks to complete the banner function below:

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)

--video-solution--

3