HexaCluster / pgdsat

PostgreSQL Database Security Assessment Tool
https://hexacluster.ai/
GNU General Public License v3.0
212 stars 10 forks source link

Died at lib/PGDSAT.pm line 1612 #8

Closed guruguruguru closed 5 months ago

guruguruguru commented 5 months ago

Hey,

I just wanted to test the tool but running it gives me the following error after some time:

(test) - postgres@XXX-a[pgdsat-1.1] perl -I ./lib ./pgdsat -U postgres -h /tmp -d postgres -o report.html Died at lib/PGDSAT.pm line 1612. perl-bignum perl-Math-BigRat are installed.

Thanks, Dennis

darold commented 5 months ago

Commit c8c1dbf will prevent pgdsat to die and reports the source of the error. Can you please give it a try and post the error message returned?

guruguruguru commented 5 months ago

Hey @darold , thank you that fixed it!

guruguruguru commented 5 months ago

Sorry, I forgot the errors: `(test) - postgres@qp-XXX1-a[pgdsat-1.1] perl -I ./lib ./pgdsat -U postgres -h /tmp -d postgres -o report.html

ERROR: fail to get ip range from ( XXX-b.portaldb.server.lan, trust ).

ERROR: fail to get ip range from ( XXX-a.portaldb.server.lan, trust ).

ERROR: fail to get ip range from ( XXX-b.portaldb.server.lan, trust ).

ERROR: fail to get ip range from ( XXX-a.portaldb.server.lan, trust ).

ERROR: fail to get ip range from ( XXX.server.lan, scram-sha-256 ).

ERROR: fail to get ip range from ( localhost, md5 ).

ERROR: fail to get ip range from ( XXX.portaldb.server.lan, md5 ).

ERROR: fail to get ip range from ( localhost, md5 ). `

darold commented 5 months ago

Thanks, there is a bug here that will be fixed asap.

darold commented 5 months ago

Commit e97463d fixes this issue.