想起了多年前玩过的 flash小游戏 Into Space 2

以前就保存过这个flash游戏的swf文件,以为很简单的,就像以前的自动机编程游戏 Manufactoria一样,放在网页上就玩了。

结果载入游戏却提示The game is site-locked,这该死的 armorgames,只准在你们的页面上才能玩是吧。

搜索了下网络发现可以使用ffDec(此工具需要 java runtime)这个工具来逆向,找到关键点就可以 bypass 了。

左侧的资源栏里导航到scripts/upg_ach_game/BaseBranding,找到domainAllowed这个变量,点击下方的Edit ActionScript,然后将其改成True。既可。不同的游戏文件有不同的处理方式,甚至相同的游戏文件也有不同的 bypass 方式。我所知道的是这种根据加载的站点来封锁的机制和loaderInfo.loaderURL方法有关,在资源文件scripts部分鼠标右键Text search搜索loaderInfo或者loaderURL等关键词找对位置,具体问题具体分析代码可知。

ffdec

还有人发现了程序里用来开发调试用的控制台,修改程序后可以通过键盘 “`” key来开启。

秘籍如下

# 在游戏暂停时呼出控制台,或者商店页面,火箭发射阶段控制台无法输入。
# 部分操作如不生效,可以退到 menu 然后再继续进入到游戏生效。
clear - Clears the console history.
fps - Toggle an FPS/Memory usage indicator.
fuel - cheat - gives player infinite fuel
help - [prefix] - List known commands, optionally filtering by prefix.
intoSpace - cheat - takes player to space
listDisplayObjects - Outputs the display list.
mars - cheat - takes player to the Mars landing scene
notdoppler - cheat - gives player $999999
powerMode - cheat - unlocks the PowerMode item.
tree - List all the PBObjects in the game.
unlock - cheat - unlocks all rocket parts
unlockAll - cheat - unlocks all items
verbose - Set verbosity level of console output.
version - Echo PushButton Engine version information.

相关:

Tag:gameswfbypass Published under (CC) BY-NC-SA