0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

仙台CTF2018 Mal.4 検体4 JavaScript2 300

Posted at

問題

image.png

解いてみた

ファイルをダウンロードして、難読化されているjsを見てみます。

image.png

難読化ですねー。

とりあえずところどころに「;」があるのでこの直後で改行してみます。

image.png

1つ目の変数は検索してもどこにもヒットしないので、ほかでは使われていないダミーだということがわかりました。
2つ目の変数はcharをstringに変換してるので、これを変換します。
CyberChefを使います。

image.png

どうやらpowershellを使用しているようです。

3つ目の変数も同じ方法でstringに変換します。

image.png

できました。2つ目とほとんど一緒な気がします。
ちょっと見てみます。

image.png

んー、まさかの答えが書いてありました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?