mysql

各种提权姿势总结

柔情痞子 提交于 2021-02-19 05:51:51
提权技巧 1.cmd拒绝访问就自己上传一个cmd.exe,自己上传的cmd是不限制后缀的,还可以是cmd.com cmd.txt cmd.rar等 2.net user不能执行有时候是net.exe被删除了,可以先试试net1,不行就自己上传一个net.exe 3.cmd执行exp没回显的解决方法:com路径那里输入exp路径 C:\RECYCLER\pr.exe ,命令那里清空(包括/c )输入 net user jianmei daxia /add 4.有时候因为监控而添加用户失败,试试上传抓取hash的工具,如PwDump7.exe,得到hash之后可以进行破解,建议重定向结果到保存为1.txt cmd /c c:\windows\temp\cookies\PwDump7.exe >1.txt ,在条件允许的情况下也可以用mimikatz直接抓明文 5.有时候权限很松,很多命令都可以执行,但是就是增加不上用户,这时候你就要考虑是不是因为密码过于简单或是过于复杂了 6.用wt.asp扫出来的目录,其中红色的文件可以替换成exp,执行命令时cmd那里输入替换的文件路径,下面清空双引号加增加用户的命令 7.有时候可以添加用户,但是添加不到管理组,有可能是administrators组改名了,使用命令 net user administrator 查看管理组的名字 8

Select max value in subquery

我只是一个虾纸丫 提交于 2021-02-19 05:47:03
问题 I have these two tables: Student: | name | email | |---------------------|-------------------------| | Arturo Vidal | arturo.vidal@usm.cl | | Bastian Quezada | bastian@usm.cl | | Javier Jeria | javier@usm.cl | | Sebastian Piñera | sebastian@presidente.cl | | Sebastian Gallardo | sebastian@usm.cl | Class: | classId | email | signUpDate | |---------|-------------------------|-------------| | 1 | sebastian@usm.cl | 2018-01-01 | | 1 | javier@usm.cl | 2019-10-01 | | 1 | bastian@usm.cl | 2018-07-01

Conecting to MySQL in a remote server from python

♀尐吖头ヾ 提交于 2021-02-19 05:46:07
问题 I'm using Python 3.5, pymysql 0.7.6 on MacOS X 10.12. I'm trying to use python to access a MySQL database in a remote server. I have no problems to access from the command line using: ssh root@XXX.XXX.XXX.XXX root@XXX.XXX.XXX.XXX's password: my_server_password and then in the server: mysql my_database -p Enter password: my_database_password And it works and I can do all sort of things with my database. Now, I try to do the same within python, following the documentation or the numerous

Can Mysql cache calls to same function with same arguments

☆樱花仙子☆ 提交于 2021-02-19 05:43:13
问题 For example I have this condition WHERE f1=CONCAT(v1,v2) OR f2=CONCAT(v1,v2) -- /*... where v1,v1 are static, then Mysql must cache result of concat after first call. If v1 is field, then Mysql must cache result of concat after first call, but only for current row. So, Mysql doing this? 回答1: No, MySQL does not cache function calls. Furthermore, such an optimization would not be worth doing. Note the tiny difference: mysql> SELECT city, country, CONCAT(city, country) FROM cities LIMIT 263000,5

Syntax error when using Delimiters with Aurora Serverless MySQL 5.6

拈花ヽ惹草 提交于 2021-02-19 05:03:11
问题 I'm using Aurora Serverless MySQL 5.6 to create the following trigger which will update one table when data is inserted into another table but am receiving syntax errors, specifically around the Delimiter keyword. DELIMITER $$ CREATE TRIGGER Create_Media_Like_Trigger AFTER INSERT ON MediaLike FOR EACH ROW BEGIN IF NEW.likeType = 'LIKE' THEN UPDATE Media SET Media.numLikes = Media.numLikes + 1 WHERE Media.mediaId = NEW.mediaId; ELSEIF NEW.likeType = 'DISLIKE' THEN UPDATE Media SET Media

2017双11技术揭秘—阿里巴巴数据库技术架构演进

与世无争的帅哥 提交于 2021-02-19 05:01:37
摘要: 每年电商双11大促对阿里技术人都是一次大考,对阿里数据库团队更是如此。经过9年的发展,双11单日交易额从2009年的0.5亿一路攀升到2017年的1682亿,秒级交易创建峰值达到了32.5万笔/秒。支撑这一切业务指标的背后,是底层技术体系的一次次迭代升级。 作者:谌文涛(俞月) 每年电商双11大促对阿里技术人都是一次大考,对阿里数据库团队更是如此。经过9年的发展,双11单日交易额从2009年的0.5亿一路攀升到2017年的1682亿,秒级交易创建峰值达到了32.5万笔/秒。支撑这一切业务指标的背后,是底层技术体系的一次次迭代升级。 阿里巴巴数据库系统经历了10多年的发展,今年正式确定从 第三代大规模分库分表 向 第四代X-DB分布式数据库系统 演进的目标。X-DB分布式数据库的落地已经在2017年双11大促中获得了可行性验证,同时底层开始引入存储计算分离架构。分布式在系统稳定性、容灾能力、容量扩展性、技术体系内聚性上有了质的提升,今年双11开启了阿里数据库技术架构新的篇章。 很多问题其实答案很简单,但是背后的思考和逻辑不简单,要做到知其然还要知其所以然。如果想学习Java工程化、高性能及分布式、深入浅出。微服务、Spring,MyBatis,Netty源码分析的朋友可以加我的Java进阶群:629740746,群里有阿里大牛直播讲解技术

Unable To use java.time.LocalDate in JPA entity with MySql

自古美人都是妖i 提交于 2021-02-19 04:47:07
问题 I am trying to use LocalDate in my entities and this usage has plenty of documentation around the net. Which is why I am baffled it doesn't work. Here is my error: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '\xAC\xED\x00\x05sr\x00\x0Djava.time.Ser\x95]\x84\xBA\x1B"H\xB2\x0C\x00\x00xpw\x07\x03\x00\x00\x07\xD7\x0C\x03x' So, it obviously needs a converter. I have tried the following links: This one says to add the spring converters to the scan path for the

PHP app cannot connect to docker mysql container at 127.0.0.1

橙三吉。 提交于 2021-02-19 04:18:39
问题 Mysql is in it's own docker-compose.yml as I want a mysql server up and running that any other php application can connect to. So I do not have php and mysql in the same docker-compose.yml. From the php application, I can connect to mysql if I use the mysql container's gateway ip address by looking it up and then hard coding it into the php application. docker inspect mysql-db . But docker will change that 172... ip address each time mysql restarts so that is not ideal for development. I can

Display mysql in a html table with Node.js

拥有回忆 提交于 2021-02-19 04:06:47
问题 i'm learning how to use node.js with mysql. I've tried to find some good documentation but in vain. i'm at the point where I can get my mysql data displayed in my browser but I want to handle it through my index.html and a css file at some point. This is my app.js: // moduels var express = require('express'); var app = express(); var mysql = require('mysql'); var bodyParser = require('bodyParser') // app.use(express.static(__dirname + '/public')); app.use(bodyParser.urlencoded({extended:

实战 | MySQL Binlog通过Canal同步HDFS

[亡魂溺海] 提交于 2021-02-19 04:02:42
大数据技术与架构 点击右侧关注,大数据开发领域最强公众号! 暴走大数据 点击右侧关注,暴走大数据! 之前 《MySQL Binlog同步HDFS的方案》 介绍性的文章简单介绍了实时同步mysql到hdfs的几种方案,本篇主要记录下利用canal同步mysql到hdfs的具体方案。 本文来自:http://bigdatadecode.club/MysqlToHDFSWithCanal.html canal server 部署 在canal中一个mysql实例对应一个配置文件,配置文件放在conf目录下的一个文件夹中,该文件夹的名字就代表了mysql实例。结构如下 -rwxr-xr-x 1 dc user 2645 Jul 18 14:25 canal.properties -rwxr-xr-x 1 dc user 2521 Jul 17 18:31 canal.properties.bak -rwxr-xr-x 1 dc user 3045 Jul 17 18:31 logback.xml drwxr-xr-x 2 dc user 4096 Jul 17 18:38 spring drwxr-xr-x 2 dc user 4096 Jul 19 11:55 trans1 trans1代表一个mysql实例,该文件夹中有个instance.properties文件