-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b9bfde
commit 794da28
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |