mysql

sqlmap tamper脚本备忘录与tamper脚本编写

北城以北 提交于 2021-02-17 07:58:29
查看sqlmap全部脚本 $ python sqlmap.py --list-tampers 使用方法 --tamper=TAMPER 2019.9更新后翻译 * apostrophemask.py-用其UTF-8全角字符替换撇号(')(例如'->%EF%BC%87) * apostrophenullencode.py-用非法的双unicode替换撇号(')(例如'->%00%27) * appendnullbyte.py-在有效载荷的末尾附加(访问)NULL字节字符(%00) * base64encode.py-Base64对给定有效载荷中的所有字符进行编码 * between.py- 替换较大比运算符('>')带有'NOT BETWEEN 0 AND#',等于运算符('=')与'BETWEEN#AND#' * bluecoat.py-用有效的随机空白字符替换SQL语句后的空格字符。然后用运算符LIKE替换字符'=' * chardoubleencode.py-双重URL编码给定有效负载中的所有字符(未处理已编码)(例如SELECT->%2553%2545%254C%2545%2543%2554) * charencode.py-URL编码中的所有字符给定的有效载荷(不处理已经编码的)(例如SELECT->%53%45%4C%45%43%54) *

阿里云ECS docker安装mysql

烈酒焚心 提交于 2021-02-17 07:24:03
参考:Docker 安装 MySQL https://www.runoob.com/docker/docker-install-mysql.html 安装环境:阿里云ECS ContOS7,连接到ECS的Xshell 安装前提:系统安装好docker,并且已启动 安装步骤: 1、下拉镜像 $ docker pull mysql: 5.7.16 3、查看下拉下来的镜像 $ docker images 4、准备文件夹 $ mkdir -p /opt/mysql/data /opt/mysql/logs /opt/mysql/conf   data目录将映射为mysql容器配置的数据文件存放路径   logs目录将映射为mysql容器的日志目录   conf目录里的配置文件将映射为mysql容器的配置文件 3、运行镜像创建容器 $ cd /opt/mysql $ docker run -p 3306 : 3306 --name mysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD= 123456 -d mysql: 5.7.16 命令说明: -p 3306:3306 :将容器的 3306 端口映射到主机的 3306 端口。 -v

Feed流系统设计-总纲

微笑、不失礼 提交于 2021-02-17 07:20:15
https://mp.weixin.qq.com/s/ccxM2thPbzg5vDWgGVJ5vQ 作者:少强 简介 差不多十年前,随着功能机的淘汰和智能机的普及,互联网开始进入移动互联网时代,最具代表性的产品就是微博、微信,以及后来的今日头条、快手等。这些移动化联网时代的新产品在过去几年间借着智能手机的风高速成长。 这些产品都是Feed流类型产品,由于Feed流一般是按照时间“从上往下流动”,非常适合在移动设备端浏览,最终这一类应用就脱颖而出,迅速抢占了上一代产品的市场空间。 Feed流是Feed + 流,Feed的本意是饲料,Feed流的本意就是有人一直在往一个地方投递新鲜的饲料,如果需要饲料,只需要盯着投递点就可以了,这样就能源源不断获取到新鲜的饲料。在信息学里面,Feed其实是一个信息单元,比如一条朋友圈状态、一条微博、一条咨询或一条短视频等,所以Feed流就是不停更新的信息单元,只要关注某些发布者就能获取到源源不断的新鲜信息,我们的用户也就可以在移动设备上逐条去浏览这些信息单元。 当前最流行的Feed流产品有微博、微信朋友圈、头条的资讯推荐、快手抖音的视频推荐等,还有一些变种,比如私信、通知等,这些系统都是Feed流系统,接下来我们会介绍如何设计一个Feed流系统架构。 Feed流系统特点 Feed流本质上是一个数据流,是将 “N个发布者的信息单元” 通过 “关注关系”

How to reverse hashed and salted password ? [closed]

╄→尐↘猪︶ㄣ 提交于 2021-02-17 07:18:49
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Improve this question I am using vBulletin and the login uses this to cross-refer to the database. md5(md5($pass).$salt) How do i make a PHP script such that every password input will automatically be hashed and salted as well so that it is able to authenticate with the vBulletin

No Database selected error in PHP with MySQLi [duplicate]

為{幸葍}努か 提交于 2021-02-17 07:18:29
问题 This question already has answers here : How to make mysqli connect function? (2 answers) Closed 4 years ago . I have to select data from MySQL Database. I have been looking for the answer, but still haven't found any. I am learning from W3School My MySQL doesn't have any username or password, so my code looks like this: <?php $servername = "localhost"; $dbName = "db_Test"; //Create Connection $conn = mysqli_connect($servername, $dbName); //Check Connection if(!$conn){ die("Connection Failed.

Current time when MySQL record is saved to database

青春壹個敷衍的年華 提交于 2021-02-17 07:16:15
问题 I'm working with Zend Framework 1.12 and Mysql. I want to add column in database, which save currenct datetime when record was inserted into table. Anyone knows how can I defined this column? This function must working on Mysql site, not PHP. 回答1: you must change column type to TIMESTAMP , and in default field set CURRENT_TIMESTAMP 回答2: There are different ways to do so. You can define data type TIMESTAMP and set default value to CURRENT_TIMESTAMP You can define column with data type datetime

Current time when MySQL record is saved to database

断了今生、忘了曾经 提交于 2021-02-17 07:16:05
问题 I'm working with Zend Framework 1.12 and Mysql. I want to add column in database, which save currenct datetime when record was inserted into table. Anyone knows how can I defined this column? This function must working on Mysql site, not PHP. 回答1: you must change column type to TIMESTAMP , and in default field set CURRENT_TIMESTAMP 回答2: There are different ways to do so. You can define data type TIMESTAMP and set default value to CURRENT_TIMESTAMP You can define column with data type datetime

Servlet with JDBC [duplicate]

心已入冬 提交于 2021-02-17 07:11:47
问题 This question already has answers here : The infamous java.sql.SQLException: No suitable driver found (16 answers) Closed 3 years ago . I have a problem with my progect. Files of progect: House.class public class House implements Serializable { //properties ------------------------------------------------------------- private String price; private String square; private String RoomNumbers; //------------------------------------------------------------------------ //getters - settersm Object

Servlet with JDBC [duplicate]

穿精又带淫゛_ 提交于 2021-02-17 07:11:30
问题 This question already has answers here : The infamous java.sql.SQLException: No suitable driver found (16 answers) Closed 3 years ago . I have a problem with my progect. Files of progect: House.class public class House implements Serializable { //properties ------------------------------------------------------------- private String price; private String square; private String RoomNumbers; //------------------------------------------------------------------------ //getters - settersm Object

PHP PDO dynamic update query to MYSQL

家住魔仙堡 提交于 2021-02-17 07:08:55
问题 I have a form with an image upload and text inputs. it keeps replacing the profile_picture field with NULL. Therefore, I'm trying to create a dynamic update query, where if one value is empty it's excluded from the query altogether. Any help is appreciated. IMAGE UPLOAD: if (!empty($_FILES['profile_picture']) && $_FILES['profile_picture']['error'] == UPLOAD_ERR_OK) { // Rename the uploaded file $uploadName = $_FILES['profile_picture']['name']; $tmp_name = $_FILES['profile_picture']['tmp_file'