文章目录 wazuh环境配置及案例复现wazuh环境配置 案例复现 wazuh环境配置及案例复现 wazuh环境配置 进入官网下载ova软件 https://documentation.wazuh.com/current/d
进入官网下载ova软件
https://documentation.wazuh.com/current/deployment-options/virtual-Machine/virtual-machine.html
打开下载的ova,密码和用户名会显示在上面
设置NAT模式
然后重启网络,查看ip
service network restartip add
开启小皮,在浏览器上输入ip进行访问,用户名和密码都是admin
进入之后的页面
首先。在Nginx的目录/var/www/html创建一个文件index.PHP
phpfunction fun($var): bool{ $blacklist = ["\$_", "eval","copy" ,"assert","usort","include", "require", "$", "^", "~", "-", "%", "*","file","fopen","fwriter","fput","copy","curl","fread","fget","function_exists","dl","putenv","system","exec","shell_exec","passthru","proc_open","proc_close", "proc_get_status","checkdnsrr","getmxrr","getservbyname","getservbyport", "syslog","popen","show_source","highlight_file","`","chmod"]; foreach($blacklist as $blackWord){ if(strstr($var, $blackword)) return True; } return False;}error_reporting(0);//设置上传目录define("UPLOAD_PATH", "./uploads");$msg = "Upload Success!";if (isset($_POST['submit'])) {$temp_file = $_FILES['upload_file']['tmp_name'];$file_name = $_FILES['upload_file']['name'];$ext = pathinfo($file_name,PATHINFO_EXTENSION);if(!preg_match("/php/i", strtolower($ext))){die("只要好看的php");} $content = file_get_contents($temp_file);if(fun($content)){ die("诶,被我发现了吧");}$new_file_name = md5($file_name).".".$ext; $img_path = UPLOAD_PATH . '/' . $new_file_name; if (move_uploaded_file($temp_file, $img_path)){ $is_upload = true; } else { $msg = 'Upload Failed!'; die(); } echo ''.$msg." Look here~ ".$img_path."";}
然后创建一个前端页面index.html
Document
执行后的结果
来源地址:https://blog.csdn.net/weixin_55822200/article/details/132460608
--结束END--
本文标题: wazuh环境配置及案例复现
本文链接: https://lsjlt.com/news/383139.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0