Skip to content

Instantly share code, notes, and snippets.

@junhoyeo
Last active December 23, 2018 13:26
Show Gist options
  • Select an option

  • Save junhoyeo/c8cd4b1be4dc335300656fdbebd426be to your computer and use it in GitHub Desktop.

Select an option

Save junhoyeo/c8cd4b1be4dc335300656fdbebd426be to your computer and use it in GitHub Desktop.
라면가게 해킹

라면가게 해킹

./flasm -d 2653F64D52821C882BBC4C.swf > Ramen.fla

flasm 바이너리를 같은 폴더에 다운받고, 이를 이용해서 플래시 파일을 Ramen.fla로 디스어셈블했다.

소스코드를 보다 보면 score_all이 눈에 띈다.

frame 111
    push 'FSCommand:allowscale', FALSE
    getURL2
    push 'score_all', 100000.0
    setVariable
  end // of frame 111

frame 111에서 score_all의 초깃값(0.0)이 정해지는데, 이 값을 100000.0으로 변조했다.

./flasm -a Ramen.fla

파일을 다시 어셈블하고, 이를 로드하는 html 파일을 생성해서 브라우저로 열면 기본 점수가 100000점이 된 채 시작할 수 있다.

<html>
    <body>
        <embed width="700" height="550" src="./2653F64D52821C882BBC4C.swf" quality="high" allowscriptaccess="always" type="application/x-shockwave-flash">
    </body>
</html>

역시 준호짱이 끓인 라면이 최고라는 거시애오!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment