aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-10-16 18:24:17 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-10-16 18:24:17 +0300
commit3d8e08ebf6d4d4477452a147d3bfe0329177a9c3 (patch)
treed68e5b7ebdd85d0a9f7cf7bd7ae9ebdb036e6d9e
parent0cf44154047325a85eb1ab67c4d5b14c09dadfe9 (diff)
downloadcryptrobber-3d8e08ebf6d4d4477452a147d3bfe0329177a9c3.tar
cryptrobber-3d8e08ebf6d4d4477452a147d3bfe0329177a9c3.tar.xz
cryptrobber-3d8e08ebf6d4d4477452a147d3bfe0329177a9c3.zip
Reversed echo.
-rw-r--r--main.sts17
1 files changed, 10 insertions, 7 deletions
diff --git a/main.sts b/main.sts
index 18964bb..f13ae68 100644
--- a/main.sts
+++ b/main.sts
@@ -1,14 +1,17 @@
module ia32/elf/begin.sts
-set_entry
+defarr bigbad 1048576
+
+set_entry ; reversed echo
+ 0 ; bigbad index
+ do sys_read 0 = until
+ over bigbad + !
+ 1 +
+ od ; bigbad length will be on top of stack
do
- 34 sys_write
- sys_read
- 0 = until
- sys_write
- od
- drop
+ 1 - dup bigbad + @ sys_write
+ dup 0 = untilod drop
sys_exit
module ia32/elf/end.sts