Dockerfile for the humble tool - tested on both amd & arm architectur… by MikeAnast · Pull Request #22 · rfc-st/humble (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation10 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

MikeAnast

…es and is working properly

Pull Request Template

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

@MikeAnast

…es and is working properly

@rfc-st

Hello!, @MikeAnast:

Thanks for the PR. One question (I don't usually work with Dockerfiles): what does 'apt-get install -y' actually do?, I understand nothing as it doesn't indicate any package to install, right?.

Regards

@rfc-st

Hi again, @MikeAnast:

After reviewing your PR I had to make some modifications:

Thanks for your time!; I will mention you in the 'Acknowledgements' section!.

Regards,

@MikeAnast

Hello rfc ! First of all, you did a wonderfull work !
You are right my bad, i contributed 10 lines of code and i have an error, my bad ! :P
I was trying to remove uncessary installations and forgot to remove it.

I would suggest also to upload a docker image to your docker hub.

You can run the following command to extract the report file from docker container in your local machine:
docker run -v $(pwd):/tmp --rm humble /bin/bash -c "python3 humble.py -u https://www.spacex.com -o json -b -op /tmp"

*I couldn't find a way to give names on the generated reports, it will be very usefull in future releases

Best regards,
Mike

rfc-st added a commit that referenced this pull request

Oct 22, 2024

@rfc-st

@rfc-st

Hi @MikeAnast:

First of all, thanks, for your great suggestion that made me a little bit wiser (interesting world of Docker ^^).

Take a look at this commit!, which includes this new section and, of course, my thanks.

And about your suggestion: What specific part of the name of the generated report do you think should be customizable?;
do you have an example at hand of how you would like to define such customization?.

Regards,

@MikeAnast

I would suggest all the name to be customizable in order to be more scalable. you then can use it in bash scripts or other integrations and it will be easier to parse the json files.

I usually use as example ZAProxy's documentation and structure since the tool is the most well known free vulnerability scanner and the devs are highly skilled !

Check the following link:
https://www.zaproxy.org/docs/docker/baseline-scan/

The example command that i am refering is the following:
docker run -v $(pwd):/zap/wrk/:rw -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py
-t https://www.example.com -g gen.conf -r testreport.html

With this command you run the tool in docker without any dependencies and store the testreport.html in your local computer, and thats it!

of course this is just a suggestion :)

@rfc-st

Hi, @MikeAnast!:

Do you propose maybe a new parameter whose value is the full name of the exported analysis?.

For example: python3 humble.py -u https://facebook.com -o html -of testreport

In this case the new parameter would be '-of' (output file), which in the above example would generate the file 'testreport.html'.

Regards,

@MikeAnast

@rfc-st

Hi @MikeAnast:

Not only does it sound good, but it is also very interesting. I'm getting to it right now! :).

Regards,

rfc-st added a commit that referenced this pull request

Oct 22, 2024

@rfc-st

@rfc-st

Hi, @MikeAnast:

Check out this!: 7208487

First iteration, I know. But its a start! :)

Regards,

@rfc-st

Hi, @MikeAnast:

After a quick fix (970d02a) both, Dockerfile logic and the new parameter 'of' (OUTPUT_FILE), are implemented.

Thanks!.

Regards,

2 participants

@MikeAnast @rfc-st