Skip to content

Commit

Permalink
Update AIG.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HSIS007 committed Jan 11, 2016
1 parent ddbcdfd commit 2ae068a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AIG.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
print " # # # # "
print " # # ######### # V1.0 "
print " Created by HSIS007 AKA(SZZER)"
print " Active Information Gathering tool for pentester, so far this tools only connects to the host and grabs the banners"
print " Active Information Gathering tool for pentester, so far this script connects to the host and informs the pentester about the banner on the selected port."
import optparse
import socket
from socket import*
def connScan(Host,Port): #Takes two arguments host and port
def connection(Host,Port): #Takes two arguments host and port
try:
fetchSkt = socket(AF_INET,SOCK_STREAM) #this creates object with IPv4 and tcp connection

Expand All @@ -38,9 +38,9 @@ def portScan(Host,Ports): #This function takes the hostname and targetport as
setdefaulttimeout(1)
for Port in Ports:
print 'Scanning Port ' + Port
connScan(Host,int(Port))
connection(Host,int(Port))
def main():
parser = optparse.OptionParser('usage Fetcher.py -H <IP Address host> -p <target port>') #Creates an instance of an option parser
parser = optparse.OptionParser('usage AIG.py -H <IP Address host> -p <target port>') #Creates an instance of an option parser
parser.add_option('-H',dest='Host',type='string',help='specify target host') #Specifies the individual command line options for script
parser.add_option('-p',dest='Port',type='int',help='enter ports seprated by , to scan for')
(options,args) = parser.parse_args()
Expand Down

0 comments on commit 2ae068a

Please sign in to comment.