Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aliases for psql and mongodb for nmap xml input compatibility #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ncrack-services
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ mysql 3306/tcp
ms-wbt-server 3389/tcp
rdp 3389/tcp
psql 5432/tcp
postgresql 5432/tcp
vnc 5801/tcp
vnc 5900/tcp
vnc 5901/tcp
Expand All @@ -45,4 +46,5 @@ couchbase 8091/tcp
cassandra 9160/tcp
cassandra 9042/tcp
mongodb 27017/tcp
mongod 27017/tcp
cvs 2401/tcp
4 changes: 2 additions & 2 deletions ncrack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -804,13 +804,13 @@ call_module(nsock_pool nsp, Connection *con)
ncrack_webform(nsp, con);
else if (!strcmp(name, "winrm"))
ncrack_winrm(nsp, con);
else if (!strcmp(name, "mongodb"))
else if (!strcmp(name, "mongodb") || !strcmp(name, "mongod"))
ncrack_mongodb(nsp, con);
else if (!strcmp(name, "pop3s"))
ncrack_pop3(nsp, con);
else if (!strcmp(name, "mysql"))
ncrack_mysql(nsp, con);
else if (!strcmp(name, "psql"))
else if (!strcmp(name, "psql") || !strcmp(name, "postgresql"))
ncrack_psql(nsp, con);
else if (!strcmp(name, "mssql"))
ncrack_mssql(nsp, con);
Expand Down