Hack The Box Web Pentest 2019

[20 Points] Emdee five for life [by L4mpje]

问题描述:

 Can you encrypt fast enough? 

Hack The Box Web Pentest 2019_第1张图片

初始页面,不管怎么样点击Submit都会显示"Too slow!"

Hack The Box Web Pentest 2019_第2张图片

 依据Html源码,编写Python脚本进行利用

Hack The Box Web Pentest 2019_第3张图片

import requests
import hashlib
import re

url="http://docker.hackthebox.eu:34650/"

r=requests.session()
out=r.get(url)

rr = re.compile(r"

(\S+)

", re.I) str1 = rr.findall(out.text) str2=hashlib.md5(str1[0].encode('utf-8')).hexdigest() data={'hash': str2} out = r.post(url = url, data = data) print(out.text)

Run result



emdee five for life


MD5 encrypt this string

JBUxqcV4rWsw17043rxv

HTB{N1c3_ScrIpt1nG_B0i!}


[20 Points] Fuzzy [by Arrexel]  

问题描述:

We have gained access to some infrastructure which we believe is connected to the internal network of our target. We need you to help obtain the administrator password for the website they are currently developing. 

Hack The Box Web Pentest 2019_第4张图片

初始页面为一个静态页面

Hack The Box Web Pentest 2019_第5张图片

发现没有什么可利用的点直接进行站点Fuzz

Hack The Box Web Pentest 2019_第6张图片

Start

Hack The Box Web Pentest 2019_第7张图片

Fuzz可以看出来存在目录api并且api下面还有一个php文件

尝试访问 /api/action.php 发现缺少Parameter

 Hack The Box Web Pentest 2019_第8张图片

接下来Fuzz Parameter

Hack The Box Web Pentest 2019_第9张图片

Start

 Hack The Box Web Pentest 2019_第10张图片

 Fuzz到参数reset

Hack The Box Web Pentest 2019_第11张图片

最后Fuzz ID

Hack The Box Web Pentest 2019_第12张图片

Start

Hack The Box Web Pentest 2019_第13张图片

End,Fuzz

Hack The Box Web Pentest 2019_第14张图片

你可能感兴趣的:(Hack The Box Web Pentest 2019)