/wKiom1VRdY2y Zo56aacudvi8n2q231.jpg "alt=" Wkiom1vrdy2yzo56aacudvi8n2q231.jpg "/>
2. Random class The JDK provides a class that obtains random numbers, which are used to obtain random decimals, integers, Boolean types, and so on. Import java.util.Random required before use;Use:Create object: Random random = new random (); / /Get a random integer in the range: int num = Ran.nextint (n);//value [0, N)Gets the random Boolean value: Boolean flag = Ran.nextboolean ();Get random decimals: doub
PHPWeb Trojan scanner-security testing tool, a tool that scans php Trojans in a php environment. the following features can be scanned. Lazy design: apply the phpspy style directly. Note: the scanned file is not necessarily a backdoor. please judge, review, and compare the original file ghost. php.
The code is as follows:
/************* PHP Web Trojan scanner
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. Encapsul
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 {
C # source code of inSSIDer's Powerful wifi wireless hotspot signal scanner,
A complete source code of the wireless signal scanning tool, including drawing from hotspot scanning to intensity and signal transformation curves. The source code is based on Managed Wifi to implement basic functions. Managed Wifi is also a
hotspots with weak signals.It also supports filtering and Wireless WiFi positioning, but cannot be tested because there is no GPS module.The entire source code module is complete, including custom controls, WiFi classes, and log records.The source code project has a high technical level. It is not only about wireless hotspot scanning and information acquisition, but also about drawing dynamic signal curves
There is less direct interaction with the keyboard in normal work, but in some test methods it is necessary to have such a function.One, you can use the System.in.read () method to read a single character, but because of the size of the character limit, there are many inconvenient in the actual use of the place.Example:char a = (char) System.in.read (); System.out.println (a);Be aware that the ASCII code that corresponds to the character is returned.
No nonsense, directly affixed to the code.
The code is as follows:
The above code is the PHP Web Trojan scanner code sharing, this article is accompanied by comments, there are not clear welcome to my message, I believe that the implementation of more than one of
Because the front-end time server was released, a webshell scanner was written to kill phpwebshell. no matter whether the Trojan or pony included a sentence, the code is now released to webshell.
The code is as follows:
/*
+ -------------------------------------------------------------------------- +
| Codz by indexphp Version: 0.01 |
| (C) 2009 indexphp |
|
Because the front-end time server has been released, a webshell scanner has been written to kill phpwebshell. no matter whether the trojan or pony includes a sentence, the Code is now released.
The Code is as follows:
/*+ -------------------------------------------------------------------------- +| Codz by indexphp Version: 0.01 || (C) 2009 indexphp || Http:
,float is still needed to convert - */ the Public Static voidreadtest () { *System.out.println ("Readtest, please Enter Data:"); $InputStreamReader is =NewInputStreamReader (system.in);//new construct InputStreamReader objectPanax NotoginsengBufferedReader br =NewBufferedReader (IS);//take the tectonic approach to the BufferedReader. - Try{//there is a Ioexcepiton in this method that needs to be captured theString name =br.readline (); +System.out.println ("Readtest Output:" +name);
Python implements simple port scanner code instances and python Port Scanners
I have added some new content on the basis of some information on the Internet. It is a Python socket programming expert.
# Coding = utf-8import socketimport timeimport sysimport structimport threadingfrom threading import Thread, activeCountresults = [] def portScanner (ip, port): server = (ip, port) sockfd = socket. socket (sock
Let's look at the exact words in the Java API documentation:当扫描器抛出 InputMismatchException 时,该扫描器不会传递导致该异常的标记,因此可以通过其他某种方法来获取或跳它。 这是java API文档中的原话。In fact it means: "'If you enter the a character when the Nextint method executes, and you do not successfully parse an integer at this time, your input will not be ignored. Because it might be able to be parsed by other formats.Then your progra
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.
ImportJava.util.Scanner; Public classExample2_3 { Public Static voidMain (String args[]) {System.out.println ("Please enter a number of numbers, each enter a number of return confirmation"); System.out.println ("Last input number 0 end input operation"); Scanner Reader=NewScanner (system.in); DoubleSum=0; Doublex =reader.nextdouble (); while(x!=0) {sum=sum+x; X=reader.nextdouble (); } System.out.println ("Sum=" +sum); }}
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.