PHP has a version of 5.4
The PHP code is as follows:
The root user uses PHP test.php on the server terminalThe output is as follows and is correct [Root@localhost htdocs]# php Test.phparray (1) { [0]=> string (4) "Root"} But enter http://192.168.x.x/test.php on the browserThe output is empty. The feeling is a permissions problem on the Linux server, but I don't know which permission is the problem.The user named Apache running httpd Reply to discussion (solution)
are displayed.
$ usersjohn jason ramesh
3. Run the whoami command to view your logon name.
The whoami command is used to display the login user name.
$ whoamijohnThe running effect of the whoami command is exactly the same as that of the id-un Command, for example:
$ id -unjohnThe whoami command displays the nam
betty.Usage
You should add the word "betty" before the English phrase [LCTT, You can naturally use your sweetheart name to replace this is not known who's Betty:>]. You may already know that if we want to know our user name in the system, we should run the following command:
whoami
The output is as follows:
sk
As you can see, my current login user name isSkNow I can use the following betty command to get the same result.
betty whats my username
The o
[Priv]jason pts/1 dev-db-server 20:36-bashjohn pts/ 2 Dev-db-server 1.00s W-s2. Use the WHO command to view (log in) the user name and the process that was startedThe WHO command is used to enumerate the user names of the currently logged on system. The output is: User name, TTY number, time date, host address.who ramesh pts/0 2009-03-28 22:57 (dev-db-server) Jason pts/1 2009-03-28 23:01 (dev-db-server) John Pts/2 2009-03-28 23:04 (dev-db-server)If you only want to list
Dev-db-server 1.00s W-s2. Use the WHO command to view (log in) the user name and the process that was startedThe WHO command is used to enumerate the user names of the currently logged on system. The output is: User name, TTY number, time date, host address.who ramesh pts/0 2009-03-28 22:57 (dev-db-server) Jason pts/1 2009-03-28 23:01 (dev-db-server) John Pts/2 2009-03-28 23:04 (dev-db-server)If you only want to list users, you can use the following statement:Who | cut-d
date, host address.who ramesh pts/0 2009-03-28 22:57 (dev-db-server) Jason pts/1 2009-03-28 23:01 (dev-db-server) John Pts/2 2009-03-28 23:04 (dev-db-server)If you only want to list users, you can use the following statement:Who | cut-d '-f1 | sort | uniqJohnjasonrameshSupplemental : The Users command, which can be used to print out the user name of the logon server. This command has no options other than the Help and version options. If a user uses more than one termina
yours. # For my format, it is: #1. # starts for comments #2. there are 3 parts :[
]
[
] ## 3.
, It's easy: [$] means you have CT a' $ 'ends; #4.
, Support 'send' and 'Password'. # If 'send', means
Will be sent to SSH channel. # If 'Password', means
Come from system console, that is, need you type in. [$] send [pwd] [$] send [whoami] [$] send [su-root] [Password:] password [] [#] send [pwd
How to find RCE in scripts (with examples )-------------------------------- By SirGod -------------------------------- Www.insecurity-ro.org -------------------------------- Www.h4cky0u.org ----------------
-In this tutorial I will show you how to find Remote Command Execution vulnerabilitiesIn PHP Web Applications (scripts ).-Through Remote Command Execution vulnerabilities you can execute commands onWebserver.-I will present 4 examples + the basic one.-I will start with a basic example.File: i
The security group upgrade rule failed error: Rule "Security Group Sid (Security Identifier)" failed was reported in the forum today. This error occurs because the Windows Local Group Sid information created by SQL Server does not match the SID in the registry. You need to use whoami/groups to find the correct Sid and replace the error Sid in the registry, the problem can be solved.
For detailed steps, refer:
Problem
Last month I was working on a SQ
X: = later
It is equivalent:
Y: = Foo bar
X: = later
It is worth mentioning that, in this method, the preceding variables cannot use the following variables, but can only use the previously defined variables. If so:
Y: = $ (x) bar
X: = foo
Then, the value of Y is "bar" instead of "foo bar ".
The above are some simple variables used. Let's take a look at a complicated example, including the make function, conditional expression, and the use of a system variable "makelevel:
Ife
using: Brew link CMake ....... .....
3. Follow the prompts:
Brew Link Pkg-config
Error:
Error:could not symlink share/aclocal/pkg.m4/usr/local/share/aclocal are not writable.
4. Oh, no permission. So:
sudo brew link pkg-config
Error:
Error:running Homebrew as Root is extremely dangerous and no longer supported.
5. The original does not allow, then had to change the folder permissions
whoami# the following two commands of '
= philosophus: 0.0
Run the program, for example:
Netscape
If movietux is a powerful machine, you will notice that html display in netscape is faster than local display. At the same time, you will not notice from the usage that this netscape is not running locally, because you also use the mouse, keyboard to perform the same operations as the local.
It's cool, isn't it?
Taking the display with you
Although it is relatively simple to remotely run an application, you need to set the DISPLAY and t
: = LaterIt is equivalent to:Y: = foo barx: = LaterIn this way, the preceding variables cannot use the following variables, only the variables that have been defined previously. If this is the case:Y: = $ (x) barx: = fooSo, the value of y is "bar", not "foo bar".Here are some of the more simple variables used to see a complex example, including the use of make functions, conditional expressions, and a system variable "Makelevel":Ifeq (0,${makelevel})Cur-dir: = $ (shell pwd)
2012-09-18 07:59 (192.168.50.1)
# W
08:43:58 up 50 min, 1 user, load average: 0.64, 0.18, 0.06
User tty from login @ IDLE JCPU PCPU WHAT
Tecmint pts/0 192.168.50.1 07 :59 0.00 s 0.43 s 0.10 s w
Who Command Options
◆-B: displays the last system restart date and time.
◆-R: displays the current running level.
◆-A,-all: displays all accumulated information.
5. whoami command
The whoami command outputs
whoami represents the thread name,An integer delay represents the time at which the thread randomly sleeps. Constructs a parameter constructor that displays the name of the thread and the time to sleep when the thread executes.In addition, define a test class Testthread and create three thread objects to demonstrate execution.Class MyThread extends thread{Private String WhoAmI;private int delay;Public MyTh
. In addition, if a function is used in a variable, this method will slow our make runtime. What's worse, he will use two make functions "wildcard" and "shell" to make unpredictable errors. Because you don't know how many times these two functions will be called.
To avoid this method, we can use another method in make to define variables. This method uses the ": =" operator, for example:
X: = foo
Y: = $ (x) bar
X: = later
It is equivalent:
Y: = Foo bar
X: = later
It is worth mentioning that, in
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.