tryhackme--Injection

开启环境,用nmap扫描,扫出22,80端口,访问80端口发现一个输入框,可以绕过执行任意命令。
在这里插入图片描述

Task 3 Blind Command Injection

Ping the box with 10 packets. What is this command (without IP address)?

; ping -c 10

既然可以执行任意命令我们就反弹一个shell回来
在这里插入图片描述

Redirect the box’s Linux Kernel Version to a file on the web server. What is the Linux Kernel Version?

查看内核版本:uname -a
在这里插入图片描述

4.15.0-101-

Enter “root” into the input and review the alert. What type of alert do you get?

在这里插入图片描述

success

Enter “www-data” into the input and review the alert. What type of alert do you get?

在这里插入图片描述

success

Enter your name into the input and review the alert. What type of alert do you get?

在这里插入图片描述

error

输入系统中不存在的用户就会报错

Task 4 Active Command Injection

What strange text file is in the website root directory?

在这里插入图片描述

drpepper.txt

How many non-root/non-service/non-daemon users are there?

在这里插入图片描述
除了用户之外为0

0

What user is this app running as?

在这里插入图片描述

www-data

What is the user’s shell set as?

在这里插入图片描述

/usr/sbin/nologin

What version of Ubuntu is running?

在这里插入图片描述

18.04.4 

Print out the MOTD. What favorite beverage is shown?

在这里插入图片描述

Dr Pepper

Task 5 Get The Flag!

Get the flag!

使用find命令寻找flag文件

find / -name *flag*  > 1.txt
cat 1.txt

在这里插入图片描述
在这里插入图片描述

65fa0513383ee486f89450160f3aa4c4

ps:

个人站点博客:XingHe,欢迎来踩~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值