본문 바로가기
CTF_write_up/Xiomara

XiomaraCTF_Easy Login?

by 강깅꽁 2017. 2. 26.

Hi this is my first write-up in English and I'm studying English hard for maybe 4 months

therefore, I would have many wrong sentences

anyway Let's see problem



this is start page, I thought it is sqli at first time but it was not


this is source page

first of all, I entered flag.css but I couldn't get anythings

so I entered main.js

<!DOCTYPE html>
<html>
<head>
<title>Login</title>
</head>
<script type="text/javascript" src="main.js"></script>
<link rel="stylesheet" href="flag.css" />
<body>
<h1 align= "center">Login Portal</h1>
<form name="login" method="POST" action="">
<b>Username :<b> <input type="text" name ="username"/><br>
<b> Password :<b> <input type="password" name="password" /></br></br>
<input onclick="Login()" type="button" value="verify" name="button" />
</form>
</body>

</html>

then I got username and password



I could see this page after loged-in

I just downloded this jpeg file

I opened hiddenflag.jpeg with hex editor

and I used find function(ctrl+ f) 


* if you have any questions about this ctf problem or if what I wrote sentences is wrong. please send me a message

Email address: ket8780@gmail.com