In running-cmd-netstat-an, The opened port is displayed !!
Recently, the virus has been a big headache, but it has also gained a lot. I have learned a little bit about it and I would like to share it with you.
Currently, the most common Trojan Horse is based on the TCP/UDP protocol for communication between the client and the server. Since the two protocols are used, it is inevitable to open the listening port
Linux Server:centos 6.2
Desktop system Environment: Windows 7
Connection tool: Putty
1. Modify SSH configuration file
Vi/etc/ssh/sshd_config Modify port, disable root login, add limit user
The code is as follows
Copy Code
Port 2345Permitrootlogin NoAllowusers Gino2. Modify Iptables
Vi/etc/sysconfig/iptables Copy 22 Port
Prerequisite: First you must know that the port is not independent, it is dependent on the process. When a process is turned on, its corresponding port is turned on and the process is closed, and the port is closed. The next time a process opens again, the corresponding port is opened again. Instead of simply understan
In this guide, we will show you how to use the simple Netcat (NC) command to determine if the port on the remote host is accessible/open.
Netcat (or NC) is a powerful and Easy-to-use program that can be used in Linux for anything related to TCP, UDP, or UNIX domain sockets.
# yum Install NC [in Centos/rhel]
# DNF Install NC [in Fedora 22+]
$ sudo apt-get install [in In Debian/ubuntu]
We can use it to open a TCP
Windows Driver-Virtual Machine virtual serial port dual-machine debugging, serial port dual-Machine
======================================Copyright Notice======================================
Copyright statement: original articles are not reprinted
Please contact me through "contact email (wlsandwho@foxmail.com)" in the announcement on the right
Do not use academic references.
Do not use for commercial pub
pl2303 output by RS232. Use cp2101/cp2102/ft232bm to make the TTL output better. \ RCurrently, the information I got is: ftbench is very good. Cp210x is generally used and data is easy to lose. \ R
USB to serial port, dual chip and single chip: \ r(1) semitech USB serial cable. It was found that foreigners were swearing at semitech's USB serial cable. Poor compatibility. \ R(2) the better is a kind of prolific chip Z-Tek, the price seems to be 30-40.
Android Serial Port Data Reading service, android serial port
2016-09-1813: 10: 03
Inherit from the Service and define the abstract method onDataReceived. The subclass obtains the received data callback by implementing the abstract method.
1 package com.zrsoft.liftad.serialport; 2 3 import java.io.File; 4 import java.io.IOException; 5 import java.io.InputStream; 6 import java.io.OutputStream; 7 8 import
There may be only one IP outlet, but there are multiple projects, then you need to set up a virtual host based on the port number.
Step 1:
Check whether the httpd-vhosts.conf is enabled
Apache/CONF/httpd. conf file
# Virtual hostsInclude conf/extra/httpd-vhosts.conf
If it is not enabled, it must be in httpd. CONF file; if enabled, you can set in Apache/CONF/extra/httpd-vhosts.conf file, of course, you can also httpd. the configuration in the conf file
MX6 serial port command line operation of CPU clock speed, mx6 serial port
When using imx6 for project development, you may need to check the clock speed of imx6 or set the clock speed of imx6. The following describes how to operate the imx6 frequency on the serial port command line in the system:
CPU directory:
Root @ sabresd_6dq:/sys/devices/system/cpu/cpu0/
Uboot and kernel modify and print the serial port and ubootkernel serial port
Here I use s5pv210, which originally outputs COM2. Now I want to change it to COM0 output, to view the uboot command line information and the kernel startup information, we should make the following changes:
1. Changes to uboot
We modify the corresponding configuration file. Here, because it is s5pv210 Development Board, my con
An intranet server was encountered and only 80 ports (ASPX Web pages) were mapped.Originally wanted to use regeorg to do a Web socks agent, the results of the speed is odd slow.Now found that the single port forwarding is good, 3389 turn out the screen is still able to accept.So I uploaded lcx to do the forwarding.Which public network machine to accept it? Choose Linux instead of win, because win will probably need to login to the 3389 GUI just fine,
Python serial port operation method, python serial port operation
This article describes how to operate the serial port in Python. Share it with you for your reference. The details are as follows:
First, make sure that the serial module is installed. If not, install python-pyserial.
A Python-implemented serial Echo
Import serial import sys try: ser = serial.
Vi/etc/sysconfig/iptables-A input-m state–state new-m tcp-p tcp–dport 80-j ACCEPT (allow 80 ports through the firewall)-A input-m state–state new-m tcp-p tcp–dport 3306-j ACCEPT (Allow 3306 ports through the firewall)Special tips:Many netizens add these two rules to the last line of the firewall configuration, causing the firewall to fail to start, the correct one should be added to the default port 22 below the ruleAfter adding the firewall rules
Tag: Address Web server port Create DDE Environment Multi-site pre profilepache是一款Web服务器软件,有多种产品,可以支持SSL技术,支持多个虚拟主机。它快速、可靠并且可通过简单的API扩充,将Perl/Python等解释器编译到服务器中。实验环境一台linux6.5,ip为192.168.10.20.,DNS服务器ip地址为192.168.10.20;一、创建虚拟目录配置1、进入主配置文件设置2、写入网页内容3、去访问网页4、创建虚拟目录5、使用http://192.168.10.20/test/进行访问二、搭建虚拟主机同端口同Ip不同域名1、创建文件写入内容2、创建网站目录写入内容3、安装DNS并设置主配置文件4、区域数据文件设置5、进入区域数据配置相关目录6、重启服务7、指出DNS服务器地址8、登陆网页进行验证三、搭建同ip同域名不同端口1、复制模板,修改端口号2、修改Apache主配置文件3、重启服务4、验证A
Open System port number
A./sbin/iptables-i input-p TCP--dport 8181-j ACCEPT
B./etc/rc.d/init.d/iptables Save
C. The status of the port can be viewed through the following command:
/etc/init.d/iptables status
[Root@localhost qpid]#/etc/init.d/iptables StatusTable:filterChain INPUT (Policy ACCEPT)Num Target prot opt source destination1 ACCEPT TCP--0.0.0.0/0 0.0.0.0/0 TCP dpt:56722 ACCEPT TCP--0.0.0.0/0 0
To modify the default port for SSH:1, the file that controls the SSH access port is /etc/ssh/sshd_config .Therefore, edit the SSH configuration file sshd_config:#vi/etc/ssh/sshd_config2. Find the Port=22 field and remove the comment that precedes it:#Port //Remove the Note ##AddressFamily any#ListenAddress 0.0.0.0#Lis
1, modify the Remote Desktop Connection port
The default port for Remote Desktop Terminal Services is "3389", and you need to make changes to the default port to prevent others from making malicious connections. On this, open Registry Editor, expand Hkey_local_machine\system\
currentcontrolset\control\terminal server\wds\rdpwd\tds\tcp "Branch, the" PortNumber "
1. You can see which ports are open by "~$ NETSTAT-ANP".
(Note: The parameter '-n ' will turn the application to the port display, that is, the number format of the address, such as: nfs->2049, ftp->21, so you can open two terminals, each corresponding to the program corresponding to the port number)
2. The program that applies the port can then be viewed through
1. you can use ~ $ Netstat-anp to check which ports are opened. (Note: adding parameter-n will convert the application to Port display, that is, address in digital format, such as: nfs-2049, ftp-21, so you can enable two terminals, 1 corresponds to the port number corresponding to the program) 2. then you can use ~ $ Lsof-I: $ PORT "~ $ Netstat-anp "to check whic
Use of serial port debugging Genie and serial port program debugging skills
Time: 19:04:49 | [
51 single-chip microcomputer has a full-duplex serial communication port. Therefore, the single-chip microcomputer and the computer can communicate with each other conveniently. For serial communication, certain c
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.