Git Product home page Git Product logo

Comments (11)

SAGEof6iixPATHS avatar SAGEof6iixPATHS commented on May 23, 2024 1

Glad I was able to help. :)

from cent.

xm1k3 avatar xm1k3 commented on May 23, 2024

Hi,
in the future I will implement new features to make cent better from this point of view.

from cent.

SAGEof6iixPATHS avatar SAGEof6iixPATHS commented on May 23, 2024

I think you should do something like this...

  1. Delete the duplicates from the cent folder like same cves or try comparing the content there is a tool named fdupes that can help you with that.
  2. Update the original nuclei templates and then install all this custom templates and then compare them, and delete the duplicates from the cent folder.

Reference:
https://www.tecmint.com/fdupes-find-and-delete-duplicate-files-in-linux/

*Also try other tools maybe you will find something better than this.

from cent.

xm1k3 avatar xm1k3 commented on May 23, 2024

Hi,
I really want to thank you, your reference helped me a lot.
I released version 1.0 of cent with template deduplication using fdupes.

Try it now and let me know if works

from cent.

SAGEof6iixPATHS avatar SAGEof6iixPATHS commented on May 23, 2024

How do you remove duplicates??
Do you compare the original templates and custom templates?

from cent.

SAGEof6iixPATHS avatar SAGEof6iixPATHS commented on May 23, 2024

And also remove this: https://github.com/pikpikcu/nuclei-templates
That user just forked the original templates...

from cent.

xm1k3 avatar xm1k3 commented on May 23, 2024

How do you remove duplicates??
Do you compare the original templates and custom templates?

Hi,
the dedupe of the templates is done through hashing thanks to the @hakluke pull request.
You can check the code here: RemoveDuplicates() function

...
func RemoveDuplicates(path string, console bool) {
	fmt.Println("Removing duplicate templates...")
	files := getFilePaths(path)
	hashes := make(map[string]string)

	// get file hashes
	for _, file := range files {
		hashes[file] = getFileHash(file)
	}
      ...
      ...
...

from cent.

xm1k3 avatar xm1k3 commented on May 23, 2024

And also remove this: https://github.com/pikpikcu/nuclei-templates
That user just forked the original templates...

I apologize for this, I have not updated the readme with all the links anymore, but if you check the .cent.yaml file you will see that it is not there and it has been updated with the new pikpikcu repo ( my-nuclei-templates )

from cent.

SAGEof6iixPATHS avatar SAGEof6iixPATHS commented on May 23, 2024

Hi!
Ok! But do you remove the templates which are already in pd's repo?
Because it will just burst with duplicates templates and disrupt the server with same requests twice...

from cent.

xm1k3 avatar xm1k3 commented on May 23, 2024

Yes, I recommend you to insert the main repo also in the .cent.yaml, in this way cent will also remove all the possible duplicates with respect to the main repo as well

...
community-templates:
  - https://github.com/projectdiscovery/nuclei-templates.git
...

from cent.

SAGEof6iixPATHS avatar SAGEof6iixPATHS commented on May 23, 2024

Oh Okay!
My bad, I didn't notice it. I will let you know if I have any other ideas or something, closing this issue for now.
Have a great day!

from cent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.