<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>proof of concept Archives - Tech Antidote</title>
	<atom:link href="https://techantidote.com/tag/proof-of-concept/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>‎ &#124; LINUX &#124; Tech &#124; Security &#124;</description>
	<lastBuildDate>Wed, 10 Jan 2018 06:45:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://techantidote.com/wp-content/uploads/2016/02/cropped-google-plus-profile-picture-32x32.png</url>
	<title>proof of concept Archives - Tech Antidote</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">106369530</site>	<item>
		<title>Spectre Vulnerability Proof of Concept</title>
		<link>https://techantidote.com/spectre-vulnerability-proof-concept/</link>
					<comments>https://techantidote.com/spectre-vulnerability-proof-concept/#comments</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Wed, 10 Jan 2018 01:23:12 +0000</pubDate>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux / Redhat]]></category>
		<category><![CDATA[CVE-2017-5715]]></category>
		<category><![CDATA[CVE-2017-5753]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[meltdown]]></category>
		<category><![CDATA[poc]]></category>
		<category><![CDATA[proof of concept]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[spectre]]></category>
		<guid isPermaLink="false">http://techantidote.com/?p=2487</guid>

					<description><![CDATA[<p>You must have heard the tech industry has been blowing up about Spectre and Meltdown for the past week. Here is a POC for Spectre that you can run in your Server/PC to check if you are vulnerable. -Open up your Linux terminal and run the following: mkdir exploit cd exploit git clone https://github.com/crozone/SpectrePoC.git cd &#8230; <a href="https://techantidote.com/spectre-vulnerability-proof-concept/" class="more-link">Continue reading <span class="screen-reader-text">Spectre Vulnerability Proof of Concept</span> <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://techantidote.com/spectre-vulnerability-proof-concept/">Spectre Vulnerability Proof of Concept</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You must have heard the tech industry has been blowing up about <strong>Spectre</strong> and <strong>Meltdown</strong> for the past week. Here is a POC for Spectre that you can run in your Server/PC to check if you are vulnerable.</p>
<p>-Open up your Linux terminal and run the following:</p>
<pre class="brush: python; collapse: false; title: ; wrap-lines: false; notranslate" title=""><strong>mkdir exploit
cd exploit
git clone https://github.com/crozone/SpectrePoC.git
cd SpectrePoC
</strong></pre>
<p>[<strong>Note</strong>: You would need packages gcc, make, build-essential to test the exploit. You could use &#8220;<em>sudo apt-get install gcc make git build-essential -y</em>&#8221; to install the packages.]</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2522" src="http://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-git.png" alt="spectre exploit git POC git" width="585" height="559" srcset="https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-git.png 585w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-git-300x287.png 300w" sizes="(max-width: 585px) 100vw, 585px" /></p>
<p><strong>[Optional</strong>: Review the spectre.c file and optionally modify the character string.</p>
<p><img decoding="async" class="alignnone size-full wp-image-2513" src="http://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-2-change-string.png" alt="Spectre POC code - change string" width="825" height="612" srcset="https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-2-change-string.png 825w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-2-change-string-300x223.png 300w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-2-change-string-768x570.png 768w" sizes="(max-width: 825px) 100vw, 825px" /></p>
<p><strong>[Optional:</strong> You can change the string between the double quotes. I have changed to the one below for this test]<br />
<img decoding="async" class="alignnone size-full wp-image-2514" src="http://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-modifed-string-3.png" alt="Spectre POC modified string example" width="770" height="559" srcset="https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-modifed-string-3.png 770w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-modifed-string-3-300x218.png 300w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-modifed-string-3-768x558.png 768w" sizes="(max-width: 770px) 100vw, 770px" /></p>
<p>-Finally, compile and run the exploit:</p>
<pre><strong>gcc -o spectre spectre.c
./spectre</strong></pre>
<p>If you see the output which contains the characters that was stored in the <strong>*secret</strong> variable, then you are vulnerable to this exploit.Below is a sample output which indicates that the system is vulnerable to the Spectre vulnerability.</p>
<p><span style="text-decoration: underline;"><strong>Code + Output Screenshot[Please click on the below image and open in a new tab/enarlge for better viewing]</strong></span>: Here, you can see the data (top to bottom in the red box) was read from a address space which the program was actually not allowed to read from.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2524 size-full" src="http://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-output.png" alt="Spectre POC exploit result and output" width="1907" height="921" srcset="https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-output.png 1907w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-output-300x145.png 300w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-output-768x371.png 768w, https://techantidote.com/wp-content/uploads/2018/01/spectre-exploit-output-1024x495.png 1024w" sizes="auto, (max-width: 1907px) 100vw, 1907px" /></p>
<p><span style="text-decoration: underline;"><strong>Output:</strong></span></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-2526 size-full" src="http://techantidote.com/wp-content/uploads/2018/01/exploit-output.png" alt="Spectre exploit POC output" width="793" height="675" srcset="https://techantidote.com/wp-content/uploads/2018/01/exploit-output.png 793w, https://techantidote.com/wp-content/uploads/2018/01/exploit-output-300x255.png 300w, https://techantidote.com/wp-content/uploads/2018/01/exploit-output-768x654.png 768w" sizes="auto, (max-width: 793px) 100vw, 793px" /></p>
<p><span style="text-decoration: underline;">Details of test system:</span></p>
<p><strong>Kernel Version</strong>: 4.10.0-38-generic<br />
<strong>Distro</strong>: Linux Mint 18.3 Sylvia &#8211; 64 bit<br />
<strong>CPU Details:</strong><br />
<strong>Model</strong>: i7-4610M<br />
<strong>cache size</strong>: 4096 KB<br />
<strong>fpu</strong>: yes<br />
<strong>fpu_execution</strong>: yes<br />
<strong>clflush_size</strong>: 64<br />
<strong>cache_alignment</strong>: 64<br />
<strong>address sizes</strong>: 39 bits physical, 48 bits virtual</p>
<p><span style="color: #0000ff;"><strong>All credits go to the researchers who discovered and reported this issue</strong></span> =&gt; <strong>Jan Horn and Paul Kocher</strong> (along with Daniel Genkin, Daniel Gruss, Werner Haas, Mike Hamburg,Moritz Lipp, Stefan Mangard, Thomas Prescher, Michael Schwarz and Yuval Yarom).</p>
<p>A white paper on the exploit can be downloaded by clicking <a href="https://spectreattack.com/spectre.pdf" target="_blank" rel="noopener">here</a>.</p>
<p>If you liked this article, click on the &#8216;<strong>Like</strong>&#8221; button and Subscribe to my blog to get future updates. <strong>Cheers!</strong></p>
<p><span style="text-decoration: underline;"><strong>Sources, Credits &amp; References:</strong></span></p>
<p><a href="https://gist.github.com/ErikAugust/724d4a969fb2c6ae1bbd7b2a9e3d4bb6" target="_blank" rel="noopener">Erik August</a><br />
<a href="https://github.com/crozone/SpectrePoC" target="_blank" rel="noopener">crozone github</a><br />
<a href="https://googleprojectzero.blogspot.com/2018/01/reading-privileged-memory-with-side.html">Google Project Zero</a><br />
<a href="https://spectreattack.com/">SpectreAttack</a></p>
<p>The post <a href="https://techantidote.com/spectre-vulnerability-proof-concept/">Spectre Vulnerability Proof of Concept</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techantidote.com/spectre-vulnerability-proof-concept/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2487</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: techantidote.com @ 2026-11-18 00:24:21 by W3 Total Cache
-->