TDWTF Plays Zork I
-
save
Enter a file name.
Default is "ZORK1.qzl": /dev/null
Ok.
>
-
@error_bot save
/etc/passwd
-
save
Enter a file name.
Default is "/dev/null": /etc/passwd
Failed.
>
-
@error_bot save
/dev/tty
-
save
Enter a file name.
Default is "/etc/passwd": /dev/tty
Failed.
>
-
@error_bot restore
/dev/urandom
-
restore
Enter a file name.
Default is "/dev/tty": /dev/urandom
This is not a saved game file!
Failed.
>
-
The game is running in an Alpine Linux Docker container, proxied by a Nodejs app to the bot over a WebSocket.
In case that helps you break it.
I feel like it's pretty well insulated from the host machine.
-
error_bot here is just playing middleman between two other websocket servers: NodeBB on one side, and the terminal emulator proxy thing hosting the docker container.
-
Theoretically I could proxy any CLI app to the forum with it.
-
@error said in TDWTF Plays Zork I:
Docker container, proxied by a Nodejs app
Also, I forgot to say up top, welcome back!
-
It sounds a little Rube Goldberg, but keeping it in modular processes means I can hot reload individual components, and the compartmentalization keeps it isolated in case it gets compromised.
-
@error_bot '); DROP TABLE 'pr0n';--
-
'; DROP TABLE 'pr0n';--
I don't know the word "';".
>
-
Good luck with that. There's no database anywhere.
-
@error You mean it's not inserting every input into a table of inputs, and then querying that table for the latest addition to send to the game, then inserting that into a table of outputs, and querying that table for what to post?
-
I need to remedy that situation immediately!
-
@error_bot !mandelbrot
-
-
@error_bot look
-
look
2
West of House
You are standing in an open field west of a white house, with a boarded front
door.
There is a small mailbox here.
>
-
@error_bot
restart
!mandelbrot
y
verbose
-
-
restart
Your score is 0 (total of 350 points), in 2 moves.
This gives you the rank of Beginner.
Do you wish to restart? (Y is affirmative): >y
0
ZORK I: The Great Underground Empire
Copyright (c) 1981, 1982, 1983 Infocom, Inc. All rights reserved.
ZORK is a registered trademark of Infocom, Inc.
Revision 88 / Serial number 840726
>verbose
Maximum verbosity.
>
-
@error said in TDWTF Plays Zork I:
Theoretically I could proxy any CLI app to the forum with it.
We need a c++ compiler stat. That'll let us break things
-
@error_bot LOOK
-
LOOK
1
West of House
You are standing in an open field west of a white house, with a boarded front
door.
There is a small mailbox here.
>
-
@error_bot SMELL MAILBOX
-
SMELL MAILBOX
2
It smells like a small mailbox.
>
-
@error_bot OPEN MAILBOX
-
OPEN MAILBOX
3
Opening the small mailbox reveals a leaflet.
>
-
@error_bot READ LEAFLET
-
READ LEAFLET
4
(Taken)
"WELCOME TO ZORK!
ZORK is a game of adventure, danger, and low cunning. In it you will explore
some of the most amazing territory ever seen by mortals. No computer should be
without one!"
>
-
@error_bot LOOK HOUSE
-
LOOK HOUSE
That sentence isn't one I recognize.
>
-
@error_bot GO EAST
-
GO EAST
5
The door is boarded and you can't remove the boards.
>
-
@error_bot GO SOUTH
-
GO SOUTH
South of House6
South of House
You are facing the south side of a white house. There is no door here, and all
the windows are boarded.
>
-
@error_bot GO EAST
-
GO EAST
Behind House 7
Behind House
You are behind the white house. A path leads into the forest to the east. In onecorner of the house there is a small window which is slightly ajar.
>
-
@error_bot OPEN WINDOW
-
OPEN WINDOW
8
With great effort, you open the window far enough to allow entry.
>
-
@error_bot GO NORTH
-
GO NORTH
North of House9
North of House
You are facing the north side of a white house. There is no door here, and all
the windows are boarded up. To the north a narrow path winds through the trees.
>
-
@error_bot GO NORTH
-
GO NORTH
Forest Path 10
Forest Path
This is a path winding through a dimly lit forest. The path heads north-south
here. One particularly large tree with some low branches stands at the edge of
the path.
>
-
@error_bot LOOK LARGE TREE
-
LOOK LARGE TREE
That sentence isn't one I recognize.
>
-
@error_bot CLIMB TREE