-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMadness
97 lines (48 loc) · 1.72 KB
/
Madness
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# madness
## nmap:
two ports are open
22 ssh
80 http
### gobuster shows no hidden directry
but find a hidden directry by converting corrupted png file to jpeg file
/th1s_1s_h1dd3n
source code of this directry
<html>
<head>
<title>Hidden Directory</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="main">
<h2>Welcome! I have been expecting you!</h2>
<p>To obtain my identity you need to guess my secret! </p>
<!-- It's between 0-99 but I don't think anyone will look here-->
<p>Secret Entered: </p>
<p>That is wrong! Get outta here!</p>
</div>
</body>
</html>
then is used python to brute forcing the requests
import requests
for i in range(100):
r=requests.get(f"http://10.10.150.152/th1s_1s_h1dd3n/?secret={i}")
if b"wrong" not in r.content:
print("Secret is",i)
Secret is 73
after home page shows
Welcome! I have been expecting you!
To obtain my identity you need to guess my secret!
Secret Entered: 73
Urgh, you got it right! But I won't tell you who I am! y2RPJ4QaPF!B
this shit is password for steghide
root@kali:~/ctf/tryhackme/Madness# cat hidden.txt
Fine you found the password!
Here's a username
wbxre
cipher used to encrypt is ROT110
I didn't say I would make it easy for you!
decoding the username
wbxre:joker
I didn't think you'd find me! Congratulations!
Here take my password
*axA&GF8dP