mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-07-06 20:47:55 +02:00
98 lines
4.1 KiB
XML
98 lines
4.1 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800">
|
|
<style>
|
|
.bg{fill:#0a0a0f}.pnl{fill:#12121a;stroke:#1a1a2e}.hdr{fill:#12121a}
|
|
.title{font:bold 42px 'Courier New',monospace;fill:#00ff41}
|
|
.sub{font:bold 28px 'Courier New',monospace;fill:#00d4ff}
|
|
.txt{font:24px 'Courier New',monospace;fill:#c0c0c0}
|
|
.dim{font:20px 'Courier New',monospace;fill:#888}
|
|
.grn{font:bold 24px 'Courier New',monospace;fill:#00ff41}
|
|
.red{font:bold 24px 'Courier New',monospace;fill:#ff0040}
|
|
.cyn{font:bold 24px 'Courier New',monospace;fill:#00d4ff}
|
|
.amb{font:bold 24px 'Courier New',monospace;fill:#ffaa00}
|
|
.badge{stroke:#00ff41;rx:14}
|
|
</style>
|
|
<rect class="bg" width="1200" height="800"/>
|
|
<rect class="hdr" x="0" y="0" width="1200" height="100" rx="0"/>
|
|
<text class="title" x="600" y="52" text-anchor="middle">Operators & DHT11 Hacking</text>
|
|
<text class="dim" x="600" y="88" text-anchor="middle">Operators, DHT11, IEEE-754, and Hacking</text>
|
|
|
|
<!-- Left: 6 Operator Types -->
|
|
<rect class="pnl" x="30" y="110" width="555" height="280" rx="8"/>
|
|
<text class="sub" x="50" y="150">6 Operator Types</text>
|
|
|
|
<text class="grn" x="50" y="185">Arithmetic</text>
|
|
<text class="dim" x="260" y="185">x * y = 50</text>
|
|
|
|
<text class="grn" x="50" y="215">Increment</text>
|
|
<text class="dim" x="260" y="215">x++ returns 5, x becomes 6</text>
|
|
|
|
<text class="grn" x="50" y="245">Relational</text>
|
|
<text class="dim" x="260" y="245">(6 > 10) = false</text>
|
|
|
|
<text class="grn" x="50" y="275">Logical</text>
|
|
<text class="dim" x="260" y="275">false && true = false</text>
|
|
|
|
<text class="grn" x="50" y="305">Bitwise</text>
|
|
<text class="dim" x="260" y="305">6 << 1 = 12</text>
|
|
|
|
<text class="grn" x="50" y="335">Assignment</text>
|
|
<text class="dim" x="260" y="335">x += 5 = 11</text>
|
|
|
|
<text class="dim" x="50" y="370">Post-increment: use THEN increment</text>
|
|
|
|
<!-- Right: Key Addresses -->
|
|
<rect class="pnl" x="615" y="110" width="555" height="280" rx="8"/>
|
|
<text class="sub" x="635" y="150">Key Addresses</text>
|
|
|
|
<text class="cyn" x="635" y="190">0x10000000</text>
|
|
<text class="dim" x="870" y="190">Vector table</text>
|
|
|
|
<text class="cyn" x="635" y="225">0x10000004</text>
|
|
<text class="dim" x="870" y="225">Reset_Handler addr</text>
|
|
|
|
<text class="cyn" x="635" y="260">0x10000234</text>
|
|
<text class="dim" x="870" y="260">main()</text>
|
|
|
|
<text class="cyn" x="635" y="295">0x10000410</text>
|
|
<text class="dim" x="870" y="295">Humidity vfma</text>
|
|
|
|
<text class="cyn" x="635" y="330">0x10000414</text>
|
|
<text class="dim" x="870" y="330">Temp vfma</text>
|
|
|
|
<text class="red" x="635" y="365">0x1000042C</text>
|
|
<text class="dim" x="870" y="365">0.1f constant (hack)</text>
|
|
|
|
<!-- IEEE-754 -->
|
|
<rect class="pnl" x="30" y="410" width="555" height="160" rx="8"/>
|
|
<text class="sub" x="50" y="450">IEEE-754 Format</text>
|
|
<text class="txt" x="50" y="485">S(1) + Exp(8) + Mantissa(23)</text>
|
|
<text class="dim" x="50" y="515">(-1)^S x (1+M) x 2^(E-127)</text>
|
|
<text class="dim" x="50" y="545">0.1f = 0x3dcccccd = cd cc cc 3d</text>
|
|
|
|
<!-- Hack Workflow -->
|
|
<rect class="pnl" x="615" y="410" width="555" height="160" rx="8"/>
|
|
<text class="sub" x="635" y="450">Hack Workflow</text>
|
|
<text class="txt" x="635" y="485">1. Analyze in Ghidra</text>
|
|
<text class="txt" x="635" y="515">2. Find float at 0x42C</text>
|
|
<text class="txt" x="635" y="545">3. Patch cd cc cc 3d</text>
|
|
|
|
<!-- Bottom: Steps -->
|
|
<rect class="pnl" x="30" y="590" width="1140" height="170" rx="8"/>
|
|
<text class="sub" x="50" y="630">Binary Hacking Steps</text>
|
|
|
|
<text class="amb" x="50" y="665">Analyze</text>
|
|
<text class="txt" x="200" y="665">--></text>
|
|
<text class="amb" x="260" y="665">Identify</text>
|
|
<text class="txt" x="410" y="665">--></text>
|
|
<text class="amb" x="470" y="665">Offset</text>
|
|
<text class="txt" x="600" y="665">--></text>
|
|
<text class="amb" x="660" y="665">Patch</text>
|
|
<text class="txt" x="790" y="665">--></text>
|
|
<text class="amb" x="850" y="665">Export</text>
|
|
<text class="txt" x="990" y="665">--></text>
|
|
<text class="amb" x="1050" y="665">Test</text>
|
|
|
|
<text class="dim" x="50" y="700">Project: 0x001a_operators</text>
|
|
<text class="dim" x="50" y="730">Source: 0x001a_operators.c with DHT11 sensor on GPIO 4</text>
|
|
</svg>
|