<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Samy . on Medium]]></title>
        <description><![CDATA[Stories by Samy . on Medium]]></description>
        <link>https://medium.com/@justcallmesamy?source=rss-52b229adbb32------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HkONSbbxIzU9-aNd8UR9hw.jpeg</url>
            <title>Stories by Samy . on Medium</title>
            <link>https://medium.com/@justcallmesamy?source=rss-52b229adbb32------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:01:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@justcallmesamy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ENCRYPTION]]></title>
            <link>https://justcallmesamy.medium.com/encryption-271bc2f15452?source=rss-52b229adbb32------2</link>
            <guid isPermaLink="false">https://medium.com/p/271bc2f15452</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[opsec]]></category>
            <dc:creator><![CDATA[Samy .]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 22:38:18 GMT</pubDate>
            <atom:updated>2025-01-27T22:38:18.529Z</atom:updated>
            <content:encoded><![CDATA[<p>Be under no ilussions, this is one of the most important steps to keeping information secret. Now I am a big fan of encryption and here is why:</p><p>“if your encryption program uses 128-bit keys, your particular key could be any of more than 3.4 trillion billion billion billion possible combinations. More likely to win the lottery than to crack that level of encryption using the brute-force method”Or just use RSA 4096-bit and 256-bit AES?</p><p>Now I think this says a little bit about how much safer encryption makes you, if you encrypt your HDD using 256-bit, there is little chance even the authorities will crack it…. in your lifetime. However do be aware of local law for example in the UK the new Regulation of Investigatory Powers Act states:</p><p>Individuals who are believed to have the cryptographic keys necessary for such decryption will face up to 5 years in prison for failing to comply with police or military orders to hand over either the cryptographic keys, or the data in a decrypted form.</p><p>The penelties are up to 5 years for terrorism-related inforamtion and 2 years for “All other failures to comply”</p><p>Therefore depending on the strength of your offence it could be more wise to with-hold your key on claims of a privacy breach, and face the maximum two years than to hand over your keys.</p><p>The program I most recomend for doing this is</p><p>TrueCrypt:<br><a href="http://www.truecrypt.org/">http://www.truecrypt.org</a></p><p>True crypt can provdie 256-bit encryption</p><p>The design and strength of all key lengths of the AES algorithm (i.e., 128, 192 and 256) are sufficient to protect classified information up to the SECRET level. TOP SECRET information will require use of either the 192 or 256 key lengths.</p><p>Oh and that’s not even the most useful part:</p><p>TrueCrypt allows you to create a hidden operating system whose existence will be impossible to prove (provided that certain guidelines are followed — see below). Thus, you will not have to decrypt or reveal the password for the hidden operating system.</p><p>As there is a pre-boot authentication process which asks for your encryption password you can have two, one for people to see and one for hacking purposes. This is IMPOSSIBLE to prove so I highly recommed using it, although I don’t use it myself…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=271bc2f15452" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS Leaking & VPN]]></title>
            <link>https://justcallmesamy.medium.com/dns-leaking-vpn-a33a92e48474?source=rss-52b229adbb32------2</link>
            <guid isPermaLink="false">https://medium.com/p/a33a92e48474</guid>
            <category><![CDATA[opsec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Samy .]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 03:53:28 GMT</pubDate>
            <atom:updated>2025-01-27T03:53:28.774Z</atom:updated>
            <content:encoded><![CDATA[<p>#OPSEC</p><p>While you are on a VPN, you want all traffic coming from your computer to go through the encrypted network. If any of your traffic leaks outside this encrypted network, people can then log that information which is not good at all. The Domain Name System (DNS) translates domain names such as HackForums.net into IP addresses such as 190.93.250.145 which is required to send packets of data on the Internet. When you try to access a specific website, before you go there you computer must interact with the DNS server to request the IP address. Internet service providers (ISPs) usually use specific DNS servers which log and record specific activities you do while on the Internet. The main issue here is when you use a VPN, sometimes the OS will default to the normal DNS servers instead of the DNS servers your VPN provides. DNS leaks while using a VPN can make you feel safe while you are truly leaking data that you don’t want leaked. This is a major issue which is why all VPNs I listed above have some sort of DNS Leak protection, a must have when stay anonymous. You can test to see if you are DNS leaking at the links below. <br>IPLeak Link: <a href="https://ipleak.net/">https://ipleak.net/</a> <br>LeakTest Link: <a href="https://www.dnsleaktest.com/">https://www.dnsleaktest.com/</a> <br> <br>For anyone not using a VPN with DNS Leak Protection, try using one of these DNS servers: <br>OpenDNS: 208.67.222.222 and 208.67.220.220 <br>ComodoDNS: 156.154.70.22 and 156.154.71.22 <br>UltraDNS: 156.154.70.1 and 156.154.71.1 <br>NortonDNS: 198.153.192.1 and 198.153.194.1 <br>NordDNS: 103.86.96.100 and 103.86.99.100</p><p>#### Hiding your IP and identity is crucial. Here is some of my prefred methods:</p><p>SOCKS5 Proxy<br>L1 HTTPS Proxy<br>GCI proxy<br>Encrypted VPN (no logs)</p><p>HTTP proxies are traditionally more HTTP protocol aware and do more high level filtering (even though that usually only applies to GET and POST methods, not CONNECT). SOCKS proxies can also forward UDP traffic and work in reverse — HTTP proxies can’t do that.</p><p>Due to the restrictions of a HTTP proxy, they ONLY work for HTTP traffic and do not support UDP and other types of proxy uses. the reason is because they “infer the address of the server and therefore may only be used for HTTP traffic”.</p><p>Use both HTTP and SOCKS if possible though this is known as “Proxy Chaining” this is used to make your actions harder to trace but its not truely effective.</p><p>REMEMBER: Do not use an L3 HTTP proxy as they show your true IP in the header and are therefore essentially pointless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a33a92e48474" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The best way to gather subdomains]]></title>
            <link>https://justcallmesamy.medium.com/the-best-way-to-gather-subdomains-a2bd077bd128?source=rss-52b229adbb32------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2bd077bd128</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-pen-testing]]></category>
            <category><![CDATA[web-penetration-testing]]></category>
            <category><![CDATA[website]]></category>
            <dc:creator><![CDATA[Samy .]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 08:03:41 GMT</pubDate>
            <atom:updated>2024-03-16T08:03:41.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*7V_nDdtGbVjPStlPm97IWg.png" /></figure><blockquote>wget &quot;https://www.yahoo.com&quot;<br>cat index.html | grep -i -o &quot;[a-z0-9]*.yahoo.com&quot; &gt; sub-yahoo.txt<br>cat sub-yahoo.txt | httpx -mc 200 301 &gt; live.txt<br>```</blockquote><h4>Okay, I&#39;ll explain these commands in detail:</h4><ul><li>- `wget` command: Used to download files from the internet. In this case, it downloads the main web page of Yahoo and saves it in a file named index.html.</li><li>- `cat` command: Used to display the contents of files. In this case, it displays the content of the index.html file.</li><li>- `grep` command: Used to search for patterns in file content using regular expressions. In this case, grep is used to search for any phrase containing &quot;.yahoo.com&quot; and extract it only instead of the entire text.</li><li>- The `&gt;` symbol: Used to redirect the output of the previous command to another file. In this case, it redirects the extracted text from grep to a file named sub-yahoo.txt.</li><li>- `httpx` command: A command specific to a program called httpx. This command is used here to check the response codes of all the links found in the sub_yahoo.txt file and save the successful links (those returning response codes 200 or 301) to a file named live.txt.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*7V_nDdtGbVjPStlPm97IWg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2bd077bd128" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic useful Linux Commands that you need ]]></title>
            <link>https://justcallmesamy.medium.com/basic-useful-linux-commands-that-you-need-98309e0740a3?source=rss-52b229adbb32------2</link>
            <guid isPermaLink="false">https://medium.com/p/98309e0740a3</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[command-line-interface]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[command-line]]></category>
            <dc:creator><![CDATA[Samy .]]></dc:creator>
            <pubDate>Sat, 10 Sep 2022 00:35:04 GMT</pubDate>
            <atom:updated>2022-09-10T00:35:04.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/687/0*ik70jXSjCqY9EO7O.png" /><figcaption>Bismillah Guys !1</figcaption></figure><h3><strong><em>LS ( Listing directory contents )</em></strong></h3><pre><strong>ls</strong></pre><p>The<strong> ls</strong> command is used to view the contents of a directory. By default, this command will show the contents of your current working directory</p><ul><li><strong><em>ls -R</em></strong><em> will list all the files in the sub-directories as well</em></li><li><strong><em>ls -a</em></strong><em> will show the hidden files</em></li><li><strong><em>ls -al</em></strong><em> will list the files and directories with detailed information like the permissions, size, owner, etc.</em></li></ul><h3><strong><em>CD Command ( </em></strong>Changing directory )</h3><pre>cd </pre><p>To navigate through the Linux files and directories,</p><p>When used without any argument, cd will take you to your home directory</p><p>So you’re in <strong>/home/username/Documents</strong> and you want to go to <strong>Photos</strong>, a sub-directory of <strong>Documents</strong>. To do so, simply type the following command: “ <strong><em>cd Photos “</em></strong></p><ul><li><strong><em>cd .. (with two dots) to move one directory up</em></strong></li><li><strong><em>cd to go straight to the home folder</em></strong></li><li><strong><em>cd- (with a hyphen) to move to your previous directory</em></strong></li></ul><h3>pwd Command ( Present working directory )</h3><pre>pwd</pre><p>Use pwd command to find the path of the current working directory (folder) you’re in.</p><h3>CAT ( Displaying file contents )</h3><pre>cat </pre><p>to read file , type <strong>cat</strong> followed by the file’s name and its extension →example cat hello.txt</p><h3>touch ( Create File )</h3><pre>touch</pre><p>create a blank new file , type <strong>touch </strong>followed by the file’s name and its extension</p><p>touch file.txt or touch web.html</p><h3>rm ( Removing files and directories )</h3><pre><em>Removing empty file </em>--&gt; rm file.txt</pre><pre><em>Removing empty directory</em> --&gt; rm -d directoryname</pre><p>Fast And important linux command</p><p>I hope you enjoyed ❤ .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98309e0740a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bounty Hacker Write-up (TryHackMe)]]></title>
            <link>https://justcallmesamy.medium.com/bounty-hacker-write-up-tryhackme-cdf7113f9177?source=rss-52b229adbb32------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdf7113f9177</guid>
            <dc:creator><![CDATA[Samy .]]></dc:creator>
            <pubDate>Tue, 30 Aug 2022 23:25:30 GMT</pubDate>
            <atom:updated>2022-08-31T11:48:09.073Z</atom:updated>
            <content:encoded><![CDATA[<p><em>hello dear , This is my first Write-up so excuse me for any mistakes :)</em></p><blockquote><strong>FIRST STEP ( SCANNING ) :</strong></blockquote><p><em>nmap -sC -sV &lt;ip&gt;</em></p><p>As shown in the nmap scan, There is three open ports →</p><p><em>FTP (</em><strong><em>21</em></strong><em>) - SSH (</em><strong><em>22</em></strong><em>) - HTTP (</em><strong><em>80</em></strong><em>)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*AjkuYPcnpBjJuiA_au4Tag.png" /><figcaption>NMAP</figcaption></figure><p><strong><em>→ FTP ( 21 ) :</em></strong></p><h4>you can log in using only the username Anonymous and hit Enter when ask password</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*Vw_G_MOjNLZTcyV7ZmKOUQ.png" /><figcaption><strong>FTP &lt;ip&gt;</strong></figcaption></figure><p><strong>You can see 2 files , type get &lt;file name&gt;</strong></p><p>and now u can read them in your files cat &lt;filename&gt;</p><p>The first file (locks.txt) give us a passwords list and the second file (task.txt) give us tasks written by ###</p><blockquote><strong>WEB PAGE :</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-fLlIg90RjkhSHXuhUe8Fg.png" /><figcaption><strong>We can see some dialogues between some friends ( nothing important )</strong></figcaption></figure><p><strong>i will use gobuster to find secret pages or any login page</strong></p><p><em>type the command → gobuster dir -w (wordlist) -u (url)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*TtIYgiuMS25xJgAS0ta1Bg.png" /></figure><blockquote><strong>Now let’s go to brute-force :</strong></blockquote><p><strong><em>hydra ssh://ip -L users.txt -P locks.txt</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vT4jubOUHrH5Mb3oUPzxsA.png" /><figcaption><strong>YAAY We got it</strong></figcaption></figure><blockquote><strong>Now let’s login we have user and pass ( SSH )</strong></blockquote><p><strong><em>Command </em></strong>: ssh user@ip</p><p>And <strong>Boom </strong>we are in 🔥</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*QM2PN4P3C4WP71mO4uwVpg.png" /></figure><blockquote><strong><em>Now easy Get your flag 🚩</em></strong></blockquote><p>type ls → and read the file → cat user .txt</p><h4><strong><em>THM{C####_#########}</em></strong></h4><blockquote><strong><em>root.txt → Now We can’t root with sudo -l</em></strong></blockquote><p><em>We don’t have permission to get in user root’s directory so</em></p><p>Go to <a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a> → search for <em>tar</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrzu6wQ-AHfkIVv5DWB5nQ.png" /><figcaption>Copy the text</figcaption></figure><p>And paste it in terminal and Congratulation You are root 🔥</p><blockquote><strong><em>use cat /root/root.txt and get Ur flag </em></strong>❤</blockquote><p><em>→ THM{8#####_######}</em></p><p>GoodBye , Enjoy 👌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdf7113f9177" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>