-
Notifications
You must be signed in to change notification settings - Fork 14k
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 JetBrains TeamCity HTTP Login Scanner #19601
base: master
Are you sure you want to change the base?
Conversation
class Teamcity < HTTP | ||
DEFAULT_PORT = 8111 | ||
LIKELY_PORTS = [8111] | ||
LIKELY_SERVICE_NAMES = ['skynetflow'] # Comes from nmap 7.95 on MacOS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just a mismatch of scanning port 8111:
return { status: UNABLE_TO_CONNECT, proof: res } if res.body.match?('ajax') # TODO: Get the exact error message here. | ||
return { status: INVALID_PUBLIC_PART, proof: res } if res.body.match?('publicKeyExpired') # TODO: Invalid public part? Or Incorrect/Unable_to_connect? | ||
|
||
{ status: :success, proof: res } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding some positive assertions here to verify we're logged in, versus defaulting to success?
I guess it might be better to have false positives so that users report bugs for us to fix, versus false negatives that cause users to miss valid creds though 🤔
a952647
to
520ac7e
Compare
This PR adds in a new login scanner module that targets the JetBrains TeamCity service.
Docker
You can easily set up a TeamCity instance using Docker:
Latest:
10.0:
9.1.7:
Conveniently, the oldest available image in Docker and the newest images share the same encryption scheme and both work out of the box with no additional configuration or checking of the server version needed.
Verification
msfconsole
use scanner/teamcity/teamcity_login
run rport=8111 rhost=127.0.0.1 username=... password=...
Example
Non-English Support