Turn fromUse Python to write a simple instance of Port scanner sharing _python_ script House http://www.jb51.net/article/76630.htm-*-Coding:utf8-*-#!/usr/bin/python#python:2.7.8#platform:windows#AUTHRO:WUCL#Program : Port scan#history:2015.6.1 Importsocket, time, threadsocket.setdefaulttimeout (3) defSocket_port (ip,port
Program | port scan how to scan the local and remote port of computer system, monitor whether it is turned on or off in many applications, the following is a simple port scanner implemented in Java.
Source Code:
--------------------------------------------------------------------------------
/*
* Created on 2005-
Java write black Soft-port scanner article Tsunami days (ansty) Last we wrote a "file last modified Time editor" of the small black soft, now we use Java to write our usual use of the port scanner. This time to facilitate and avoid GUI programming trouble, we directly into the command line below the tool, with parame
Author: Angel
Objective
PHP is a powerful web development language. The development of high efficiency, simple syntax, for the dynamic site tailored to enhance the object-oriented (to C + +, and Java to a point edge), unfortunately single-threaded (this is to life weaknesses, it is said that PHP is written in c\c++. ), can also use C, C + +, Java development of the middle tier, call COM, server maintenance is less difficult, fewer failures.
Since it is tailor-made for the dynamic website, it is
Preface
PHP is a powerful web development language. The development of high efficiency, simple syntax, for dynamic Web sites tailored to strengthen the object-oriented (to C + +, and Java to build a point), but a single thread (this is the Achilles ' heel, it is said that PHP is written with c\c++.) ), can also use C, C + +, Java development of the middle tier, call COM, server maintenance difficult, less trouble.
Since it is tailor-made for dynamic Web sites, it is doomed not to develop such
Implement Windows Forms)
Implement console version)
It's easy to use another port scanner, but if you can do one, it's of course a pleasant thing. In fact, it is not difficult to implement your own port scanner. The principle is also relatively simple, as long as we have basicNetworkKnowledge, understand the
This paper uses the Fsockopen () function to write a simple-function port scanner. The port number of this instance is fixed, through an array of traversal, using the Fsockopen () function connection, if the connection is successful, the port is open, otherwise it is closed.
The core code is as follows:
foreach ($
Preface PHP is a powerful Web development language. High development efficiency, simple syntax, tailored for dynamic websites, and enhanced object-oriented (moving closer to C ++ and setting up edges with JAVA). sorry for the single thread (this is a weakness of life, PHP is written in C \ C ++.
Preface
PHP is a powerful Web development language. High development efficiency, simple syntax, tailored for dynamic websites, and enhanced object-oriented (moving closer to C and setting up edges with
Use the fsockopen () function to open the port scanner instance,
1. Preface
This article uses the fsockopen () function to compile a simple port scanner.
2. Key Technologies
The port number of this instance is fixed. By traversing the array, use the fsockopen () function to
Use the fsockopen () function to open the port scanner,Open Port Scanner using fsockopen () function
1. Preface
This article uses the fsockopen () function to compile a simple port scanner.
2. Key Technologies
The
. Thread (target=scanner,args= (Target_host,port))#Multi-threaded scan port the T.start () - the if __name__=='__main__': the Main () The result of the operation is:1C:\Python34\python.exe tcpscanner.py--host 192.168.2.1--port 1-10242[+]192.168.2. 1 of 25 Ports: Open3[+]192.168.2. 1 of 110 Ports: Open4[+]192.168.2. 1
3.3Port Scanner--zenmapkail linux penetration testzenmap (port scanner) is an open source network detection and security Audit tool. It is nmap zenmap zenmap Use of the tool this article is selected from the kail linux penetration test training manual the instance 3-4 the Use Zenmap Tool Scan 192.168.6.0/24 all hosts within the network. The procedure i
Program | port Scan | Multithreading Author: She
I was fortunate enough to buy a CD with Visual Studio. NET, and hastily install a set, a very good feeling, learn to write Port scanner one, dedicated to this edition of Friends:
Using System;;
Using System.Drawing;;
using System.Collections;;
Using System.ComponentModel;;
Using System.Windows.Forms;;
Add the fol
Long time did not write Java, learning, also did not learn network programming this piece, inadvertently saw a book, so a little review of Java, write a port scanner, play it, online this little public has is, is his boring write play.The source code is as follows:A total of two categories, relatively simple AustrianImportjavax.swing.*;Importjava.awt.Dimension;ImportJava.awt.Font;ImportJava.awt.Toolkit;Impo
Objective PHP is a powerful web development language. The development of high efficiency, simple syntax, for dynamic Web sites tailored to strengthen the object-oriented (to C closer to the point with Java), but a single thread (this is the Achilles ' heel, it is said that PHP is written in CC.) ), can also use C, C, Java development of the middle tier, call COM, server maintenance difficult, less trouble. Since it is tailor-made for dynamic Web sites, it is doomed not to develop such a x-scan
This article introduces how to use Python to implement a simple port scanner. based on some information on the Internet, I have added some new content.
# Coding = utf-8import socketimport timeimport sysimport structimport threadingfrom threading import Thread, activeCountresults = [] def portScanner (ip, port): server = (ip,
Open port Scanner with Fsockopen () function
1. Preface
This paper uses the Fsockopen () function to write a simple-function port scanner.
2. Key Technologies
The port number of this instance is fixed, through an array of traversal, using the Fsockopen () function connectio
Go language to write the TCP port scanner, my first go program.
Git@osc:http://git.oschina.net/youshusoft/goscanner
To use the command:
Scanner StartIP [EndIP] Port thread
Parameter description:
StartIP Start IPEndIP end IP, optional, no input means scan only StartIPPort scan ports, single
The instance is a C-implemented command-line-based port-scanning code and is a non-blocking way to test connectivity to the IP and port. For everyone to use and learning convenience, has been in the code as many places as possible to add a note, I believe that to help you understand the C-port scan has a great help.
The specific function code is as follows:
1. Preface
This paper uses the Fsockopen () function to write a simple-function port scanner.
2. Key Technologies
The port number of this instance is fixed, through an array of traversal, using the Fsockopen () function connection, if the connection is successful, the port is open, otherwise it is closed.
The core cod
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.