Package io;Import java.util.*;public class Usescanner {public static void Main (string[] args) {Scanner in=new Scanner (system.in);System.out.println (" Please enter your name:");String Name=in.nextline ();System.out.println (" Please enter your age :");int Age=in.nextint ();System.out.println (" Please enter your height (unit: m):");Double height=in.nextdouble ();System.out.println (" Name:" +name+ " Age:"
3.3-Port scanner--zenmapkail linux penetration test?The Zenmap (port scanner) is a tool for open source network probing and security audits. It is the graphical interface front-end of nmap security Scan Tool, which can support cross-platform. Use the Zenmap tool to quickly scan large networks or individual hosts for information. For example, a scan host provides those services, the operating system used, an
Copy Code code as follows:
public static void Main (string[] args) {
System.out.println ("Please enter a value, end by carriage return:");
Scanner sc = new Scanner (system.in);
Sc.usedelimiter ("\ n");
while (Sc.hasnext ()) {
String s = sc.next ();
System.out.println ("Get Value:" +s);
}
}
1. Encapsulate system.in input stream with scanner class
System.out.println ("Please enter first name:");
Print prompt in console: "Please enter first name"
Scanner input=new Scanner (system.in);
Scan the characters entered from the console, scanner is used to scan the input text of the class name, input is only the object name, you can replace any of the non-Java preserved, such as a, B, c all line, new is to obj
When the scanned image is displayed on the screen or printed out, there is always a missing dot-line phenomenon.
1. First of all the sensor inspection, and then the paper guide mechanism to see if there is a problem, if you want to find professionals to carry out maintenance.
2. The optical lens of the scanner to dust, with a professional vacuum cleaner treatment effect better.
3. Check the scanner
1, open a machine scanner cover, to scan the file or picture face downward pressure below;
2, in the computer double click "My Computer", in My Computer point scanner icon (one machine installed good driver after this icon);
3, in the pop-up dialog box select "Scanner and Camera Wizard", and then click "OK";
4, click "Next", select the
How to add a Win7 scanner
1, click the Start menu, select the Control Panel, select devices and Printers
2. Click Add Device
3, select the printer to add, if the addition fails, will automatically eject the next figure, select Control Panel-management tools
4, click on the service, pull down and select Pnp-x IP Bus Enumerator, this is disabled, double-click it
5, according to the picture, click Sele
How to add a Win7 scanner
1, click the Start menu, select the Control Panel, select devices and Printers
2. Click Add Device
3, select the printer to add, if the addition fails, will automatically eject the next figure, select Control Panel-management tools
4, click on the service, pull down and select Pnp-x IP Bus Enumerator, this is disabled, double-click it
5, according to the picture, click S
Java.util.Scanner is a new feature of JAVA5, and the main function is to simplify text scanning.
Small example:
Resume a TXT file: test.txt
Code:
Import Java.io.File;
Import java.io.FileNotFoundException;
Import Java.util.Scanner;
public class Readtxtfile {public
static void Main (string[] args) {
file File = new File ("Src/test.txt");
String encoding = "Utf-8";
if (File.isfile () file.exists ()) {
try {
Scanner
function - { the Char* topdir=".";//the Topdir that defines the char * type points to the current directory. + if(argc>=2)//if the input parameter is not empty Atopdir=argv[1];//assign the path you want to print to Topdir the //Argv[0] Represents the program itself, if the input parameter is empty, it is the default print directory is Topdir= "." +printf"Directory scan of%s\n", Topdir);//Print a word -Printdir (Topdir,0);//Call function to implement loop printing $prin
For a friend who often surf the internet, the Trojan horse will not be unfamiliar, open a website, inexplicably run a trojan, although the "Internet Options" in the "security" settings, but the following code will not pop any information directly run the program, do not believe that follow me!
(Hint: just understand the technology and methods, do not do damage, Yexj00.exe is a windows2000 vulnerability scanner and check leakage for use, not viruses or
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-3-22
*
* TODO to change the template of this generated file go
* Window-preferences-java-code Style-code Templates
*/
/**
* @author Wh
. 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 of 119 ports: Open5[+]192.168.2. 1 of 143 ports: Open6[+]192.168.2. 1 of 465 ports: Open7[+]192.168.2. 1 of 563 ports: Open8[+]192.168
This article will share with you a piece of code, phpweb Trojan scanner. If you need a friend to directly copy the code, you can use it. the code is super simple and has annotations. if you need a friend, you can refer to it without any nonsense and paste the code directly.
The code is as follows:
{$ Code}"; Exit;} else {exit ;}} else {record_md5 (M_PATH); if (file_exists (M_LOG) {$ log = unserialize (file_get_contents (M_LOG ));} else {$ log = arra
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;Importjava.awt.event.*; Public classPortscanexten
Web security scanner Netsparker v3.5 cracked versionNetsparker is a comprehensive Web application security vulnerability Scanning Tool, it is divided into professional and free version, the free version of the function is also more powerful. One feature of Netsparker compared to other comprehensive Web application security scanning tools is its ability to better detect security vulnerabilities in SQL injection and Cross-site scripting types.New versio
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, port) sockfd = socket. socket (socket. AF_INET, socket. SOCK_STREAM) sockfd. settimeout (0.1) # set the socket timeout in block
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 connection, if the connection is successful, the port is open, otherwise it is closed.
The core code is as follows:
foreach ($port as $key = +
Due to improper permission control of the Tang Dynasty scanner, you can view some historical vulnerability details.
Due to improper permission control of the Tang Dynasty scanner, you can view some historical vulnerability details.
Search Baidu directly.Site: tangscan.comExample address Found
Http://tangscan.com/auth/p8SY0%252B8RdM3f8BvcwAIbsoEnFRi75%252BY%252Feq6tfDCeIoOpPKu38prYhttp://tangscan.com/auth
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.