<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cyber Security | Ukant Jadia</title><link>https://ukantjadia.github.io/category/cyber-security/</link><atom:link href="https://ukantjadia.github.io/category/cyber-security/index.xml" rel="self" type="application/rss+xml"/><description>Cyber Security</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 30 Dec 2023 14:20:17 +0530</lastBuildDate><image><url>https://ukantjadia.github.io/media/icon_hu5e29e1df12b63ca0c9252c8db4842f1b_8915_512x512_fill_lanczos_center_3.png</url><title>Cyber Security</title><link>https://ukantjadia.github.io/category/cyber-security/</link></image><item><title>Information Gathering, the First Step for Exploitation</title><link>https://ukantjadia.github.io/post/information-gathering-first-step-for-exploitatoin/</link><pubDate>Sat, 30 Dec 2023 14:20:17 +0530</pubDate><guid>https://ukantjadia.github.io/post/information-gathering-first-step-for-exploitatoin/</guid><description>&lt;h1 id="recon">Recon&lt;/h1>
&lt;p>There are two type of Reconnaissance&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Passive Reconnaissance :&amp;ndash; Doing the recon without coming in direct contact of the target. \&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Active Reconnaissance :&amp;ndash; Doing the active notecible action on the target site.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="passive-reconnaissance-includes">Passive Reconnaissance includes&lt;/h2>
&lt;ul>
&lt;li>local/Geo Information
&lt;ul>
&lt;li>Satellite Images&lt;/li>
&lt;li>Building layout&lt;/li>
&lt;li>Cabin location, fence, count of head in building, ways to exit, break areas, security fencing.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Job information&lt;/li>
&lt;li>Senior manager name, meeting routine, job title.&lt;/li>
&lt;li>Image from social sites like badge photo, cubical, desktop.&lt;/li>
&lt;/ul>
&lt;h2 id="web-and-network-information">Web and Network Information&lt;/h2>
&lt;h3 id="targe-validation">Targe Validation&lt;/h3>
&lt;p>First thing you have to do is, validate your target.&lt;/p>
&lt;p>Weather the description of given target is having the relating with the given ip&lt;/p>
&lt;h3 id="finding-subdomain">Finding Subdomain&lt;/h3>
&lt;p>Testing only one domain or some domain is decrease the chances of finding the flaw.&lt;/p>
&lt;p>Testing the all in-scope sub-domain is a good practice.&lt;/p>
&lt;p>Tool can be use for finding the subdomain are&lt;/p>
&lt;p>Google fu, dig, Nmap, sublist3r, bluto, crt.sh etc.&lt;/p>
&lt;h3 id="fingerprinting">Fingerprinting&lt;/h3>
&lt;p>We need to know which website running what on front or back.&lt;/p>
&lt;p>What&amp;rsquo;s running on the host.&lt;/p>
&lt;p>What&amp;rsquo;s web server, ssh, ftp, services.&lt;/p>
&lt;h3 id="data-breaches">Data Breaches&lt;/h3>
&lt;p>Just check if the credentials or account is pawned or not&lt;/p>
&lt;p>Use this to check&lt;/p>
&lt;p>havebeenpawned, Breach-prose, weleakinfo.&lt;/p>
&lt;p>&lt;strong>NOTE:&lt;/strong> Better Recon, enumeration makes you better pentester.&lt;/p>
&lt;h1 id="email-address-gathering-with-hunterio">Email Address gathering with Hunter.io&lt;/h1>
&lt;ul>
&lt;li>
&lt;p>You can use Hunter.io to find the people email address working or related to the domain you enter.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>In free plan it only provide the 20 searches as free, so do not abuse the searches.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>It also tell the where it get all emails written in source.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>You have to login with valid email id to have account.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>It also provide the category of email address, the department of the email owner.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h1 id="breach-phrase-from-github">Breach-Phrase from github&lt;/h1>
&lt;ul>
&lt;li>It is tool on the GitHub, it checks for the leaked credentials in its own in-build data of credentials&lt;/li>
&lt;li>This in build data is gather from the dark web store.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>NOTE:&lt;/strong> the gather email address are plays important role in further recon and enumeration.&lt;/p>
&lt;h1 id="utilizing-the-harvester">Utilizing the Harvester&lt;/h1>
&lt;ul>
&lt;li>It searches with the domain.&lt;/li>
&lt;li>It can gather the subdomain name, e-mail addresses, virtual hosts, open ports/banner, and employee name from different public sources like search engine, social site&lt;/li>
&lt;/ul>
&lt;h1 id="hunting-subdomain">Hunting Subdomain&lt;/h1>
&lt;p>We need see/identify what are the available or working subdomain out there.
use this&lt;/p>
&lt;ul>
&lt;li>
&lt;p>Sublist3r&lt;/p>
&lt;ul>
&lt;li>Sometimes it only give the 3 level subdomain&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>crt.sh&lt;/p>
&lt;ul>
&lt;li>It give the all registered subdomain that can be 3 level or 4 level&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>OWASP Amass is more efficient tool than above mentioned&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Sublist3r is slow during to fast up increase the threads
&lt;strong>NOTE:&lt;/strong> Found subdomain may or may not alive.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h1 id="identifying-the-web-technologies">Identifying the Web Technologies&lt;/h1>
&lt;ul>
&lt;li>To Fingerprinting the web page or to get the services running in the background&lt;/li>
&lt;li>wappalyzer is browser extension which show the frontend and backend services.&lt;/li>
&lt;li>Terminal tool is whatweb
&lt;ul>
&lt;li>use &lt;code>whatweb -h&lt;/code> for more details of tool&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul></description></item><item><title>Enumeration Second Step for Exploitation</title><link>https://ukantjadia.github.io/post/enumeration-second-step-for-explotation/</link><pubDate>Sat, 30 Dec 2023 14:15:39 +0530</pubDate><guid>https://ukantjadia.github.io/post/enumeration-second-step-for-explotation/</guid><description>&lt;h1 id="enumeration">Enumeration&lt;/h1>
&lt;h2 id="kioptrix-level-1">Kioptrix level 1&lt;/h2>
&lt;ul>
&lt;li>Now as beginner we should a have vulnerable machine to test&lt;/li>
&lt;li>Use &lt;a href="Vhttps://www.vulnhub.com/entry/kioptrix-level-1-1,22/">kioptrix level a&lt;/a> from vulnhub.&lt;/li>
&lt;li>This is used for beginner to develop there skill by testing the vulnerable machine.&lt;/li>
&lt;li>Download it, and set up it on your virtual software.&lt;/li>
&lt;li>Make sure the network connection is set to &lt;code>NAT&lt;/code>&lt;/li>
&lt;li>Open the root folder(which contain all configuration files) and open configuration file and change &lt;code>Bridge&lt;/code> to &lt;code>NAT&lt;/code>&lt;/li>
&lt;li>&lt;code>I Coppied&lt;/code> select this option form pop dialogue&lt;/li>
&lt;li>Once the setup is done do the &lt;code>arp-scan -l&lt;/code>&lt;/li>
&lt;li>On your system it will discover the available host in your ip CHIR&lt;/li>
&lt;li>Ignore the x.x.x.1 and x.x.x.254 because this are your network identity and broadcast ip, Rest all machine are lying in your ip range.&lt;/li>
&lt;/ul>
&lt;h2 id="nmap-stealthy-scan">Nmap stealthy scan&lt;/h2>
&lt;p>What normal two-way connection looks like&lt;/p>
&lt;blockquote>
&lt;p>SYN &amp;lt;-&amp;gt; SYNACK &amp;lt;-&amp;gt; ACK&lt;/p>
&lt;/blockquote>
&lt;ul>
&lt;li>Stealthy scan doesn&amp;rsquo;t establish the connection it ask for the open port on the serve as server reply the status it will take the step back without establishing the connection.&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>SYN &amp;lt;-&amp;gt; SYNACK &amp;lt;-&amp;gt; RST&lt;/p>
&lt;/blockquote>
&lt;ul>
&lt;li>Use this Namp flags for better enumeration
&lt;code>nmap -T4 -p- -A &amp;lt;ip_address&amp;gt;&lt;/code>&lt;/li>
&lt;li>Go through the scan properly&lt;/li>
&lt;li>Visit ip/webpage, check weather there you can do anything like directory busting.&lt;/li>
&lt;li>Get all services running, also check the header and behaviour.&lt;/li>
&lt;li>Do whatever you can do.&lt;/li>
&lt;li>Then use nikto web vulnerability tool.&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;code>nikto -host &amp;lt;url&amp;gt;&lt;/code>&lt;/p>
&lt;/blockquote>
&lt;h2 id="directory-busting">Directory busting&lt;/h2>
&lt;ul>
&lt;li>dirbuster / birb / gobuster&lt;/li>
&lt;/ul>
&lt;h2 id="dirbuster">Dirbuster&lt;/h2>
&lt;ul>
&lt;li>start dirbuster from terminal&lt;/li>
&lt;li>fill the slot with information of your target&lt;/li>
&lt;li>for word file use &lt;code>/usr/share/wordlist/dirbuster&lt;/code>&lt;/li>
&lt;li>File extension depends on you or the time you have.&lt;/li>
&lt;li>Received/common url can be a information disclosure of anything like stats, user-data, server header, response.&lt;/li>
&lt;/ul></description></item></channel></rss>