<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Musa Nayyer</title>
    <description>The latest articles on Forem by Musa Nayyer (@muzasio).</description>
    <link>https://forem.com/muzasio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3889552%2Fea50db40-183c-4528-abe1-823df040d8ab.png</url>
      <title>Forem: Musa Nayyer</title>
      <link>https://forem.com/muzasio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/muzasio"/>
    <language>en</language>
    <item>
      <title>Signal QR Stuck on Spinner — University Firewall Was the Culprit</title>
      <dc:creator>Musa Nayyer</dc:creator>
      <pubDate>Sun, 24 May 2026 06:43:16 +0000</pubDate>
      <link>https://forem.com/muzasio/signal-qr-stuck-on-spinner-university-firewall-was-the-culprit-1ch7</link>
      <guid>https://forem.com/muzasio/signal-qr-stuck-on-spinner-university-firewall-was-the-culprit-1ch7</guid>
      <description>&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; I tried linking my iPhone as a secondary Signal device. The QR code just spun forever — a loading spinner inside a white box. No error. Just nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My setup:&lt;/strong&gt; Primary device — Redmi 13C (PTA), Signal registered and working. Secondary device — iPhone (non-PTA). University Wi-Fi. I wasn't doing a full registration or transfer. Just: &lt;em&gt;Settings → Linked Devices → Link New Device&lt;/em&gt; on iPhone. Dead silence from Signal.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Tried
&lt;/h2&gt;

&lt;p&gt;First assumption: it's the non-PTA iPhone. Maybe Signal's blocking it? Nope — PTA status is a cellular registration thing. It has zero effect on Wi-Fi app behavior.&lt;/p&gt;

&lt;p&gt;Second assumption: maybe I need to select "transfer from Android"? Nope — I didn't want a transfer. Just a secondary link. The flow is: iPhone shows QR → Redmi scans it.&lt;/p&gt;

&lt;p&gt;I got the flow backwards at first too. Thought Redmi generates QR, iPhone scans. Wrong. &lt;strong&gt;iPhone (secondary) generates the QR. Redmi (primary) scans it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The QR never loaded on iPhone. That's when it clicked — it's not the phone, it's the network.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Actually Happened
&lt;/h2&gt;

&lt;p&gt;Signal's QR code generation isn't local. The iPhone hits Signal's provisioning API (&lt;code&gt;api.signal.org&lt;/code&gt;, &lt;code&gt;storage.signal.org&lt;/code&gt;) to create a time-sensitive token before displaying the code. My university network was blocking those endpoints.&lt;/p&gt;

&lt;p&gt;Why did Redmi register fine earlier? Probably a different time, different access point, or Android and iOS clients have different TLS fingerprints — and the firewall's application-layer inspection treats them differently. University-grade firewalls (Fortinet, Palo Alto) do this.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Fix
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Proton VPN on both devices, same server location.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Installed Proton VPN (free tier) on both iPhone and Redmi&lt;/li&gt;
&lt;li&gt;Connected both to the same server (Netherlands)&lt;/li&gt;
&lt;li&gt;On iPhone → Signal → Linked Devices → Link New Device&lt;/li&gt;
&lt;li&gt;QR code appeared instantly&lt;/li&gt;
&lt;li&gt;Redmi scanned it — linked successfully&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  6. Redmi got logged out immediately after. That's not a bug — Signal logs out existing sessions when a new device links, by design. Re-registered with the phone number and everything was fine. Message history is local anyway; it doesn't sync across linked devices.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Key Insights
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The QR code requires a live API call.&lt;/strong&gt; If Signal's servers are unreachable, the spinner loops forever with no error message. Signal could honestly show a better error here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iOS and Android Signal clients behave differently at the network level.&lt;/strong&gt; A firewall can block one and pass the other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;University networks block more than you think.&lt;/strong&gt; VoIP, messaging APIs, certain CDN routes — it's not just torrents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free VPN is enough for this.&lt;/strong&gt; Proton VPN free tier worked fine. No speed requirements for a one-time provisioning handshake.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  - &lt;strong&gt;Both devices need to be on the same network exit.&lt;/strong&gt; The provisioning token is bound to the originating network context. If iPhone generated it over VPN and Redmi scanned from plain university Wi-Fi, it failed with "QR code not valid."
&lt;/h2&gt;

&lt;h2&gt;
  
  
  TIL
&lt;/h2&gt;

&lt;p&gt;Signal's device linking QR is a remote token, not a local code — and if your network blocks Signal's API endpoints, you'll get an endless spinner with zero explanation.&lt;/p&gt;

</description>
      <category>signal</category>
      <category>vpn</category>
      <category>till</category>
      <category>muzasio</category>
    </item>
    <item>
      <title>Firefox Profiles Frozen and Corrupted on CachyOS — What Broke and How psd Was the Culprit</title>
      <dc:creator>Musa Nayyer</dc:creator>
      <pubDate>Fri, 22 May 2026 12:35:15 +0000</pubDate>
      <link>https://forem.com/muzasio/firefox-profiles-frozen-and-corrupted-on-cachyos-what-broke-and-how-psd-was-the-culprit-39hc</link>
      <guid>https://forem.com/muzasio/firefox-profiles-frozen-and-corrupted-on-cachyos-what-broke-and-how-psd-was-the-culprit-39hc</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Opened Firefox one morning and the profile picker showed up. Clicked my main profile — nothing happened. Hover worked, tooltips appeared, but clicks registered nowhere. Profile 1 was already dead the day before. Only the third profile (sss) responded. Main profile had six accounts in it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Tried
&lt;/h2&gt;

&lt;p&gt;Keyboard navigation — nothing. Tab and Enter didn't work either.&lt;/p&gt;

&lt;p&gt;Checked the Firefox profile directory and found this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;lrwxrwxrwx  lbjm2hpz.Profile 2 -&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;/run/user/1000/psd/user-firefox-lbjm2hpz.Profile 2
&lt;span class="gp"&gt;lrwxrwxrwx  xcpk3xfu.default   -&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;/run/user/1000/psd/user-firefox-xcpk3xfu.default
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Symlinks. Not real directories. psd (profile-sync-daemon) moves Firefox profiles to RAM and replaces them with symlinks. The RAM targets were either empty or broken.&lt;/p&gt;

&lt;p&gt;Ran &lt;code&gt;psd preview&lt;/code&gt; — confirmed psd was managing both profiles. &lt;code&gt;xcpk3xfu.default&lt;/code&gt; showed profile size 0. That profile was already gone.&lt;/p&gt;

&lt;p&gt;Tried &lt;code&gt;psd resync&lt;/code&gt; — ran without errors but didn't fix the picker clicks.&lt;/p&gt;

&lt;p&gt;Tried launching directly from terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firefox &lt;span class="nt"&gt;--profile&lt;/span&gt; &lt;span class="s2"&gt;"/home/user/.config/mozilla/firefox/lbjm2hpz.Profile 2"&lt;/span&gt;
firefox &lt;span class="nt"&gt;-P&lt;/span&gt; &lt;span class="s2"&gt;"default-release"&lt;/span&gt; &lt;span class="nt"&gt;--no-remote&lt;/span&gt;
&lt;span class="nv"&gt;MOZ_ENABLE_WAYLAND&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0 firefox &lt;span class="nt"&gt;--profile&lt;/span&gt; &lt;span class="s2"&gt;"/home/user/.config/mozilla/firefox/lbjm2hpz.Profile 2"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All three kept opening the sss profile instead. The &lt;code&gt;--no-remote&lt;/code&gt; attempts threw repeated channel errors because Firefox was already running.&lt;/p&gt;

&lt;p&gt;Checked &lt;code&gt;about:profiles&lt;/code&gt; — confirmed the current window was actually running &lt;code&gt;default-release&lt;/code&gt; (the main profile), but it was completely empty. No accounts, no history, nothing. The 49M of data was somewhere but Firefox wasn't seeing it.&lt;/p&gt;

&lt;p&gt;Stopped psd, deleted the broken profile directory, tried restoring from the &lt;code&gt;-backup&lt;/code&gt; folder — backup had disappeared when psd stopped (psd overwrites it on shutdown with whatever is in RAM). Only a crashrecovery folder from earlier that morning survived with 49M of actual data.&lt;/p&gt;

&lt;p&gt;Restored from crashrecovery, started psd again — psd immediately created a new symlink pointing to RAM and the profile went missing again. psd was overwriting the restore on every start.&lt;/p&gt;

&lt;p&gt;The GUI click issue turned out to be a separate Wayland input problem with the Firefox profile picker — unrelated to psd but compounding the mess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Root Cause
&lt;/h2&gt;

&lt;p&gt;psd syncs browser profiles to RAM for speed. On unclean shutdowns or crashes, the sync back to disk fails. The &lt;code&gt;-backup&lt;/code&gt; folder gets overwritten on the next psd start with whatever empty state is in RAM. Over time this had been happening repeatedly — the profile directory had 64 crash recovery folders going back months, all showing the same pattern.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;xcpk3xfu.default&lt;/code&gt; was already fully gone. &lt;code&gt;lbjm2hpz.Profile 2&lt;/code&gt; survived only because a crashrecovery snapshot existed from earlier that same day.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix
&lt;/h2&gt;

&lt;p&gt;Disabled Firefox in psd by adding this to &lt;code&gt;~/.config/psd/psd.conf&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;BROWSERS&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;google-chrome&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restarted psd. Firefox now reads directly from disk. No more symlinks, no more RAM sync, no more silent corruption on shutdown.&lt;/p&gt;

&lt;p&gt;Also ran &lt;code&gt;psd clean&lt;/code&gt; to delete the accumulated crash recovery folders and reclaim disk space.&lt;/p&gt;

&lt;h2&gt;
  
  
  TIL
&lt;/h2&gt;

&lt;p&gt;psd is a silent data risk on systems that crash or suspend frequently — it will eat your browser profiles and leave behind only empty backup folders.&lt;/p&gt;

</description>
      <category>till</category>
      <category>devlog</category>
      <category>tech</category>
      <category>experiment</category>
    </item>
    <item>
      <title>How I got out of dependency hell with Docker (SpiderFoot OSINT lab)</title>
      <dc:creator>Musa Nayyer</dc:creator>
      <pubDate>Mon, 20 Apr 2026 20:47:23 +0000</pubDate>
      <link>https://forem.com/muzasio/how-i-got-out-of-dependency-hell-with-docker-spiderfoot-osint-lab-5e6d</link>
      <guid>https://forem.com/muzasio/how-i-got-out-of-dependency-hell-with-docker-spiderfoot-osint-lab-5e6d</guid>
      <description>&lt;p&gt;I wanted to try SpiderFoot – an OSINT tool. Thought it would be a simple &lt;code&gt;pip install&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Nope.&lt;/p&gt;

&lt;p&gt;It crashed on &lt;code&gt;lxml&lt;/code&gt;. Something about headers and versions. Classic dependency hell on Arch.&lt;/p&gt;

&lt;p&gt;I didn't want to mess up my main system. So I gave up on virtual environments and used Docker instead.&lt;/p&gt;

&lt;p&gt;Here's what worked.&lt;br&gt;
Set this up so you don't need sudo for every command.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Docker permissions
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;usermod &lt;span class="nt"&gt;-aG&lt;/span&gt; docker &lt;span class="nv"&gt;$USER&lt;/span&gt;
newgrp docker
&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl restart docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  2. Clone and build
&lt;/h2&gt;

&lt;p&gt;Grab the source and build the image locally.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/smicallef/spiderfoot.git
&lt;span class="nb"&gt;cd &lt;/span&gt;spiderfoot
docker build &lt;span class="nt"&gt;-t&lt;/span&gt; spiderfoot &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Run it (the easy way)
&lt;/h2&gt;

&lt;p&gt;I used the VS Code Docker extension. Built the image, then ran the container from the UI. The extension shows all running containers on my system, so I could start/stop it with one click.&lt;/p&gt;

&lt;p&gt;If you prefer the command line, this works too:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 5001:5001 &lt;span class="nt"&gt;--name&lt;/span&gt; spiderfoot-app spiderfoot
Either way, open http://localhost:5001 and SpiderFoot is there.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Why I'm doing this&lt;br&gt;
I'm a beginner in cybersecurity. I don't want to install random tools directly on my laptop. With Docker, I can try anything and delete it later without breaking stuff.&lt;/p&gt;

&lt;p&gt;This worked for me. Might work for you too.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>osint</category>
      <category>cybersecurity</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
