From d5e7b073574b501c3382d6af2deba947dc39fa12 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 31 Mar 2020 18:21:49 -0400 Subject: css and js --- docs/docs.css | 29 ++++++++++- docs/guide/type.md | 138 ++++++++++++++++++++++++++++++----------------------- 2 files changed, 105 insertions(+), 62 deletions(-) (limited to 'docs') diff --git a/docs/docs.css b/docs/docs.css index d44e85a3..3b9a5329 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -91,10 +91,17 @@ color: #ccc; color: #fff; } +#light-slider { + background-color: #000; +} #light-slider li, #light-slider img { list-style: none; - margin-left: 0px; +} + +.lslide { + margin: 0px !important; + text-align: center; } .cS-hidden { @@ -109,6 +116,24 @@ ol#taped li#currentline { color: #fff; font-weight: bold; } + ol#taped li { list-style-position: inside; -} \ No newline at end of file +} + + +@media screen and (max-width: 1020px) { + .inline-slides { + flex-wrap: wrap; + } +} + +.inline-slides { + display: flex; + align-items: center; + justify-content: space-between; +} +.inline-slides > #light-slider-container { + margin-left: 10px; + flex-shrink: 1; +} diff --git a/docs/guide/type.md b/docs/guide/type.md index 6ad952ee..f3f091d4 100644 --- a/docs/guide/type.md +++ b/docs/guide/type.md @@ -14,72 +14,90 @@ There are two main ways to interact with types from within a binary view. The fi New to stable version 1.3.2015 is the "Smart Structures" feature. Rather than manually create a type in the type view and then apply it to disassembly, you can create structures directly from disassembly using the `s` hotkey. Consider the following example (created using [taped](http://captf.com/2011/gits/taped) from the 2011 Ghost in the Shellcode CTF if you'd like to play along at home): -
    -
  1. Assembly view of the start of 0x8048e20
  2. -
  3. MLIL view of the same basic block
  4. -
  5. MLIL view after selecting the return of calloc and pressing s
  6. -
  7. MLIL view after selecting the offset and pressing s to turn it into a member access
  8. -
  9. MLIL view after selecting the remaining offsets and pressing s in turn
  10. -
  11. Viewing the structure automatically created after this workflow
  12. -
  13. Selecting the remaining bytes and turning them into an array using 1 to turn them all into uint_8 variables, and then * to turn them all into an array
  14. -
      - -

      Taped 1 of 7

      -
        -
      • - Structure Workflow 1 -
      • -
      • - Structure Workflow 2 -
      • -
      • - Structure Workflow 3 -
      • -
      • - Structure Workflow 4 -
      • -
      • - Structure Workflow 5 -
      • -
      • - Structure Workflow 6 -
      • -
      • - Structure Workflow 7 -
      • -
      +
      +
        +
      1. Assembly view of the start of 0x8048e20
      2. +
      3. MLIL view of the same basic block
      4. +
      5. MLIL view after selecting the return of calloc and pressing s
      6. +
      7. MLIL view after selecting the offset and pressing s to turn it into a member access
      8. +
      9. MLIL view after selecting the remaining offsets and pressing s in turn
      10. +
      11. Viewing the structure automatically created after this workflow
      12. +
      13. Selecting the remaining bytes and turning them into an array using 1 to turn them all into uint_8 variables, and then * to turn them all into an array
      14. +
      + +
      +
        +
      • + Structure Workflow 1 +
      • +
      • + Structure Workflow 2 +
      • +
      • + Structure Workflow 3 +
      • +
      • + Structure Workflow 4 +
      • +
      • + Structure Workflow 5 +
      • +
      • + Structure Workflow 6 +
      • +
      • + Structure Workflow 7 +
      • +
      +
      +
      -- cgit v1.3.1