LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-06-2011, 07:46 AM   #1
ashu2188
LQ Newbie
 
Registered: Jun 2011
Posts: 18

Rep: Reputation: Disabled
Unhappy strange problem with metasploit


I am facing this error...

Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 7175?
{"adapter"=>"postgresql", "database"=>"msf3", "username"=>"msf3", "password"=>"7f878914", "host"=>"127.0.0.1", "port"=>7175, "pool"=>75, "timeout"=>5}



I saw that 2 lines of host and port and the other 2 in the long message which has the same host and port...is there something wrong with running it with this port? and if i need to change it, where should i change this?

Last edited by ashu2188; 07-06-2011 at 09:18 AM.
 
Old 07-06-2011, 08:07 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Metasploit is a tool that may be used for legitimate purposes such as performing penetration testing on your own server. It can also be used for illicit purposes. Regardless of your intentions, we in the forum have no way of verifying them and even if your usage is for legitimate purposes, helping you with this tool would provide data that can be used by the wrong sorts. This is why rule 13 exists:
Quote:
Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
This thread has been reported to the moderators with the recommendation that it be closed.

My recommendation would be to ask this type of question in a more appropriate venue than LQ.
 
Old 07-06-2011, 08:20 AM   #3
ashu2188
LQ Newbie
 
Registered: Jun 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Noway2 View Post
Metasploit is a tool that may be used for legitimate purposes such as performing penetration testing on your own server. It can also be used for illicit purposes. Regardless of your intentions, we in the forum have no way of verifying them and even if your usage is for legitimate purposes, helping you with this tool would provide data that can be used by the wrong sorts. This is why rule 13 exists:

This thread has been reported to the moderators with the recommendation that it be closed.

My recommendation would be to ask this type of question in a more appropriate venue than LQ.

I am a student of Cyber Security and I am learning the VAPT. We were taught metasploit framework today and I am given a task to debug this thing which comes in 2 of our Network Pc while running metasploit.

And if you feel like I should post this to somewhere else, I would like you to suggest me the links where I can post thing.
 
Old 07-06-2011, 08:58 AM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Quote:
I am a student of Cyber Security and I am learning the VAPT. We were taught metasploit framework today and I am given a task to debug this thing which comes in 2 of our Network Pc while running metasploit.
Please try to understand that by posting any sort of how to information regarding tools like metasploit may be used for ill purposes and this could damage the reputation of LQ.
Quote:
if you feel like I should post this to somewhere else, I would like you to suggest me the links where I can post thing
The metasploit web site lists the official support avenues, including the mailing list and IRC channel. The organization that you are a student of, should also have some recommendations for official channels to obtain support.
 
Old 07-06-2011, 09:15 AM   #5
ashu2188
LQ Newbie
 
Registered: Jun 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
ok..no problems...I am deleting this post as i have no ill intentions.I just wanted to solve my problem.

But I would really request the admin to make a forum for this where we can put up such questions.
So in future anybody faces such question, he/she should not waste his time to do trial and error and he can find the correct solution instantly.
 
Old 07-06-2011, 09:19 AM   #6
ashu2188
LQ Newbie
 
Registered: Jun 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Noway2 View Post
Please try to understand that by posting any sort of how to information regarding tools like metasploit may be used for ill purposes and this could damage the reputation of LQ.

The metasploit web site lists the official support avenues, including the mailing list and IRC channel. The organization that you are a student of, should also have some recommendations for official channels to obtain support.


I have modified it now as i couldn't find how i can delete it as m a new to this site..Hope its fine with you.
 
Old 07-06-2011, 09:21 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,276
Blog Entries: 1

Rep: Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054
Are you sure postgres is running?

Last edited by szboardstretcher; 07-06-2011 at 09:24 AM.
 
Old 07-06-2011, 09:25 AM   #8
ashu2188
LQ Newbie
 
Registered: Jun 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by szboardstretcher View Post
Hello all,

Im interested in understanding the issue mentioned in this thread. The rule of LQ seems to say that there are no posts allowed about "Cracking, Piracy, Warez, etc..." not the tools themselves (within reason I'm sure.)

For example, if I were having trouble compiling "nmap" or "scapy" would that really count as "Cracking?" I ask because it seems like the poster is just having a problem with a program running, more specifically, a program that is having a time connecting to a postgres database.

And if we are to not answer a question about getting Metasploit running, would we also not have to ignore requests for help for Scapy, Nmap, Hping, Nikto, Nessus, Skipfish, Hydra, Arping, Arp-scan, Ngrep, Kismet, Bash, C++, etc..? As those are programs regularly used for PenTesting and Various stages of Cracking?
Well ...thank you for understanding my problem.. Can you please provide me the solution about this error?
 
Old 07-06-2011, 09:47 AM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,276
Blog Entries: 1

Rep: Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054Reputation: 1054
I'd like to, but I'm sort of waiting for a response from the moderators to see whether this is allowed in this particular case, as I do not want to break any rules. Thanks for understanding.
 
Old 07-06-2011, 11:55 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Closed for now (to remove temptation) while we're discussing the issue at
hand among mods. The OP should definitely discuss the problem with his
tutor, or search the metasploit site regarding the problem.

Last edited by Tinkster; 07-06-2011 at 11:56 PM.
 
Old 07-07-2011, 04:40 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
And re-opened.

Sorry for any inconvenience.
 
Old 07-07-2011, 05:35 PM   #12
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Quote:
And re-opened. Sorry for any inconvenience.
Tinkster, would it be possible to get some insight into what is and is not acceptable? If you would prefer, please feel free to contact me off list to discuss.
 
Old 07-07-2011, 06:20 PM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,451
Blog Entries: 54

Rep: Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893Reputation: 2893
Jeremy stated he is not aware that he ever put an outright ban on the discussion of tools like Metasploit. So if I read that correctly that means any pentesting tool questions apparently are OK...
 
Old 07-07-2011, 07:13 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally Posted by Noway2 View Post
Tinkster, would it be possible to get some insight into what is and is not acceptable? If you would prefer, please feel free to contact me off list to discuss.
The way I read Jeremy's statement:

Things are up to interpretation, and the use-case is more important
than the actual tool in question; if we have good reason to believe
that the use won't be malicious we can give support with the tools
use. But then again ... I may not have gotten that quite right.



:}

Cheers,
Tink
 
Old 07-07-2011, 08:49 PM   #15
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Unspawn, Tinkster, thank you both for the explanation and clarification.

ashu2188, please accept my apologies for any inconvenience caused. I am glad that your question received blessing. I am sorry that it became a catalyst regarding the potentially grey area topic of pen testing. Are you still facing the same difficulty or have you made progress?

The error message, "Connection refused" typically means that there is nothing listening on that port or there is a firewall in between. I would recommend running the command 'netstat -pane | grep 1715' and see if any process is listening on that port. If not, check the output of ps and grep for postgres to see if SQL is running. If all that looks good, make sure you don't have a firewall in place that is keeping the port closed. Another possibility is that you have two applications trying to run on the same port. If there is already an application using this port, the other one may not even start.
 
  


Reply

Tags
backtrack, metasploit, postgresql


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Metasploit Error dirtydog7655 Linux - Security 5 03-09-2011 08:00 PM
metasploit msrpcd help pratorian Linux - Networking 3 01-25-2011 06:58 AM
problem in updating metasploit framework in ubuntu 9.10 BlueSkull Linux - Software 2 04-20-2010 01:02 PM
metasploit dellthinker Linux - Software 0 01-21-2007 05:49 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration