Cybersecurity — Payloads

Raghavendra Hiremath
3 min readOct 23, 2021

--

Never stop learning, because life never stops teaching.

Hello Everyone! Welcome to hacking world.

In IT Industry, we would have come across system patching activities, software hotfix updates. Do you really know what might happen if you don’t patch your OS to the latest version.

Why do you think we pay millions of dollars to auditors and security company. To make sure our systems are not vulnerable and is safe from malware and attacks.

NOTE: THIS IS EDUCATION PURPOSE ONLY! THIS IS ILLEGAL, I AM NOT RESPONSBILE FOR ANY DAMAGE. THIS IS PURELY INTEREST OF LEARNING AND UNDERSTANDING.

Today, I would be creating a payload that can hack the system! We use, MSFvenom

MSFvenom allows you to create a standard payload and deploy it on the target host for exploitation.

Pre-requisites:
Windows 10
Turn off the firewall — (You can still bypass the firewall running on a target).
Metasploit framework
Kali Linux

Turn off the Windows Firewall
This is how it looks when you disable the firewall on Windows 10.

Turn off real time protection, open Windows Security and click on “Virus & threat protection”

Uncheck the real-time protection

LET’S CREATE A PAYLOAD. — NOTE “I already have msfvenom installed on my Kali Linux.

Trying to find the list of payloads available.

Select the payloads by typing -p parameter.

LHOST is a Kali machine, -f is a file type and -o is a correct options to use with the module.

Hit Enter, and you allow the shell to create a payload for you. It names it as payload.exe

INTERESTING PART:- You can share this payload in USB stick or any media.

For now, let me start SimpleHTTPServer on Kali Linux and then from attacker machine, I will download the file from Kali box.

Let me connect to Windows 10 (Attacker machine).

Executing the above command in IE will create a reverse connection.

Click Save.

Now, you need to create a connection from Payload.exe to your machine. You need to use multi/handler module.

Start the metasploit framework console.

Type use multi/handler and set the payload to use reverse_tcp connection.

Set the local host you want to target.

Type exploit and hit enter to gain access to the shell and other tools what potentially gives control to the attacker.

I hope this was an interesting session! Thank you and stay safe.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Raghavendra Hiremath
Raghavendra Hiremath

Written by Raghavendra Hiremath

WE BELIEVE IN FREE AND OPEN SOURCE. My mission is to constantly learn and share the knowledge I gain so that you can use it to empower you.

No responses yet

Write a response