<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Noë Flatreaud on Medium]]></title>
        <description><![CDATA[Stories by Noë Flatreaud on Medium]]></description>
        <link>https://medium.com/@nflatrea?source=rss-1d29eda8523f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O82RnK9P4Db7XKljdgkHyg.png</url>
            <title>Stories by Noë Flatreaud on Medium</title>
            <link>https://medium.com/@nflatrea?source=rss-1d29eda8523f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:34:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nflatrea/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Lua is so underrated]]></title>
            <link>https://nflatrea.medium.com/lua-is-so-underrated-371bfc7724ed?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/371bfc7724ed</guid>
            <category><![CDATA[lua]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 15:10:20 GMT</pubDate>
            <atom:updated>2024-12-28T15:10:20.212Z</atom:updated>
            <content:encoded><![CDATA[<p>The more I learn about Lua’s design and implementation, the more impressed I am. It’s very rare to see software that does so much with so little code.</p><p>Unfortunately, Lua doesn’t have the same level of marketing and hype as some other languages. This lack of promotion means that fewer developers are aware of Lua’s capabilities and benefits. It is often perceived as a niche language, primarily used in gaming and embedded systems.</p><p>Consequently, Lua may not receive the attention it deserves, even though it has a lot to offer ;</p><h4>Lua is easy to understand</h4><p>Lua is a free, reflexive and imperative scripting language. Created in 1993, designed to be embedded within other applications to extend them. The interpreter was developed by Brazillian engineers and has been updated many times since.</p><p>Its design is clean, and the code is fast.</p><p>The C API is easy to use and gives good performance, and yet encapsulates enough of the VM’s implementation that C modules are source and binary compatible with both Lua and LuaJIT. Its syntax is clean and minimalistic, making it accessible even for beginners, yet is incredibly easy to master.</p><h4>Lua is extremely embeddable.</h4><p>Lua is designed to be easily embedded into applications written in other languages, particularly C and C++. This makes it an excellent choice for scripting and extending games and embedded applications. In C for example, embedding Lua is as :</p><pre><br>#include &lt;lua.h&gt;<br>#include &lt;lauxlib.h&gt;<br>#include &lt;lualib.h&gt;<br><br>int main() {<br>  lua_State *L = luaL_newstate();<br>  luaL_openlibs(L);<br>  luaL_dofile(L, &quot;./myscript.lua&quot;);<br>  lua_close(L);<br>  return 0;<br>}</pre><h4>Multi-paradigm support</h4><p>Standalone or with the right libraries, Lua supports multiple programming paradigms, including imperative, functional, and object-oriented programming. This flexibility does allow us to use the one that best suits our needs.</p><p>Yet, not everything might suit everyone…</p><h4>Indexing conventions</h4><p>In Lua, indexing generally starts at index 1, but is a convention. Arrays can be indexed by 0, negative numbers, or any other value (anything but nil). Lua does not really have arrays in the sense of sequences. There’s just tables, and the tables are always key-value hashes.</p><blockquote><strong>NB</strong> : The standard library for tables and built-in like ipairs assume array-like tables with indexes starting at 1. So, for nearly all practical purposes, you probably want to index your array-like tables starting at 1.<br><a href="https://lobste.rs/s/jf4in1/lua_is_so_underrated#c_gcmsph">https://lobste.rs/s/jf4in1/lua_is_so_underrated#c_gcmsph</a></blockquote><h4>Error handling</h4><p>While I personally like how Lua handles errors, it might be less intuitive for developers coming from other languages. In Lua, errors may be handled as values, just like in Go :</p><pre>function risky_function()<br>  error(&quot;Something went wrong!&quot;)<br>end<br><br>local status, err = pcall(risky_function)<br><br>if not status then<br>  print(&quot;Error: &quot; .. err)<br>end</pre><h4>Nil-Terminated Arrays</h4><p>The one that bothers me the most, might be the fact that arrays (tables used as arrays) are nil-terminated, meaning the end of the array is marked by a nil value. This can lead to unexpected behavior if not handled properly:</p><pre>local arr = {10, 20, 30, nil, 50}<br><br>for i, v in ipairs(arr) do<br>  print(v) - Output: 10, 20, 30 (nil terminates the array)<br>end</pre><p>The `ipairs` function stops iterating when it encounters a nil value, which can be surprising if you expect it to continue iterating over the entire table. If you suspect your sequence to have gaps, you should avoid using `ipairs`. Instead, you can use `pairs` (or `next`) to get at the whole set of items without stopping at the first nil.</p><h4>TLDR ;</h4><p>Lua is a powerful, efficient, and versatile programming language that deserves more recognition. Its simplicity, embeddability, and performance make it an excellent choice for a wide range of applications like games and embedded systems. However, it may be viewed as a niche language and competition from more popular languages may have contributed.</p><p>If you’re looking for a straightforward, efficient scripting language, just give it a try, you’d be surprised.</p><p><em>Lua is used in nvim for plugins since 0.5.0, you bet it’s efficient !</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=371bfc7724ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2 ¹³⁶²⁷⁹⁸⁴¹ - 1 is Prime !]]></title>
            <link>https://nflatrea.medium.com/2-%C2%B9%C2%B3%E2%81%B6%C2%B2%E2%81%B7%E2%81%B9%E2%81%B8%E2%81%B4%C2%B9-1-is-prime-00772b4bf35b?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/00772b4bf35b</guid>
            <category><![CDATA[prime-numbers]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[mersenne-prime]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Wed, 23 Oct 2024 16:42:58 GMT</pubDate>
            <atom:updated>2024-10-23T16:43:44.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SA7HId2PAWNJsbvrf6zKg.png" /></figure><h3>2 ¹³⁶²⁷⁹⁸⁴¹ - 1 is Prime !</h3><h3>Mersenne Prime Number discovery</h3><p>8816943275038332655539391003781173589712073545090660410671563764124226306947568414417259903477232831088375097399597768741641186106798957685533486472399520506079844922872135806124407652553947877500043953475017015497457628341029584810238352553521922001801984985521368228935442123373194104843685193736508609493602871131747101857143206470819983730614862878257124301338862520617391027430764695418172448981500830593725972817584347196930450501601062420511524139611706375859581853972235578132879151283280188390576132099383890565829665055240913834318355222765774891177966975003109329409338674423161934835120255151308427150097668052460299803048486048403202837881227404218937078614698622508383318025612408295292909170788443657204950258082123770056006503434172356329958086453317888189489081714858172517220127620179692376318258610620732850005640787647953566591967819045075816046329387883686479641978056945882551643497172451966966844890200336467664985643635857298544158284931783349632302774755550728620334625482940875281953177151254853423625353298357223118900219491658652158320…</p><p>The <a href="https://mersenne.org/">Great Internet Mersenne Prime Search (GIMPS)</a> has discovered the largest known prime number, 2 ¹³⁶²⁷⁹⁸⁴¹ — 1, having <a href="https://www.mersenne.org/primes/digits/M136279841.zip">41,024,320 decimal digits</a>. Luke Durant, from San Jose, California, found the prime on October 12th.</p><p>The new prime number, also known as M136279841, is calculated by multiplying together 136,279,841 twos, and then subtracting 1. It is over 16 million digits larger than the <a href="https://www.mersenne.org/primes/?press=M82589933">previous record prime number</a>, in a special class of extremely rare prime numbers known as Mersenne primes. It is only the 52nd known Mersenne prime ever discovered, each increasingly more difficult to find.</p><p>Mersenne primes were named for the French monk <a href="https://en.wikipedia.org/wiki/Marin_Mersenne">Marin Mersenne</a>, who studied these numbers more than 350 years ago.</p><p><a href="https://www.mersenne.org/primes/?press=M136279841">https://www.mersenne.org/primes/?press=M136279841</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00772b4bf35b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eavesdropping on HDMI using RTL-SDR and TempestSDR]]></title>
            <link>https://radiohackers.com/eavesdropping-on-hdmi-using-rtl-de-voussdr-and-tempestsdr-b173f8cbf0f5?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b173f8cbf0f5</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[radio]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 12:38:50 GMT</pubDate>
            <atom:updated>2026-09-16T13:02:38.441Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7aLPh2iEqcDezr4sK_vGCg.png" /></figure><p><em>Update 09/16/2026 :: Some of you kept asking me for technical details about HDMI eavesdropping, so I updated this post with deeper explanations</em></p><p><strong>TEMPEST</strong>, also known as<strong> Van Eck Phreaking</strong>, is a very fun technique used to eavesdrop on electronic devices by capturing their unintentional radio frequency (RF) emissions. These emissions, known as electromagnetic interference (EMI), are a byproduct of the electronic processes within the device and can carry information about what the device is displaying or processing. <a href="https://en.wikipedia.org/wiki/Tempest_(codename)">https://en.wikipedia.org/wiki/Tempest_(codename)</a></p><p>HDMI, for example, is a popular media source for delivering video, audio, all in the same stream. Unfortunately, there is massive interference from it when a neighboring SDR is near it and can disrupt receiving to a great degree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UEJAiHmDfcUBPpqY.png" /><figcaption><a href="https://www.sigidwiki.com/images/3/3c/Annotation_2020-06-03_221820.png">Picture of HDMI RFI spectrum and waterfall with annotation (sigwiki.com)</a></figcaption></figure><p>By analyzing these signals using a Software Defined Radio (SDR), it’s possible to reconstruct the image being displayed on the monitor. You can find harmonics from <strong>742 Hz to 445.5 MHz</strong> and have the main leaked signal around <strong>148.35 MHz, 148.5 MHz, 296.7 MHz, 297 MHz, 445.5 MHz, 742.5 Hz,445.05 MHz</strong> depending on the screen resolution.</p><h3>How HDMI Signals Leak Electromagnetic Energy</h3><h4>Signal Transmission in HDMI</h4><p>HDMI transmits three primary types of information:</p><ul><li><strong>Pixel color data </strong>(red, green, blue channels)</li><li><strong>Encoded audio</strong> (digital sound streams)</li><li><strong>Timing and auxiliary information</strong> (clock synchronization, control signals)</li></ul><p>These are carried over <strong>Transition Minimized Differential Signaling</strong> (TMDS) channels, which use differential pairs to reduce noise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GyuevcgNu8cGDZmgj6dqcA.png" /><figcaption>Schematic of a TMDS link used as a link for digital component video data (RGB) between a video controller (PC) and a display controller (Monitor) in interfaces such as DVI or HDMI</figcaption></figure><p>However, this high-speed digital signaling necessarily radiates electromagnetic energy, especially at harmonics of the pixel clock frequency. <a href="https://en.wikipedia.org/wiki/Transition-minimized_differential_signaling">https://en.wikipedia.org/wiki/Transition-minimized_differential_signaling</a></p><h4>About HDMI cables</h4><p>HDMI cables are <strong>triple-shielded</strong>, mainly to minimize interference. But this shielding is designed to prevent <strong>external</strong> interference from reaching the signal rather than to contain <strong>internal</strong> radiations. The cable includes <strong>TMDS channels</strong> 0,1,2 (red, green, and blue), <strong>TMDS</strong> clock, a <strong>CEC</strong> (Consumer Electronics Control) line for 5V detection and identification data and an optional high-speed data link</p><p>HDMI cables have characteristic impedance ~100Ω, but this varies due to:</p><ul><li>Manufacturing tolerances in trace width and spacing</li><li>Connector transitions (impedance jumps at connectors)</li><li>Cable bends (changing geometry)</li></ul><p>The issue is that even shielded cables leaks, and they leak at frequencies determined by the pixel clock and resolution, allowing us reconstruction of the data from a non negligible distance.</p><p>So when the signal encounters impedance discontinuities is creates reflections. These reflections create standing waves and resonances that radiate.</p><p>You can estimate where an HDMI signal will leak, using this formula:</p><p><strong>Pixel frequency</strong> =<strong> screen_W</strong> * <strong>screen_H</strong> * <strong>refresh_rate</strong></p><p>Where:</p><p><strong>refresh_rate</strong> is in Hz (typically 60 Hz)<br><strong>screen_W, screen_H </strong>are the active width and height resolutions plus blanking intervals</p><blockquote>Note that screen_W and screen_H must be <em>greater than</em> the screen resolution because video signals include blanking intervals :: These add extra time for the monitor to synchronize its oscillator, calibrate colors, and allow CRT electron beams to return to the start of the next line. Those blanking intervals were standardized by the Video Electronics Standards Association (VESA).</blockquote><p>Here’s an example :</p><p>For an ultra-HD 1920x1080@60Hz monitor:</p><pre>fpixel​ = 2080 * 1125 * 60 = 140.4 MHz</pre><p>where 2080x1125 are the real pixel dimensions including blanking.</p><p>This means the fundamental leaked signal appears around 140.4MHz, amplitude decreases as 1/n, so odd harmonics are stronger. The first odd harmonic that we can verify is the third one, around 445.05MHz.</p><h3>Eavesdropping using TempestSDR</h3><h4>Prerequisites</h4><ol><li><strong>RTL-SDR</strong>: Any cheap and widely available SDR device.</li><li><strong>TempestSDR</strong>: Software for reconstructing images from EMI.</li></ol><h4>Step-by-Step Guide</h4><p>For this example, I’m using <a href="https://cemaxecuter.com/">DragonOS</a>, an all-in-one RF Distribution with TempestSDR already packaged.</p><p><strong>Connect Your RTL-SDR Dongle</strong></p><p>Plug your RTL-SDR dongle into a USB port on your computer.<br>Verify that the dongle is recognized by running: $ rtl_test</p><p><strong>Run TempestSDR</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8gUHZKAfu-rs3CMw.png" /></figure><p>To use the software, you should ideally know the resolution and refresh rate of your target monitor (ex. <strong>1280x1024 @ 60Hz</strong>). You can use auto-correlation graphs which actually help to predict the detected resolution and frame rate. Just click on the peaks.</p><p>Also, you will need to know the frequency that your monitor unintentionally emits at. The latter is typically in the range shown above, but you can still browse around in <strong>Gqrx</strong> or <strong>SDR++</strong> looking for interference peaks changing based on the shown image.</p><blockquote>A tip to improving images is to increase the “Lpass” option and to watch that the auto FPS search doesn’t deviate too far from your expected frame rate. If it goes too far, reset it by re-selecting your screen resolution.</blockquote><blockquote>Also, The closer you are to the target device, the stronger the signal will be. Using a better antenna can significantly improve signal reception and different devices may emit signals at different frequencies.</blockquote><p>Clear images were obtained with a antenna used in the same room as the monitor. Behind a wall the images on the monitor could still be received, but were too blurry to make anything out. Possibly a higher gain directional antenna could improve that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b173f8cbf0f5" width="1" height="1" alt=""><hr><p><a href="https://radiohackers.com/eavesdropping-on-hdmi-using-rtl-de-voussdr-and-tempestsdr-b173f8cbf0f5">Eavesdropping on HDMI using RTL-SDR and TempestSDR</a> was originally published in <a href="https://radiohackers.com/">Radio Hackers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding POCSAG using Gqrx & RTL-SDR]]></title>
            <link>https://radiohackers.com/decoding-pocsag-using-gqrx-rtl-sdr-4f4e4fe1c10b?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f4e4fe1c10b</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[sdr]]></category>
            <category><![CDATA[radio]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 14:09:04 GMT</pubDate>
            <atom:updated>2024-10-07T05:22:28.801Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGQt8aJAbp_KRPqsbeeg_w.jpeg" /></figure><p>Recent events, involving Hezbollah, Mossad and the explosion of thousands of trapped pagers, sparked my interest in learning more about the POCSAG protocol and its decoding process.</p><p>In this article we’ll find out POCSAG pager protocol specifications, behaviour and how to sniff it.</p><h3>POC-what ?</h3><p><strong>POCSAG (Post Office Code Standardisation Advisory Group) </strong>also known as <strong>Radio Paging Code №1</strong> or <strong>RPC1</strong> is a one-way <a href="https://en.wikipedia.org/wiki/Frequency-shift_keying">2FSK</a> paging protocol that supports 512, 1200, and 2400 bps speed. Transmissions can include tone, numeric, and alphanumeric data. The protocol uses FSK modulation with a ±4.5 kHz shift on the center carrier, where a +4.5 kHz shift represents a 0 and a -4.5 kHz shift represents a 1. You can find POCSAG signals on the VHF or UHF band and 12.5 or 25 kHz channel spacing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*gw44xyHGr8V0UN6jB5hO0A.png" /><figcaption>Typical 2 &amp; 4 FSK Power Spectrum you’d find</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Sq8wcwdIHgQoaxxE" /><figcaption>Here is an example POCSAG signal waterfall (right) and it’s decoded messages (left)</figcaption></figure><h3>Frequencies</h3><p>POCSAG pagers operate on various frequencies depending on the region. Here are some common frequency ranges:</p><ul><li><strong>HF-High/VHF-Low Band</strong>: 25 MHz — 54 MHz</li><li><strong>VHF Mid Band</strong>: 66 MHz — 88 MHz</li><li><strong>VHF High Band</strong>: 138 MHz — 175 MHz</li><li><strong>UHF</strong>: 406 MHz — 422 MHz</li><li><strong>UHF High</strong>: 435 MHz — 512 MHz</li><li><strong>‘900’ Band</strong>: 929 MHz — 932 MHz</li></ul><p>You can find each specific frequency by region and service on <a href="https://www.sigidwiki.com/wiki/POCSAG">https://www.sigidwiki.com/wiki/POCSAG</a></p><h3>Required Hardware and Software</h3><ul><li><strong>RTL-SDR Dongle</strong>: A USB dongle capable of receiving frequencies from 500 kHz up to 1.75 GHz.</li></ul><p>In principle, any software defined radio (SDR) covering a frequency range up to 800 MHz should be suitable to monitor POCSAG communication. This also includes cheap RTL-SDR USB sticks. The RTL-SDR was initially produced as DVB-T tuner and is available for around 25€.</p><ul><li><strong>Gqrx</strong>: An open-source software-defined radio receiver.</li><li><strong>Sox</strong>: A command-line audio processing tool.</li><li><strong>Multimon-ng</strong>: A tool for decoding various digital radio protocols, including POCSAG.</li></ul><p>For this tutorial, I am using <a href="https://cemaxecuter.com/">Dragon OS,</a> an all-in-one GNU/Linux distribution dedicated to radio hacking and wireless activities, but you can install it standalone.</p><h3>Setting Up Gqrx</h3><p><strong>Launch Gqrx</strong>: Open the Gqrx application.</p><p><strong>Configure the RTL-SDR Dongle</strong>: Select your RTL-SDR device from the input controls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*ZmtDi9htCQL_zGBfq4jglg.png" /><figcaption>Make sure that your Audio output is sampled at 48 kHz.</figcaption></figure><p><strong>Enable UDP Server</strong>: Go to the “Input Controls” tab and enable the UDP server. Set the port to 7355.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*HBj5_VqrnoU-uXKwc__jpA.png" /><figcaption>The remote host and port number are configurable.</figcaption></figure><p>Once configured, you can start streaming signals.</p><figure><img alt="https://www.cemocom.de/tag/pocsag/" src="https://cdn-images-1.medium.com/max/1024/0*muRcITz49LHYI-OT" /></figure><p>You can verify the data is coming through at the opposite end using <a href="http://netcat.sourceforge.net/">netcat</a>:</p><pre>$ nc -l -u 7355</pre><p>You should see a lots of symbols scroll through the terminal that you can pipe to the next tool.</p><h3>Capturing and Decoding the Signal</h3><p>You task now is to capture the signal received from the RTL-SDR in <strong>Gqrx</strong> piped through the UDP Socket on port <strong>7355.</strong></p><p>Multimon-ng helps us identify and decode the <strong>POCSAG</strong> signals in various speeds (512,1200 and 2400 bps), <strong>sox</strong> resamples our audio signal from 44100 to 48000 bauds for signal processing.</p><p>Use the following command to capture the signal from <strong>Gqrx</strong> and decode it using <strong>Multimon-ng</strong>:</p><pre>$ nc -l -u localhost 7355 | sox -t raw -esigned-integer -b16 -r 48000 - -t raw -esigned-integer -b16 -r 22050 - | multimon-ng -t raw -a POCSAG512 -a POCSAG1200 -a POCSAG2400 -f alpha -e  --timestamp -</pre><p>You’d normally be able to receive plaintext messages from nearby emergencies &amp; firefighters</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBd4vBVubtkxDEmn4_zBpQ.png" /></figure><h4>Hooray, you just sniffed and decoded paging activity ❤</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f4e4fe1c10b" width="1" height="1" alt=""><hr><p><a href="https://radiohackers.com/decoding-pocsag-using-gqrx-rtl-sdr-4f4e4fe1c10b">Decoding POCSAG using Gqrx &amp; RTL-SDR</a> was originally published in <a href="https://radiohackers.com/">Radio Hackers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spoofing GPS Coordinates using HackRF One]]></title>
            <link>https://radiohackers.com/spoofing-gps-coordinates-using-hackrf-one-9f8e42070ef1?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f8e42070ef1</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[spoofing]]></category>
            <category><![CDATA[hijacking]]></category>
            <category><![CDATA[radio]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 21:24:11 GMT</pubDate>
            <atom:updated>2024-10-02T15:52:24.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4KUAd_E7BynATaRscrpk0g.png" /><figcaption><a href="https://hackaday.com/2022/05/23/knowing-your-place-the-implications-of-gps-spoofing-and-jamming/">Credit</a> : Knowing Your Place: The Implications Of GPS Spoofing And Jamming by <a href="https://hackaday.com/author/mayaposch/">Maya Posch</a></figcaption></figure><p>For quite some time now, I have tried my best to show and explain how fantastic RF is and how dangerous it can be. Especially when it comes to exploiting it…</p><p>Also, from navigation systems to time synchronization, our reliance on GPS makes it a prime target for bad actors and pirates (I mean… literally)</p><p>In this blog post, I’d like to show you how GPS and GNSS works and how to hijack it using a cheap devices like <a href="https://greatscottgadgets.com/hackrf/one/">HackRF One</a></p><p>At this point and before continuing, the broadcast of ANY type of radio signal in ANY scenario where there is no prior and explicit authorization is totally prohibited and punishable by law. <strong>I am NOT responsible for your mess.</strong></p><p>So, let me introduce you to the Elephant in the room,</p><h3>What is GPS and GNSS ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Suq2HaA7N_DmuTDAsXwjkQ.png" /><figcaption>The three main GNSS Constellations and their features</figcaption></figure><h4>GPS (Global Positioning System)</h4><p>GPS is a satellite-based radio navigation system developed by the United States Department of Defense. It consists of a constellation of at least<strong> 24 satellites</strong> at around <strong>20,000 km</strong> providing global coverage. These satellites transmit signals that GPS receivers use to determine their <strong>location</strong>, <strong>speed</strong>, and <strong>time</strong>.</p><h4>GNSS (Global Navigation Satellite System)</h4><p>GNSS is more of a broader term that encompasses all satellite navigation systems, including <strong>GPS</strong> (USA), <strong>GLONASS</strong> (Russia), <strong>Galileo</strong> (Europe), and <strong>BeiDou</strong> (China). These systems provide similar functionalities but are operated by different countries.</p><p><a href="https://www.youtube.com/watch?v=a1X6z43ireM&amp;pp=ygUOZ25zcyBleHBsYWluZWQ%3D">https://www.youtube.com/watch?v=a1X6z43ireM&amp;pp=ygUOZ25zcyBleHBsYWluZWQ%3D</a></p><h3>How does the “positioning” works</h3><p>GNSS has two main uses, <strong>timing</strong> and <strong>positioning</strong>.</p><p>The so called, “absolute position” of an object is calculated using its <strong>latitude</strong> (distance from the equator), <strong>longitude</strong> (distance from the Greenwich meridian) and <strong>elevation</strong> above (or below) mean sea level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X14g9v3GYbBgK9m8wxmAzA.gif" /><figcaption><strong>Trilateration</strong> animated (<a href="https://www.advancednavigation.com/wp-content/uploads/2023/03/GNSS_trilateration.gif">https://www.advancednavigation.com</a>)</figcaption></figure><p>GNSS (and GPS) positioning relies on <strong>trilateration</strong>, a mathematical process that determines the location of a receiver by measuring its distance from multiple satellites.</p><ul><li>The signal from a<strong> single satellite</strong> provides a general location AROUND the perimeter of a circular area.</li><li><strong>With a second satellite</strong>, its coverage will overlap part of the first one. Meaning that the receiver is at one of the two points of intersection.</li><li><strong>Using a third one</strong>, the point of intersection of all three areas will be the location we search.</li><li><strong>Finally, adding a fourth one </strong>can help determine elevation or altitude.</li></ul><blockquote><strong>TLDR</strong>, With distances from at least four satellites, the receiver can determine its three-dimensional position (latitude, longitude, and altitude) and the current time.</blockquote><h3>Frequencies and signals</h3><p>The signals sent from the satellites in space to the GNSS receivers vary in structure and frequency. Different frequencies can be used for different senarios. Example, some frequencies are better suited to pass through trees due to the different wavelengths.</p><p>Here are some examples of <strong>Ultra High Frequencies</strong> (UHF) used by different GNSS Systems:</p><ul><li><strong>GPS</strong> (L1) 1575.42 MHz, (L2) 1227.60 MHz and (L5) 1176.45 MHz</li><li><strong>GLONASS</strong> (L1) 1602.0 MHz, (L2) 1246.0 MHz and (L3) 1202.025 MHz</li><li><strong>Galileo </strong>(E1) 1575.42 MHz, (E5a) 1176.45 MHz, (E5b) 1207.14 MHz and (E6) 1278.75 MHz</li><li><strong>BeiDou</strong> : (E1) 1575.42 MHz, (E2) 1561.098 MHz, (E5B) 1207.14 MHz and (E6) 1268.52 MHz</li></ul><p>The different modulation methods are designed to maximise the signal-to-noise ratio during de-modulation, whilst simultaneously avoiding interference from others.</p><h3>Why is GPS Spoofing Dangerous ?</h3><p>GPS spoofing involves transmitting false GPS signals to deceive a receiver into believing it is at a different location. This can have severe consequences in the navigation system, time synchronization etc…</p><p>Vehicles, ships, and drones can be misled and hijacked, Critical infrastructure, such as power grids and telecommunication networks, can be desynchronised in time. Military operations can be compromised and the list goes on… <strong>So don’t f*ck with radio waves !</strong></p><h3>How to Spoof GPS Coordinates Using HackRF One</h3><h4>Requirements</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZX2xGLeBcWPa_3mIEI8UQ.png" /></figure><ul><li><strong>A </strong><a href="https://greatscottgadgets.com/hackrf/one/"><strong>HackRF One</strong></a><strong> </strong>or any software-defined radio (SDR) device capable of transmitting and receiving radio signals up to 3GHz</li><li><strong>A Linux laptop</strong> or any device that can use Linux (NetHunter, Termux)</li><li><a href="https://github.com/osqzss/gps-sdr-sim"><strong>GPS-SDR-SIM</strong></a>: A software tool for simulating GPS signals.</li><li><strong>hackrf_transfer</strong>: A command-line tool for <strong>HackRF</strong> devices</li></ul><h3>Let the show begin !</h3><p><strong>1. Install GPS-SDR-SIM</strong></p><p>First, install the necessary dependencies and compile <strong>GPS-SDR-SIM</strong>:</p><pre>$ sudo apt install git build-essential libfftw3-dev<br>$ git clone https://github.com/osqzss/gps-sdr-sim.git<br>$ cp gps-sdr-sim &amp;&amp;</pre><p><strong>2. Install hackrf_transfer</strong></p><p>Install the HackRF tools:</p><pre>$ sudo apt install hackrf</pre><p><strong>3. Generate GPS Signal</strong></p><p>Use <strong>GPS-SDR-SIM</strong> to generate a GPS simulation file. For example, to simulate a location in Москва (Moscow) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*ZGAPCvHGPN4193tpoxYd6w.png" /></figure><pre>$ ./gps-sdr-sim -b 8 -e brdc2570.24n -l 55.7558,37.6176,156 -o gps.bin</pre><blockquote>Note: The <a href="https://cddis.nasa.gov/archive/gnss/data/daily/2024/brdc/brdc2570.24n.gz">brdc2570.24n</a> file is the daily GPS ephemeris file that can be downloaded from NASA’s CDDIS archive</blockquote><p><strong>4. Transmit the GPS Signal</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*AjVX5wTNzusXXdsZ" /></figure><p>We can <strong>now use hackrf_transfer</strong> to transmit the generated GPS signal through one of the four sattelites needed to <strong>trilaterate</strong>:</p><p>The command may need a some explanation :</p><pre>$ hackrf_transfer -t gps.bin -f 1575420000 -s 2600000 -a 1 -x 0</pre><ul><li><strong>-t gps.bin </strong>: Specifies the input file we built before</li><li><strong>-f 1575420000 </strong>: Sets the transmission frequency to 1575.42 MHz (GPS L1 frequency as shown in the first part above).</li><li><strong>-s 2600000 </strong>: Sets the sample rate to 2.6 MHz.</li><li><strong>-a 1 </strong>: Enables the amplifier.</li><li><strong>-x 0 :</strong> Sets the transmit gain to 0 dB.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*6Si8OoKtOOPhUinLdhTvBg.png" /></figure><p>After transmitting the signal, check the location, on a GPS-enabled device. <strong>It should display the spoofed location. YAY!</strong></p><h3>Possible Countermeasures</h3><p>To mitigate the risks of GPS spoofing, several countermeasures can be employed :</p><ul><li><strong>Signal Monitoring </strong>: The most basic and most efficient, just monitor sudden changes in signal strength and time jumps.</li><li><strong>Encrypted Signals</strong>: Even tho it’s still not very used, you can use encrypted GPS channels for critical applications.</li><li><strong>GNSS Firewalls</strong>: You may want to deploy hardware solutions like the <a href="https://www.microchip.com/en-us/products/clock-and-timing/systems/bluesky-gnss-firewall">BlueSky GNSS Firewall</a> to protect infrastructures.</li></ul><h3><strong>TLDR</strong></h3><p>GPS spoofing is a serious threat that can have far-reaching consequences. While the techniques to perform GPS spoofing are relatively straightforward, the ethical and legal implications are significant. With this post I hope to raise awareness how dangerous GPS spoofing can be. Always ensure that any experimentation is conducted in a controlled and legal environment.</p><p>Stay informed, stay safe, be responsible.<strong> Thanks !</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f8e42070ef1" width="1" height="1" alt=""><hr><p><a href="https://radiohackers.com/spoofing-gps-coordinates-using-hackrf-one-9f8e42070ef1">Spoofing GPS Coordinates using HackRF One</a> was originally published in <a href="https://radiohackers.com/">Radio Hackers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proxying hidden services using tor & socat]]></title>
            <link>https://nflatrea.medium.com/yes-i-know-414d4132c0b5?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/414d4132c0b5</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[tor]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 12:56:22 GMT</pubDate>
            <atom:updated>2024-08-22T07:05:09.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*wCDRsA7JjD9I-bfp9YshDg.jpeg" /></figure><p>Yes, I know.</p><p>One of the most interesting features of the Tor network is the ability to host so-called <strong>HIDDEN</strong> services. Why on earth would we want to tunnel it back onto the clearnet?</p><p>Well.. hidden services also have a great advantage in being *distributed* over peers and identified without rerouting anything. Proxying it to the clearnet can be a way to take the good in Tor without all the onion fuss.</p><h3>Tunneling Tor SOCKS to HTTP Using Socat</h3><p>Socat is a versatile networking tool that can be used to tunnel Tor SOCKS proxies to HTTP. Here’s a quick and easy way to set it up:</p><h4>Step 1 : Install Socat</h4><p>I assume you have Tor already installed and tor daemon enabled and running. First, you need to install Socat. You can find any needed version on any distro [here](<a href="https://pkgs.org/download/socat">https://pkgs.org/download/socat</a>).</p><pre># On debian based systems<br>$ sudo apt-get update -y<br>$ sudo apt-get install -y socat</pre><pre># On RHEL based systems<br>$ sudo dnf update<br>$ sudo dnf install socat</pre><h4>Step 2 : Create a Systemd Service File</h4><p>To easily start, stop, and restart the tunnel, we’ll create a systemd service file to manage the socat process.</p><pre>$ sudo nano /etc/systemd/system/http-to-socks-proxy@.service</pre><p>Add the following content to the file:</p><pre><br>[Unit]<br>Description=HTTP-to-SOCKS proxy<br>After=network.target<br><br>[Service]<br>EnvironmentFile=/etc/http-to-socks-proxy/%i.conf<br>ExecStart=/usr/bin/socat tcp4-LISTEN:${LOCAL_PORT},reuseaddr,fork,keepalive,bind=127.0.0.1 SOCKS4A:${PROXY_HOST}:${REMOTE_HOST}:${REMOTE_PORT},socksport=${PROXY_PORT}<br><br>[Install]<br>WantedBy=multi-user.target</pre><p>Save and exit nano (Ctrl+O to write, Ctrl+X to exit).</p><h4>Step 3 : Create Configuration Files</h4><p>Create a directory for the configuration files:</p><pre>$ sudo mkdir /etc/http-to-socks-proxy</pre><p>Now, create a configuration file for each service you want to proxy. <strong>BTCPay</strong>, for example :</p><pre>$ sudo nano /etc/http-to-socks-proxy/btcpayserver.conf</pre><p>Add the following values :</p><pre>PROXY_HOST=127.0.0.1<br>PROXY_PORT=9050<br>LOCAL_PORT=9081<br>REMOTE_HOST=thisismybtcpayserverhiddenaddress.onion<br>REMOTE_PORT=80</pre><h4>Step 4 : Start the Service</h4><p>Enable and start the service :</p><pre>$ sudo systemctl enable --now http-to-socks-proxy@btcpayserver</pre><h3>Alternative : Using Docker</h3><p>If you prefer using Docker, you can create a Dockerfile to achieve the same result.</p><h4>Step 1: Create a Dockerfile</h4><p>Create a file named Dockerfile:</p><pre># — — — — — — — — — — — — — — — — — <br># ./Dockerfile<br># — — — — — — — — — — — — — — — — — <br><br>FROM alpine:edge<br>MAINTAINER nflatrea &lt;nflatrea@mailo.com&gt;<br> <br>ADD ./entry_point.sh /<br><br>RUN apk update \<br> &amp;&amp; apk upgrade \<br> &amp;&amp; apk add socat \<br> &amp;&amp; apk add --update-cache \<br> --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \<br> --allow-untrusted - update tor \<br> &amp;&amp; rm -rf /var/cache/apk/* \<br> &amp;&amp; chmod +x /entry_point.sh<br><br>ADD ./torrc /etc/tor/torrc<br><br>EXPOSE 5000<br>ENTRYPOINT [&quot;/entry_point.sh&quot;]</pre><p>Create then two more files called <strong>torrc</strong> and <strong>entry_point.sh</strong></p><pre># — — — — — — — — — — — — — — — — — <br># ./entry_point.sh<br># — — — — — — — — — — — — — — — — — <br><br>#!/bin/sh<br><br>set -e<br><br># Check if required environment variable<br>if [ -z &quot;${TOR_HOST}&quot; ]; then<br> echo &quot;TOR_HOST envrionment variable is not set&quot;<br> exit 1<br>fi<br>if [ -z &quot;${TOR_PORT}&quot; ]; then<br> echo &quot;TOR_PORT envrionment variable is not set&quot;<br> exit 1<br>fi<br><br># Start tor daemon - Configuration is in /etc/tor/torrc and is set to daemonize TOR<br>tor<br>if [ $? -ne 0 ]; then<br> echo &quot;tor did not start properly - Exiting&quot;<br> exit $?<br>fi<br><br># Start socat<br>if [ -z &quot;${ALLOWED_RANGE}&quot; ]; then<br> socat TCP-L:5000,fork,reuseaddr SOCKS4A:127.0.0.1:${TOR_HOST}:${TOR_PORT},socksport=9050<br>else<br> socat TCP-L:5000,fork,reuseaddr,range=${ALLOWED_RANGE} SOCKS4A:127.0.0.1:${TOR_HOST}:${TOR_PORT},socksport=9050<br>fi</pre><pre># — — — — — — — — — — — — — — — — — <br># ./torrc<br># — — — — — — — — — — — — — — — — — <br><br># Let tor listen on loopback interface only, on port 9050<br>SocksPort 127.0.0.1:9050<br><br># Try for at most NUM seconds when building circuits. If the circuit isn&#39;t open in that time, give up on it. (Default: 1 minute.)<br>CircuitBuildTimeout 5<br><br># Send a padding cell every N seconds to keep firewalls from closing our connections while Tor is not in use.<br>KeepalivePeriod 60<br><br># Force Tor to consider whether to build a new circuit every NUM seconds.<br>NewCircuitPeriod 15<br><br># How many entry guards should we keep at a time?<br>NumEntryGuards 8<br><br># Daemonize tor<br>RunAsDaemon 1</pre><p>You can download the files here : <a href="https://gist.github.com/nflatrea/8ce7c800444edae008a95bcf578ef7c2">https://gist.github.com/nflatrea/8ce7c800444edae008a95bcf578ef7c2</a></p><h4>Step 2 : Build and Run the Docker Container</h4><p>Build and run the container:</p><pre>$ docker build -t localhost/http-to-socks-proxy .<br>$ docker run -d -p 80:5000 \<br>  -e TOR_HOST=thisismybtcpayserverhiddenaddress.onion \<br>  -e TOR_PORT=80 -name localhost/http-to-socks-proxy</pre><p>You can then browse to the main page using `<a href="http://127.0.0.1/%60">http://127.0.0.1:80/`</a> and get forwarded to the hidden service.</p><p>You can optionnally restrict the IP addresses that are allowed to connect to this service by specifying an <strong>ALLOWED_RANGE</strong> environment variable and using CIDR notation.</p><h3>TL;DR</h3><p>Tunneling Tor hidden services to the clearnet can be useful in certain scenario. Whether you use Socat directly or leverage Docker for easier management, the process just works. Remember to handle your configurations carefully and ensure that you’re not exposing sensitive information.</p><p><strong>Stay safe !</strong></p><p><a href="https://nflatrea.bearblog.dev/tor-hidden-service-tunneling-using-socat/">https://nflatrea.bearblog.dev/tor-hidden-service-tunneling-using-socat/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=414d4132c0b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hijacking radio stations using Raspberry-Pi & Wire]]></title>
            <link>https://radiohackers.com/hijacking-radio-stations-using-raspberry-pi-wire-e57781423854?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e57781423854</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[radio]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[pifm]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 20:52:33 GMT</pubDate>
            <atom:updated>2024-10-02T15:57:10.350Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*K-rDGakjfwm5cAqAfnT73w.jpeg" /></figure><h3>Hijacking radio stations using Raspberry-Pi</h3><p>Have you ever wondered how easy it was to hack radio waves ? Well, off course, nowadays, with a little knowledge and the right tools you can hack pretty much everything from the spectrum (GPS, Wifi, LoRa etc…).</p><p>Back in the 2012’s, hacking radio waves have become surprisingly accessible. With just a Raspberry Pi and a bit of tinkering, you could broadcast your own FM radio station. And guess what ? It still works !</p><p><strong>Disclaimer:</strong><em> This blog post is for educational purposes only. Hacking into radio stations is illegal in most country and can lead to severe penalties. Always ensure you have the proper authorization before broadcasting any signals. I’m not responsible for your mess.</em></p><h3>The Hardware needed</h3><p>We don’t need much to shout. A Raspberry Pi or Pi Zero should do the job, the antenna can be sourced from cords or whatever you have around, although solid core wire may be better.</p><p>Here’s all the hardware and software that you’ll need for this guide:</p><ul><li>a long enough antenna (20–40cm)</li><li>a fully updated Raspberry Pi / Pi Zero W</li></ul><p>Obviously, you’d also need to find out what frequency you should hijack.</p><h3>Preparing Your Raspberry Pi to Broadcast Music</h3><h4>Step 1: Set Up Your Raspberry Pi</h4><p>First things first, you need to set up your Raspberry Pi Zero W. Download and install <a href="https://www.raspberrypi.com/software/">Raspbian</a>, or any ARM Linux-based operating system.</p><h4>Step 2: Install the FM Radio Software</h4><p>Once your Raspberry Pi is up and running, you’ll need to install the FM radio software. <strong>PiFmAdv</strong>, depends on the sndfile library. To install this library on Debian-like distributions, for instance, Raspbian, run :</p><p>$ sudo apt-get install libsndfile1-dev.</p><p>PiFmAdv now uses the SoX Resampler for high-quality resampling. On Debian-based distributions, run :</p><p>$ sudo apt install libsoxr-dev to install the dependency.</p><p>Clone the source repository and run make in the src directory:</p><pre>$ git clone https://github.com/Miegl/PiFmAdv.git<br>$ cd PiFmAdv/src<br>$ make clean<br>$ make</pre><h3>Test Your First Transmission</h3><p>That should be it! After navigating to the <em>PiFmAdv/src</em> folder, you should be able to test it by running:</p><pre>$ sudo ./pi_fm_adv --audio sound.wav --freq 107.9</pre><p>This will start a test radio transmission on the frequency 107.9. Since we haven’t yet attached our wire antenna, we can’t expect it to transmit anything, right? Turns out, even just the GPIO4 pin is capable of short range transmission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RkLTfZoWqz-hyfQ1" /><figcaption>The radiofrequency signal is emitted on GPIO4 (pin 7 on header P1).</figcaption></figure><p>You should use the GPIO pin to test your messages whenever possible to avoid interfering with other frequencies unnecessarily. While good for testing, the pin alone cannot overpower a station. Once you’ve confirmed you’re transmitting, let’s try hijacking a signal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_UCWU4RSm7YL-3CO.jpg" /><figcaption><em>Image by SADMIN/Null Byte</em></figcaption></figure><p>Now that we know we’re transmitting, let’s up the power. Attach a piece of wire (solid gauge or stranded will do) to the 4th GPIO pin, and rock it !</p><h3>Hijacking radio stations</h3><p>See how that was easy ? Didn’t lie to you ;-)</p><p>Now that we’ve boosted the power, we can expect to be able to hijack any radio station within a few meters. Identify the station you want to hijack and note the frequency in MHz. For this example, we will still assume 107.9 MHz.</p><p>On your Pi with the antenna attached, run the following in terminal to target and hijack 107.9 and play the audio file <em>audio.wav</em>.</p><pre>$ sudo ./pi_fm_adv --freq 107.9 --audio audio.wav</pre><p>You should hear the audio demo break into the radio station.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8qnSIPpmaK4aGcLk.jpg" /><figcaption>Hijacking 107.9 at nearly 40 feet away (end of range). <em>Image by SADMIN/Null Byte</em></figcaption></figure><p>Put any WAV file in the <em>PiFmAdv/src</em> folder and change the name in the command above to play your own custom rickroll.</p><h3>Technical Explanation</h3><p>The Raspberry Pi Zero W can transmit an FM radio signal using one of its analog GPIO pins. Specifically, the GPIO4 pin is used to create the signal. By attaching a long enough wire to this pin, you effectively create an antenna that can broadcast the signal over a significant range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uA9NSgE1uGP9QhGV" /></figure><p>The PiFM software leverages the GPIO4 clock pin to generate the FM signal. When you run the PiFM code, it converts your audio file into a signal that is then transmitted through the antenna. The length of the wire determines the broadcast range — the longer the wire, the farther the signal can travel.</p><p><a href="https://pinout.xyz/pinout/gpclk">https://pinout.xyz/pinout/gpclk</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e57781423854" width="1" height="1" alt=""><hr><p><a href="https://radiohackers.com/hijacking-radio-stations-using-raspberry-pi-wire-e57781423854">Hijacking radio stations using Raspberry-Pi &amp; Wire</a> was originally published in <a href="https://radiohackers.com/">Radio Hackers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts on XZ Backdoor]]></title>
            <link>https://nflatrea.medium.com/thoughts-on-xz-backdoor-27689cea263f?source=rss-1d29eda8523f------2</link>
            <guid isPermaLink="false">https://medium.com/p/27689cea263f</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Noë Flatreaud]]></dc:creator>
            <pubDate>Thu, 08 Aug 2024 07:21:09 GMT</pubDate>
            <atom:updated>2024-10-23T17:02:52.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*cQIunWs4RoQUWs-UqSwwAg.png" /></figure><p>On March 29th, 2024, Microsoft engineer <strong>Andres Freund</strong> discovered a backdoor in the XZ compression tool used in Linux distributions. The backdoor was allegedly added by a developer known online as Jia Tan over the course of two years, with contributions taking place at regular weekly intervals as part of a 9–5 job. Jia Tan had also urged developers to add the compromised XZ feature to newer versions of Fedora.</p><p>The backdoor allows unauthorized access to systems running the affected software, potentially giving attackers full control over the compromised system. It was added to the XZ Utils codebase in version 5.6.0 and was present in subsequent versions until it was discovered and patched.</p><p>The payload works by modifying the SSH authentication process, allowing an attacker to bypass normal authentication methods and gain root access to the system when a specific and hardcoded RSA key is used.</p><p>This incident is unfortunate but predictable, given the state of open-source software maintenance. Many open-source projects are poorly maintained, with developers working on them in their spare time without any financial support. This lack of resources and attention makes it easier for bad actors to infiltrate and introduce malicious code.</p><p>While open-source software has many benefits, such as transparency and community involvement, it also requires serious investment and maintenance to ensure its security and reliability. It’s crucial that the community and even countries provide funding for open-source projects without any engagement or strings attached. This will allow developers to focus on maintaining and improving the software without worrying about financial constraints.</p><p>In the case of the XZ Utils backdoor, it’s fortunate that Andres discovered it before it could cause significant damage. However, I beg that this incident serves as a wake-up call for the open-source community to prioritize maintenance and security.</p><p><a href="https://nflatrea.bearblog.dev/blog/?q=cybersecurity">#cybersecurity</a> <a href="https://nflatrea.bearblog.dev/blog/?q=infosec">#infosec</a> <a href="https://nflatrea.bearblog.dev/blog/?q=linux">#linux</a> <a href="https://nflatrea.bearblog.dev/blog/?q=xz">#xz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27689cea263f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>