Skip to content

Comments

🚧 [Consistency] Create New Scanner makefile command#706

Merged
nigthknight merged 14 commits intomainfrom
consistency/new-scanner-makefile
Oct 13, 2021
Merged

🚧 [Consistency] Create New Scanner makefile command#706
nigthknight merged 14 commits intomainfrom
consistency/new-scanner-makefile

Conversation

@SebieF
Copy link
Contributor

@SebieF SebieF commented Oct 5, 2021

Closes #684.

Once applied, this PR adds a new command "create-new-scanner" to the Makefile. Via "NAME=MY-NEW-SCANNER", a new name can be given. All newly added template files will be copied to a new directory with the provided name and all applicable values will be set to the new scanner name.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make codeclimate checks happy

SebieF and others added 9 commits September 28, 2021 15:05
Includes all generic files that we use for the scanners. "New-scanner" gets replaced in the makefile with a provided scanner name. Based on nmap and whatweb directories.

Signed-off-by: Sebastian <[email protected]>
The new commands copies all files from the template directory .templates/new-scanner to a new folder with name provided as an argument to the make command (make create-new-scanner NAME=SCANNER-NAME). Replaces every occurence of new-scanner in file contents or names with the provided name

Signed-off-by: Sebastian <[email protected]>
Signed-off-by: GitHub Actions <[email protected]>
Consistency with other files

Signed-off-by: Sebastian <[email protected]>
…files

1. Replacing array command with list of parameters
2. Replacing incorrect copied "nmap-json" type with "new-scanner-json"

Signed-off-by: Sebastian <[email protected]>
@SebieF SebieF added this to the v3.3.0 milestone Oct 5, 2021
@SebieF SebieF self-assigned this Oct 5, 2021
@SebieF SebieF changed the title Consistency/new scanner makefile 🚧 [Consistency] Create New Scanner makefile command Oct 5, 2021
@SebieF SebieF requested a review from nigthknight October 12, 2021 10:10
@SebieF SebieF added the enhancement New feature or request label Oct 12, 2021
Copy link
Member

@nigthknight nigthknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just one spelling mistake and some discussable comments :)

SebieF and others added 4 commits October 12, 2021 13:08
@SebieF SebieF requested a review from nigthknight October 12, 2021 11:10
@nigthknight nigthknight enabled auto-merge October 12, 2021 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚧 [Consistency] Adding template files and a make command to create new scanners

2 participants