hdoria / hntool Goto Github PK
View Code? Open in Web Editor NEWHardening Tool for *nixes
License: GNU General Public License v2.0
Hardening Tool for *nixes
License: GNU General Public License v2.0
if sshd_config have set the value GraceClientAlive is complex value like 2m the program crash, because program use int() function convert this complex string value, thus cause the program error.
Should be great create a plugin to check docker security host.
We can use this document as reference: https://docs.google.com/viewer?a=v&pid=forums&srcid=MTM5NjUxMzkxMTQ4MjY1MDUxOTYBMDc4NTQ0OTA3MTYwMzYyMjA3NDIBamRaRHBSelJodDRKATAuMQEBdjI
Return true if only one file is valid.
def requirements_met(pfile):
'''This method should check if all the requirements (files)
are met (one or more files can be found on the system)'''
for f in pfile:
if os.path.isfile(f):
return True # <---------------------
return False
and add install instructions using pip in the readme.
The recommended install method:
python setup.py install --prefix /usr/ --root /
Installs packages to /usr/lib/pythonx.x/site-packages. Debian (and its derivatives) stopped putting site-packages in their sys.path, and now uses dist-packages instead, so you'll get module not found errors for all of the required modules. the --prefix option overrides Debian's default path for installing modules.
Running setup.py like this works fine:
python setup.py install
Due https://fedoraproject.org/wiki/Common_Rpmlint_issues#incorrect-fsf-address I need to tell upstream that hntool should fix this issue.
List of afftected files:
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/apache.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/remote.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/ssh.py
hntool.noarch: E: incorrect-fsf-address /usr/share/doc/hntool/LICENSE
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/util.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/ports.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/vsftpd.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/init.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/postgresql.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/proftpd.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/php.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/filesystems.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/authentication.py
hntool.noarch: E: incorrect-fsf-address /usr/bin/hntool
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/system-wide.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/output/terminal.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/core.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/output/init.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/output/html.py
hntool.noarch: E: incorrect-fsf-address /usr/lib/python2.7/site-packages/HnTool/modules/rule.py
Another question, I'm maintaining hntool package in Fedora, but upstream looks dead, do you have plans to keep hntool development or should I retire it from Fedora?
Thanks,
Filipe R.
if sshd_config have not set Protocol config item, the program crash, because program can't get the lines['Protocol'] value.
CentOS Linux release 7.4.1708 (Core)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.