当前位置:网站首页>A batch layout WAF script for extraordinary dishes

A batch layout WAF script for extraordinary dishes

2022-06-23 21:52:00 vFREE

CMS Content management system , It is a kind of website building system that exists in order to save website development time , After the completion of construction , Users only need to add, delete, modify and query articles in the background , Users and other functions

Today, I will share a batch layout I wrote for you waf Script for

At first, the meaning of writing this script was because of the online AWD To arrange waf, But if you decorate one by one ,20 I don't know how much time it takes to decorate , Nor does it mean that the defense is only for arrangement waf That's all right. , therefore , A batch layout waf The script of was born , Remove the text description 40 Multiple lines

download

GitHub:https://github.com/vFREE-1/vfree

Gitee:https://gitee.com/WHOAME/vfree/tree/master

Usage method

The method of use is often humanized

python3 ZYGS--waf.py File path " Added content "

example

1. Create multiple php File experiment

The contents of the file at this time are just <?php eval($_POST[qweqweqweqweqweqwe]);?>

2. Look at the file path

Be careful : The file path should be followed by a slash , Otherwise, you will report a mistake , For example, use pwd The path found is /var/www/test, The real path should be Tian /var/www/test/, Slash , An error will be reported without a slash

3. Add file content

No matter what you add , All should be enclosed in double quotation marks , For example, I want to include a waf.php, So integrity is

python3 ZYGS--waf.py /var/www/test/ "include 'waf.php'"

that will do

Add it successfully , Echo content

Successful addition

notes : In the arrangement waf Before , You can make a backup of the file , If waf to down Words , Files can be recovered in time , In this way, it will not be because down The machine keeps losing points

other

Change location

You can go through the 40 The row changes where it is added

take 1 Change to other lines , Pay attention here ,1 The second line ,2 That's the third line ,3 The fourth line , And so on ...

appear TypeError

Like the following

Use python3 To run , The script is based on python3 Version written ,python2 Will run error

notes : Some pictures come from the Internet , If there is any infringement , Please contact to delete !!! thank you

原网站

版权声明
本文为[vFREE]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112202245317919.html

随机推荐