Skip to content

Commit

Permalink
Criação do script
Browse files Browse the repository at this point in the history
  • Loading branch information
werdelesmarcio authored Aug 29, 2019
1 parent 4b9bfde commit 794da28
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pytcpscan.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-


# PyTCPScan Version 1.0 (beta)

import socket

def baner():
print " "
print "██████╗ ██╗ ██╗████████╗ ██████╗██████╗ ███████╗ ██████╗ █████╗ ███╗ ██╗"
print "██╔══██╗╚██╗ ██╔╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗████╗ ██║"
print "██████╔╝ ╚████╔╝ ██║ ██║ ██████╔╝███████╗██║ ███████║██╔██╗ ██║"
print "██╔═══╝ ╚██╔╝ ██║ ██║ ██╔═══╝ ╚════██║██║ ██╔══██║██║╚██╗██║"
print "██║ ██║ ██║ ╚██████╗██║ ███████║╚██████╗██║ ██║██║ ╚████║"
print "╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝"
print " "



baner()

target_host = raw_input("Enter target host: ")
target_port = int(input("Enter target port: "))

print "Start scan"

#criando um objeto socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

#conectando o cliente
client.connect((target_host, target_port))

#enviando alguns dados
client.send("GET / HTTP/1.1\r\nHost: google.com\r\n\r\n")

#recebendo alguns dados
response = client.recv(4096)

print response

0 comments on commit 794da28

Please sign in to comment.