当前位置:网站首页>HackTheBox-Emdee five for life
HackTheBox-Emdee five for life
2022-07-06 14:52:00 【galaxy3000】
List of articles
summary
HackTheBox Website CTF shooting range Web Related topics Emdee five for life, Title address https://app.hackthebox.com/challenges/emdee-five-for-life, Mainly for Web Script development ability of page access and submission data .

subject
Title Overview
The title prompt is Can you encrypt fast enough?, After opening the program instance , Prompt to visit 167.99.202.131:30306, visit http://167.99.202.131:30306, See the following Web Interface 
That is, the title gives a random string , Request to get this random string and md5 hash , And fill the hash value into the input box , But there are requirements for time , If the submission is too slow, it will fail .
Question answer
After trying , After manual acquisition md5 Processing resubmission must timeout , You need to use scripts to deal with , Use here Python, The main use of requests、BeautifulSoup、hashlib Three libraries .
import requests
from bs4 import BeautifulSoup
from hashlib import md5
url = 'http://167.99.202.131:30306/'
with requests.Session() as session:
with session.get(url) as rt:
soup = BeautifulSoup(rt.text, 'html.parser')
target_str = soup.find('h3').text
md5_str = md5(target_str).hexdigest()
args = {'hash': md5_str}
with session.post(url, data=args) as rt2:
print(rt2.content)
- among requests The library is used to pass through GET Method to visit the website , And pass POST Method submit data , Here we need to pay attention to maintaining the same session , That is, random strings and hash Values remain in the same session , adopt
requests.Session()Realization . - BeautifulSoup analysis GET Results and extracts random strings .
- hashlib Used to modify random strings md5 hash .
Run script , Include... In the returned result flag

边栏推荐
- How to test whether an object is a proxy- How to test if an object is a Proxy?
- ES全文索引
- Statistics 8th Edition Jia Junping Chapter 7 Summary of knowledge points and answers to exercises after class
- 《统计学》第八版贾俊平第七章知识点总结及课后习题答案
- Statistics, 8th Edition, Jia Junping, Chapter VIII, summary of knowledge points of hypothesis test and answers to exercises after class
- Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator
- Zhejiang University Edition "C language programming experiment and exercise guide (3rd Edition)" topic set
- MySQL interview questions (4)
- JVM memory model concept
- Proceedingjoinpoint API use
猜你喜欢

Proceedingjoinpoint API use
![Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]](/img/0b/ddbee0b8a34627e13bff5598bbaed8.jpg)
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]

四元数---基本概念(转载)

Fundamentals of digital circuit (IV) data distributor, data selector and numerical comparator

DVWA exercise 05 file upload file upload

servlet中 servlet context与 session与 request三个对象的常用方法和存放数据的作用域。

The common methods of servlet context, session and request objects and the scope of storing data in servlet.

The salary of testers is polarized. How to become an automated test with a monthly salary of 20K?

《统计学》第八版贾俊平第五章概率与概率分布

About the garbled code problem of superstar script
随机推荐
Function: string storage in reverse order
指针--剔除字符串中的所有数字
Uibutton status exploration and customization
Function: calculates the number of uppercase letters in a string
Statistics 8th Edition Jia Junping Chapter 12 summary of knowledge points of multiple linear regression and answers to exercises after class
数字电路基础(二)逻辑代数
《统计学》第八版贾俊平第十章方差分析知识点总结及课后习题答案
移植蜂鸟E203内核至达芬奇pro35T【集创芯来RISC-V杯】(一)
flask实现强制登陆
“Hello IC World”
ByteDance ten years of experience, old bird, took more than half a year to sort out the software test interview questions
内网渗透之内网信息收集(三)
[issue 18] share a Netease go experience
Want to learn how to get started and learn software testing? I'll give you a good chat today
Statistics 8th Edition Jia Junping Chapter 5 probability and probability distribution
Statistics 8th Edition Jia Junping Chapter 2 after class exercises and answer summary
Realize applet payment function with applet cloud development (including source code)
Soft exam information system project manager_ Project set project portfolio management --- Senior Information System Project Manager of soft exam 025
数字电路基础(四) 数据分配器、数据选择器和数值比较器
The common methods of servlet context, session and request objects and the scope of storing data in servlet.