{"id":3888,"date":"2019-01-01T21:04:58","date_gmt":"2019-01-01T15:34:58","guid":{"rendered":"http:\/\/codetheory.in\/?p=3888"},"modified":"2019-01-01T21:04:58","modified_gmt":"2019-01-01T15:34:58","slug":"how-to-write-a-python-script-to-grab-banners-for-network-geeks","status":"publish","type":"post","link":"https:\/\/codetheory.in\/how-to-write-a-python-script-to-grab-banners-for-network-geeks\/","title":{"rendered":"How to write a Python script to grab banners for network geeks"},"content":{"rendered":"

Lately i haven\u2019t posted much because i have been busy working on some programming projects, but today i will share a python script with you guys. This script is written in pure python and it can be used to grab banners from different services running on your subnet. Some of these services are SSH, Telnet, FTP, SMTP etc.<\/p>\n

This script is useful to system administrators to check their services and penetration testers to check the service for different vulnerabilities. We use the socket library, <\/p>\n

which allows us to create a socket and then we send garbage data to a specific service. After sending the garbage data, we wait for a response from the service we are testing and print the results of this response on the screen.<\/p>\n

Features Of The Script<\/h2>\n