Idea: Upload a "backdoor", through the control back door to get the shell, such as a word Trojan. Like what://Submit via request, execute ShellPHP A word trojan, directly on the chopperThis constructs the following statement:1 ' and 1=2 Union select
1.1 IntroductionThe shell is a C language scripting language, it is the user and Linux bridge, the user input command to the shell processing, the shell will be the corresponding operation to the kernel (Kernel), the kernel to the results of
1. A SHELL script that does not log logs is bullying!We often encounter a problem in our work, what exactly does a Shell script do, when it starts executing, and when it ends. Especially database backup, we would like to know our MySQL database
The following methods can not install the BC calculatorCreate sh fileCheck------------------------------------------------------------------v#!/bin/Bashread-P"Please enter the first number"Aread-P"Please enter a second number"Becho"and the"' Expr $a
1. Shell Script Parameters
The $n represents the nth parameter passed to the script, for example, $ $ = 1th argument, and $ = 2nd parameter ....
$# number of command-line arguments
The name of the current script
$* returns the
Used in shell programming to determine parameters within an if statement–b return True when file exists and is a block file-C Returns True when file exists and is a character-D returns True when pathname exists and is a directory-E Returns True when
The shell is both a command interpreter and a high-level programming language. The shell is an interpreted language.
The creation and operation of bash scripts:
Comment Lines start with ##! The following parameters tell the system to
definition of shell and function1. Linux Shell functionsform a set of command sets or statements into an available block, These statement blocks are called functions. 2. composition of Shell functionsFunctions Name: Function names, note that the
Remotely copy a file to the specified directory on the specified IP machine:./scp_file.sh/tmp/xx.sh/tmp/test/echo "Copy the file to the $ $ directory!" "For IP in 192.168.60.243 192.168.60.244 192.168.60.245 192.168.60.246 192.168.60.248do scp-r" [
Write a script:1. Prompt user to enter a user name2, display a menu to the user. Shaped likeU|u Show UIDG|g Show GIDS|s Show SHELLQ|q quit3. Remind the user to select an option and display the Selection of contentIf the user gives an incorrect
To interact with Linux, the script gets keyboard input results that are essential, and read can read the keyboard input characters. 1. Restricting input characters For example, after you enter 5 characters, you end up with 5 characters entered into
Recently, because of the development of new features, the programmer needs to quickly add fields to all the tables in a library, so it is simple and quick to use shell scripts to add fields to the bulk modification table.#!/bin/bashexport mysql_bin=/
Programming languages are generally divided into static languages and dynamic languages.Static language: Compiled language strongly typed (variable) pre-compiledExample: C C + + Java C #Dynamic language: Interpreted language weak type (default
A type command is provided in the Linux command to see whether the system commands are built-in or external:650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/5C/wKiom1fePj-hZmqXAACtHTQFAN0922.png-wh_500x0-wm_3 -wmp_4-s_2639269358.png
1. Export Env_var=value #修改环境变量2. Env #查看环境变量值3. Hostname #显示主机名4. readlink-f filename #文件的完整路径5. Tar xzf filename.tar.gz; #解压, followed by the-C dirname, means to extract to a directory.6. Tar czf filename.tar.gz dirname #压缩7. Ctr+r use keywords to
1. Batch add user's small script:1 for inch XP WRG LCT 2 Do 3 Useradd $name 4 Echo passwd --stdin $name5 DoneTo echo Red | Explanation of the passwd--stdin $name:First, the commands before and after the pipeline are not sequential. PASSWD is
The Shell's English interpretation is the shell, echoing with the kernel kernel noun, one outside, one shell and one core. The kernel is like the Bank of Switzerland's treasury, storing the customer's gold and many other (hardware) assets,
On the use of test statements and related use rules, if only isolated use is difficult to have its application, of course, in the shell script can not exist in isolation, only with conditional statements and control statements and other uses to make
#!/bin/bash#a_sub () { sleep 5}multi_thread () { thread=5 # define the number of threads here tmp_fifo= "/tmp/$.fifo" /usr/bin/mkfifo $TMP _fifo # Create a new FIFO type of file exec 6<> $TMP _fifo /bin/rm -f
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service