Sha256: 63b01661bf39416c16251fd04dc5015960e89c7a470ce8bcbe861ff263e7a55a

Contents?: true

Size: 651 Bytes

Versions: 792

Compression:

Stored size: 651 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'pwn'

msfrpcd_yaml_conf = ARGV[0].to_s.strip.chomp
rhosts = ARGV[1].to_s.strip.chomp
rport = ARGV[2].to_s.strip.chomp

logger = PWN::Plugins::PWNLogger.create

logger.info('MSF Postgres Login for ' << rhosts)

results = PWN::MSF::PostgresLogin.exploit(
  msfrpcd_yaml_conf: msfrpcd_yaml_conf,
  rhosts: rhosts,
  rport: rport
)

File.write("#{rhosts}_msf_postgres_login.txt", results['data'])

if results['data'].include?('- LOGIN SUCCESSFUL:')
  logger.error(
    "Successful Postgres AuthN!!!  See #{rhosts}_msf_postgres_login.txt for more information."
  )
end

# TODO: - Publish as HTML

Version data entries

792 entries across 792 versions & 1 rubygems

Version Path
pwn-0.5.214 bin/pwn_msf_postgres_login
pwn-0.5.213 bin/pwn_msf_postgres_login
pwn-0.5.212 bin/pwn_msf_postgres_login
pwn-0.5.211 bin/pwn_msf_postgres_login
pwn-0.5.210 bin/pwn_msf_postgres_login
pwn-0.5.209 bin/pwn_msf_postgres_login
pwn-0.5.207 bin/pwn_msf_postgres_login
pwn-0.5.206 bin/pwn_msf_postgres_login
pwn-0.5.205 bin/pwn_msf_postgres_login
pwn-0.5.204 bin/pwn_msf_postgres_login
pwn-0.5.203 bin/pwn_msf_postgres_login
pwn-0.5.202 bin/pwn_msf_postgres_login
pwn-0.5.201 bin/pwn_msf_postgres_login
pwn-0.5.200 bin/pwn_msf_postgres_login
pwn-0.5.199 bin/pwn_msf_postgres_login
pwn-0.5.198 bin/pwn_msf_postgres_login
pwn-0.5.197 bin/pwn_msf_postgres_login
pwn-0.5.196 bin/pwn_msf_postgres_login
pwn-0.5.195 bin/pwn_msf_postgres_login
pwn-0.5.194 bin/pwn_msf_postgres_login