← 输入框|github.com|刷新
Skip to content

Refactor Parser-SDK and Hook-SDK to use SCB-SDK - #250

Closed
nigthknight wants to merge 9 commits into
mainfrom
hash-finding
Closed

nigthknight wants to merge 9 commits into
mainfrom
hash-finding

Conversation

@nigthknight

Copy link
Copy Markdown
Member

If applied this PR will

  • Add a scb-sdk including all functions and vars used in both hook-sdk and parser-sdk
  • Refactor duplicated code from hook-sdk and parser-sdk into scb-sdk

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure npm test runs for the whole project.

Description

@rfelber rfelber added the enhancement New feature or request label Dec 21, 2020
@nigthknight nigthknight changed the title Add Hash over finding properties to finding Refactor Parser-SDK and Hook-SDK to use SCB-SDK Jan 4, 2021
@nigthknight
nigthknight force-pushed the hash-finding branch 3 times, most recently from acdb7e4 to c2a14f4 Compare February 8, 2021 12:40
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
I noticed that the code for the uploadFile function is also used in the
parser-sdk
I extracted the code for `uploadFile` into scb-sdk and refactored the
parser-sdk to use this function as well

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
I found that the hook-sdk as well as the parser-sdk are updating the
scans in the same way so I extracted the function `updateScanStatus`
into the scb-sdk

After moving the function there was no need to export the
`severityCount` function anymore so I removed the export for this
function

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
To enable us to use the scb-sdk in both parser- and hook-sdk whithout
publishing the scb-sdk to npm.

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
nigthknight and others added 2 commits February 10, 2021 12:36
I introduced a new Build step building the basic scb-sdk before building
parser- and hook-sdk

Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
@rfelber rfelber added the architecture Architecture changes label Mar 20, 2021
@rfelber rfelber linked an issue May 17, 2021 that may be closed by this pull request
@nigthknight

Copy link
Copy Markdown
Member Author

I'm closing this PR because refactoring the SDKs is not a priority at the moment and the branch is very outdated.
If it becomes a priority again, it should be refactored from scratch

@Weltraumschaf
Weltraumschaf deleted the hash-finding branch February 21, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture Architecture changes enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

➹ Implement a lightweight false-/positive-handling

2 participants