added 2 problems
This commit is contained in:
parent
ec829e7565
commit
0322fd8ab3
6 changed files with 60 additions and 0 deletions
36
down-a-notch/check
Normal file
36
down-a-notch/check
Normal file
|
@ -0,0 +1,36 @@
|
|||
check(int, int):
|
||||
pushq %rbp
|
||||
movq %rsp, %rbp
|
||||
movl %edi, -36(%rbp)
|
||||
movl %esi, -40(%rbp)
|
||||
movl -36(%rbp), %eax
|
||||
xorl -40(%rbp), %eax
|
||||
movl %eax, -4(%rbp)
|
||||
movl -4(%rbp), %eax
|
||||
addl $98, %eax
|
||||
movl %eax, -8(%rbp)
|
||||
movl -8(%rbp), %eax
|
||||
notl %eax
|
||||
movl %eax, %edx
|
||||
movl -40(%rbp), %eax
|
||||
addl %edx, %eax
|
||||
movl %eax, -12(%rbp)
|
||||
movl -12(%rbp), %eax
|
||||
xorl -36(%rbp), %eax
|
||||
movl %eax, -16(%rbp)
|
||||
movl -40(%rbp), %eax
|
||||
imull -4(%rbp), %eax
|
||||
cltd
|
||||
idivl -8(%rbp)
|
||||
movl %eax, %edx
|
||||
movl -36(%rbp), %eax
|
||||
leal (%rdx,%rax), %ecx
|
||||
movl -12(%rbp), %edx
|
||||
movl -16(%rbp), %eax
|
||||
addl %edx, %eax
|
||||
xorl %ecx, %eax
|
||||
movl %eax, -20(%rbp)
|
||||
cmpl $-814, -20(%rbp)
|
||||
sete %al
|
||||
popq %rbp
|
||||
ret
|
1
down-a-notch/description.md
Normal file
1
down-a-notch/description.md
Normal file
|
@ -0,0 +1 @@
|
|||
I've spent too long in the high level, let's take the level [down a notch](${check}). Help me find the correct input to this function!
|
9
down-a-notch/problem.yml
Normal file
9
down-a-notch/problem.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
author: mzhang
|
||||
title: Down a Notch
|
||||
hint: Compiled with x86-64 gcc 4.9.4
|
||||
category: Programming
|
||||
autogen: false
|
||||
programming: false
|
||||
value: 100
|
||||
files:
|
||||
- check
|
1
undirect/description.md
Normal file
1
undirect/description.md
Normal file
|
@ -0,0 +1 @@
|
|||
Seems like we got ourselves stuck in a [redirect loop](http://undirect.web.easyctf.com). Help me undirect myself from its clutches and get the flag!
|
4
undirect/grader.py
Normal file
4
undirect/grader.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
def grade(autogen, key):
|
||||
if key.find("1t's_4lw4ys_a_G00d_idea_2_ch3ck_th3_he4d3rs!") != -1:
|
||||
return True, "You got it!"
|
||||
return False, "Nope. Keep poking around."
|
9
undirect/problem.yml
Normal file
9
undirect/problem.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
author: mzhang
|
||||
title: Undirect
|
||||
hint: How can you find out more about what the server is really sending back?
|
||||
category: Forensics
|
||||
autogen: false
|
||||
programming: false
|
||||
value: 100
|
||||
files:
|
||||
- gibberish.png
|
Loading…
Reference in a new issue