the thread pool All_threads.append (t) # Loop blocks the main thread, waiting for each sub-thread to finish executing, The program then exits for T in All_threads:t.join () # Create Access IP list Method def check_ip (NEW_IP, Port): # Create a TCP socket, link a new IP list scan_link = Socket.socket ( Socket.af_inet, Socket. SOCK_STREAM) # Set link timeout time
There are now port-proof tools, such as Psad, Portsentry, but feel the configuration is a bit cumbersome, and the server does not want to install an additional software. So I wrote a shell script to implement this function. The basic idea is: the use of iptables recent module records in 60 Seconds to scan over 10 ports of IP, and combined with the Inotify-tools t
"""Project name: Port probing scanWhiteVersion: 1.0Note: For example MySQL 3306 here, port to 80 can also"""#引入线程和socket的模块importthreadingimportsocketrouters=[] #用于保存探测结果lock =threading. Lock () #构造一把锁def main (): NBSP;NBSP;NBSP;NBSP;LOCAL_IPNBSP;=NBSP;SOCKET.GETHOSTBYNAME_EX ( Socket.gethostname ()) all_threads=[]foripin Local_ip[2]:fori inrange (1,255): array=ip.split (".") #把
Label: style blog HTTP color Io OS AR
Using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. LINQ; using system. net; using system. net. sockets; using system. text; using system. threading. tasks; using system. windows. forms; namespace scan computer port {public partial class form1: FORM {public form1 () {initializecomponent
= taia
N-pt-d2-vip) (PORT = 1521 ))))
Remote_listener string pdpt-cluster-scan: 1521
The Metalink search, found this is 11.2.0.1 small bug: "ORA-12545 or ORA-12537 while connecting to RAC through SCAN name [ID 970619.1]", 11.2.0.2 and later versions are fixed
Client is able to resolve all Fully Qualified Domain Name (FQDN)
Resolving Oracle clients can connect to 11g RAC VIP, but cannot connect scan IP issues
Some time ago configured a set of HP ux11.31 oracle11g R2 RAC, after the configuration is completed, the client can connect VIP and Scan IP connection database, remote clients can only connect VIP access to the database, through the
Reference: http://www.luocs.com/archives/281.html
Http://www.oracle.com/technetwork/products/clustering/overview/scan-129069.pdf
These days to do 11g RAC experiment, only to discover the concept of Oracle 11g scan IP, at the time of installation, directly in the host file added a scan corresponding resolution, after th
MFC scan COM port Program
MFC scan COM port program source code
Features:
The core function is scan. Not only can the actual port of COM such as Bluetooth and printer be scanned, but also the
Do not need any tools, DOS command scan all the ports of a network segment!
Open a DOS window under Win2000, and then execute
FOR/L%a in (1,1,254) do start/min/low telnet 192.168.0.%a 3389
So all the open 3389 ports in this 192.168.0.x segment will be exposed.
After this command is executed
will open 254 small windows in the taskbar
Then the Telnet link failed window automatically exits after approximately 5 seconds
The rest of the window is the relat
Check.bat content (script content may be due to typesetting problems can not be directly copied paste run, can be modified):
Copy Code code as follows:
@echo off
rem checklist.csv field: IP, Name, description, TCP application port, UDP application port
In rem checklist.csv, use, @, replace, and do not use () for content description
Set E_file=erro
Scan port data storage with thread-safe queue queues
Scan ports with multithreading
Implementing program organization with the thread class
#Coding:utf-8ImportSYSImportSocketImportSYSImportRe fromThreadingImportThread fromQueueImportQueueclassScanport (Thread):def __init__(self, target_ip, Target_port, Q): Super (Scanport, self).__init__() self.targe
# Nc-Z localhost 1-10000 // scan ports 1 to 1000 of the Local Machine to obtain the opened portConnection to localhost 22 port [TCP/ssh] succeeded!Connection to localhost 80 port [TCP/HTTP] succeeded!Connection to localhost 111 port [TCP/SunRPC] succeeded!Connection to localhost 199
Tag:python Scan Tool [[emailprotected]~]#catportscan.py#!/usr/bin/envpython#-*- coding:utf-8-*-importsocket# instantiation of an object S=socket.socket () #循环遍历你自定义的端口范围 Forportinrange (1,65535): #使用python的异常处理 to determine the behavior after a program error try: print "[+]attemptingtoconnectto127.0.0.1:" + STR (port) #客户端对服务器端进行连接, the format of the general address is a tuple (hostname,
next in tunnel endpoint
12th step: Select all network Connections in the network type and click Next
13th step: In the IP filter list, click "Add (A)"
14th Step: Click "Add (A)" In the IP Filter list that pops up
15th step: In the Welcome to use the IP Filter wizard, click Next directly
Step 16th: Enter a description and select the mirror in the
Not very familiar with multi-threading, the first simple application.1 /*2 2015.5 HT3 multi-line threaded port scanning4 5 Netstat-an6 7 */8 9#include Ten#include One#include A #pragmaComment (lib, "Ws2_32.lib") - using namespacestd; - the //port parameters passed by thread -typedefstruct - { -UnsignedintMin_port; +UnsignedintMax_port; - }port; +
Today, I saw a group of friends sent a demand, as follows:"How to batch detect the port of a number of hosts, whether there is, the port is external", it is not difficult to write a small script with py, the problem of the place, but also hope you point out, thank you!#!/usr/bin/envpythonimportsocketfile= "C:\Users\Administrator\py_demo\ip.txt" port =80a=open (fi
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.