Skip to content
This repository was archived by the owner on Dec 18, 2020. It is now read-only.

Update bannergrab.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyBannerGrab/bannergrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def banner_ip(self,address, port):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#s.settimeout(10)
try:
s.connect((address, port))
s.connect((address, int(port)))
if port==80:
print "\n[+] HTTP PROTOCOL Founded. IP : {}| PORT : {}".format(address, port)
#Send some data to remote server
Expand Down Expand Up @@ -295,4 +295,4 @@ def main():
print "[Exiting Program] \n [+]Thanks For Using! Have a nice day! Bitforestinfo[=]"
sys.exit(0)
except Exception as e:
print e
print e