Skip to content

Instantly share code, notes, and snippets.

@mandreko
Forked from anonymous/banner_grabber.py
Last active August 29, 2015 14:01
Show Gist options
  • Save mandreko/5b37cb719b8f6584e648 to your computer and use it in GitHub Desktop.
Save mandreko/5b37cb719b8f6584e648 to your computer and use it in GitHub Desktop.
class BannerGrabber:
input_file = ""
def __init__(self, input):
self.input_file = input
def run():
with open(self.input_file) as f:
for line in f:
h, p = line.split
grab_banner(h, p)
def grab_banner(host, port)
# code to get the banner
grabber = BannerGrabber("input.txt")
grabber.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment