This shows you the differences between two versions of the page.
cns:labs:lab-01 [2020/10/12 16:28] dennis.plosceanu [6. Extra: ARM Tasks] |
cns:labs:lab-01 [2021/10/12 16:07] (current) razvan.deaconescu [Tasks] |
||
---|---|---|---|
Line 8: | Line 8: | ||
In the introductory lab we'll spice things up a bit by providing some simple binaries (with no source code) for you to play with. In order to solve the lab, you'll have to perform both **static analysis** and **dynamic analysis** on said binaries. | In the introductory lab we'll spice things up a bit by providing some simple binaries (with no source code) for you to play with. In order to solve the lab, you'll have to perform both **static analysis** and **dynamic analysis** on said binaries. | ||
- | For consistency we recommend you use the provided [[cns:resources:vm|Kali Virtuam Machine]] for all the labs from this point forward. | + | For consistency we recommend you use the provided [[cns:resources:vm|Kali Virtual Machine]] for all the labs from this point forward. |
- | As a bonus the same tasks in this lab are compiled for the ARM architecture, you can use the [[cns:resources:vm|Debian ARM Virtuam Machine]] for these tasks. | + | As a bonus the same tasks in this lab are compiled for the ARM architecture, you can use the [[cns:resources:vm|Debian ARM Virtual Machine]] for these tasks. |
===== Tasks ===== | ===== Tasks ===== | ||
- | All content necessary for the CNS laboratory tasks can be found in [[cns:resources:repo|the CNS public repository]]. | + | All content necessary for the CNS laboratory tasks can be found in [[cns:resources:repo|the CNS public repository]], in the ''labs/01-introduction/'' folder. |
==== 1. even-password ==== | ==== 1. even-password ==== | ||
Line 72: | Line 72: | ||
<code> | <code> | ||
$ # python | $ # python | ||
- | $ python -c 'print ("\x02"*20 + "\x03")' # output 0x02 20 times, followed by 0x03 and a newline | + | $ python -c 'import sys; sys.stdout.buffer.write(b"\x02"*20 + b"\x03")' # output 0x02 20 times, followed by 0x03 and a newline |
$ # perl | $ # perl |