<?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>DEV Community: lagendary revanges</title>
    <description>The latest articles on DEV Community by lagendary revanges (@lagendary_revanges_8b140d).</description>
    <link>https://dev.to/lagendary_revanges_8b140d</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4236836%2F2d09936c-4c7a-4d19-8886-bc3691246ac3.jpg</url>
      <title>DEV Community: lagendary revanges</title>
      <link>https://dev.to/lagendary_revanges_8b140d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lagendary_revanges_8b140d"/>
    <language>en</language>
    <item>
      <title>How to Build a Simple Network Port Scanner in Python Using an Android Phone</title>
      <dc:creator>lagendary revanges</dc:creator>
      <pubDate>Tue, 10 Nov 2026 12:02:44 +0000</pubDate>
      <link>https://dev.to/lagendary_revanges_8b140d/how-to-build-a-simple-network-port-scanner-in-python-using-an-android-phone-c33</link>
      <guid>https://dev.to/lagendary_revanges_8b140d/how-to-build-a-simple-network-port-scanner-in-python-using-an-android-phone-c33</guid>
      <description>&lt;p&gt;In cybersecurity, a port scanner is a fundamental tool used to discover open entry points on a network system. While most people use a computer, you can actually build and run a functional network scanner right on your smartphone using a Linux environment.&lt;/p&gt;

&lt;p&gt;Since Python is a powerful language for security automation, we can combine it with Termux to scan network targets on the go.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;To follow along with this tutorial on your mobile device, you only need:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Termux&lt;/strong&gt; app installed on your phone.&lt;/li&gt;
&lt;li&gt;Python and a text editor installed via the command: &lt;code&gt;pkg install python nano -y&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Python Script (&lt;code&gt;scanner.py&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;Here is the clean script that utilizes Python's built-in &lt;code&gt;socket&lt;/code&gt; library to attempt network connections on standard ports:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;

&lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"scanme.nmap.org"&lt;/span&gt; 
&lt;span class="n"&gt;ports_to_scan&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;22&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Starting basic mobile scan on target: {target}\n"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ports_to_scan&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;AF_INET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;socket&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SOCK_STREAM&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;settimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect_ex&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"[+] Port {port} is OPEN!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"[-] Port {port} is closed."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;socket.socket&lt;/strong&gt;: Creates a network endpoint to communicate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;s.settimeout(2.0)&lt;/strong&gt;: Prevents the script from hanging forever if a port is tightly secured or filtered.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;s.connect_ex&lt;/strong&gt;: Attempts the connection. If it returns a value of &lt;code&gt;0&lt;/code&gt;, the connection succeeded, meaning the port is listening (OPEN).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Running the Scan on Mobile
&lt;/h2&gt;

&lt;p&gt;Once saved inside your Termux terminal via &lt;code&gt;nano scanner.py&lt;/code&gt;, run the tool using:&lt;br&gt;
&lt;code&gt;python scanner.py&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This gives you a powerful, portable tool to quickly assess a domain's basic web setup right from your pocket!&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>5 Essential Linux Commands Every Beginner Should Know</title>
      <dc:creator>lagendary revanges</dc:creator>
      <pubDate>Tue, 10 Nov 2026 11:05:29 +0000</pubDate>
      <link>https://dev.to/lagendary_revanges_8b140d/5-essential-linux-commands-every-beginner-should-know-about-it-c36</link>
      <guid>https://dev.to/lagendary_revanges_8b140d/5-essential-linux-commands-every-beginner-should-know-about-it-c36</guid>
      <description>&lt;p&gt;When you first start using the Linux terminal, the blank screen can feel intimidating. However, learning just a few basic commands can give you full control over navigating your system.&lt;/p&gt;

&lt;p&gt;Here are 5 essential Linux commands every beginner should learn.&lt;/p&gt;




&lt;h3&gt;
  
  
  1. pwd (Print Working Directory)
&lt;/h3&gt;

&lt;p&gt;When working in the command line, it is easy to forget where you are. The pwd command prints the absolute path of your current directory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt; pwd&lt;br&gt;
&lt;strong&gt;Output example:&lt;/strong&gt; /home/user/documents&lt;/p&gt;




&lt;h3&gt;
  
  
  2. ls (List Files and Directories)
&lt;/h3&gt;

&lt;p&gt;To see all the files and folders inside your current directory, use ls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt; ls&lt;br&gt;
&lt;em&gt;Tip:&lt;/em&gt; Use ls -l to see extra details like file size, permissions, and modification date.&lt;/p&gt;




&lt;h3&gt;
  
  
  3. cd (Change Directory)
&lt;/h3&gt;

&lt;p&gt;Use cd to move into a different folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt; cd Documents&lt;br&gt;
To go back up one folder level, type: cd ..&lt;/p&gt;




&lt;h3&gt;
  
  
  4. mkdir (Make Directory)
&lt;/h3&gt;

&lt;p&gt;Need to create a new folder? The mkdir command creates a directory instantly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt; mkdir MyNewFolder&lt;/p&gt;




&lt;h3&gt;
  
  
  5. clear (Clear the Screen)
&lt;/h3&gt;

&lt;p&gt;When your terminal gets cluttered with text and output, clear wipes the terminal window clean so you can focus.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt; clear&lt;/p&gt;




&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Mastering these 5 core commands builds a strong foundation for using Linux. Try running them one by one in your terminal to practice!&lt;/p&gt;

</description>
      <category>linux</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
