Skip to content

Commit

Permalink
corpus: add H8S, from some microcode distributed by Dell
Browse files Browse the repository at this point in the history
  • Loading branch information
LRGH committed Jan 22, 2019
1 parent 4850abc commit 038f880
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ if you want a translation in English.
[`FR-V`](https://en.wikipedia.org/wiki/FR-V_(microprocessor))
[`FR30`](http://www.fujitsu.com/downloads/MICRO/fma/pdfmcu/hm91101-cm71-10102-2e.pdf)
[`FT32`](https://en.wikipedia.org/wiki/FTDI)
[`H8-300`](https://en.wikipedia.org/wiki/H8_Family)
[`H8-300` `H8S`](https://en.wikipedia.org/wiki/H8_Family)
[`HP-Focus`](https://en.wikipedia.org/wiki/HP_FOCUS)
[`HP-PA`](https://en.wikipedia.org/wiki/PA-RISC)
[`i860`](https://en.wikipedia.org/wiki/Intel_i860)
Expand Down Expand Up @@ -211,3 +211,4 @@ where it seems to be distributed under GPLv3 (or later).
distributed under Creative Commons Zero.
- The binary for 6502 comes from https://raw.githubusercontent.com/RolfRolles/Atredis2018/master/MemoryDump/data-4000-efff.bin
and was distributed for the Atredis BlackHat 2018 challenge, under an unknown licence.
- The binary for H8S comes from https://github.com/airbus-seclab/cpu_rec/issues/4 and was distributed by Dell, under an unknown licence.
2 changes: 2 additions & 0 deletions cpu_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ def build_default_corpus(self, basedir):
# Other 6502 binary, downloaded from https://raw.githubusercontent.com/RolfRolles/Atredis2018/master/MemoryDump/data-4000-efff.bin
# This is not a lot of data, but seems sufficient
self.add_training('6502', file = basedir+'6502/data-4000-efff.bin', section=slice(0x4000,0x4542), repeat=5)
# H8S-2117A from https://github.com/airbus-seclab/cpu_rec/issues/4
self.add_training('H8S', file = basedir+'H8S/bridge7757.mot.bin', section=slice(0x210c,0x1671e))
# OCaml bytecode, having non-standard statistical properties.
self.add_training('OCaml', file = basedir+'OCaml/camlp4')
log.info("Training set of size %d is read; %s different CPUs known", len(self.archs), len(set([_ for _ in self.archs if not _.startswith('_')])))
Expand Down
Binary file added cpu_rec_corpus/H8S.corpus.xz
Binary file not shown.

0 comments on commit 038f880

Please sign in to comment.