From ced02d5deef1865ee48ae14ffb082933c258fdd2 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Sun, 23 May 2021 21:51:52 +0200 Subject: [PATCH] update --- crawler/colly.go | 22 ++++++++++++++++++++++ crawler/requests.go | 22 ++++++++++++++++++++++ input/check.go | 22 ++++++++++++++++++++++ input/flags.go | 22 ++++++++++++++++++++++ input/input.go | 22 ++++++++++++++++++++++ main.go | 27 ++++++++++++++++++++++++--- output/beautify.go | 22 ++++++++++++++++++++++ output/color.go | 22 ++++++++++++++++++++++ output/examples.go | 22 ++++++++++++++++++++++ output/help.go | 22 ++++++++++++++++++++++ output/html.go | 22 ++++++++++++++++++++++ output/output.go | 22 ++++++++++++++++++++++ output/txt.go | 22 ++++++++++++++++++++++ scanner/endpoints.go | 22 ++++++++++++++++++++++ scanner/extensions.go | 22 ++++++++++++++++++++++ scanner/scanner.go | 27 ++++++++++++++++++++++----- scanner/secrets.go | 22 ++++++++++++++++++++++ utils/files.go | 22 ++++++++++++++++++++++ utils/slice.go | 22 ++++++++++++++++++++++ 19 files changed, 420 insertions(+), 8 deletions(-) diff --git a/crawler/colly.go b/crawler/colly.go index ca428a4..37fb8e6 100644 --- a/crawler/colly.go +++ b/crawler/colly.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package crawler import ( diff --git a/crawler/requests.go b/crawler/requests.go index d606db8..9346ed9 100644 --- a/crawler/requests.go +++ b/crawler/requests.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package crawler import ( diff --git a/input/check.go b/input/check.go index 145122f..c6d8b48 100644 --- a/input/check.go +++ b/input/check.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package input import ( diff --git a/input/flags.go b/input/flags.go index 4a4a7ce..135c51a 100644 --- a/input/flags.go +++ b/input/flags.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package input import ( diff --git a/input/input.go b/input/input.go index 2df74da..c36b4cf 100644 --- a/input/input.go +++ b/input/input.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package input import ( diff --git a/main.go b/main.go index 6a7c455..00184b9 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package main import ( @@ -35,13 +57,12 @@ func main() { os.Exit(0) } + output.Beautify() + // ----------- TODO: check flags.dataPost -------------- data, _ := input.CheckDataPost(flags.DataPost) // ----------- TODO: check ALL input ------------------- - - output.Beautify() - input.CheckFlags(flags) var finalResult []string diff --git a/output/beautify.go b/output/beautify.go index 722dafb..2646cbe 100644 --- a/output/beautify.go +++ b/output/beautify.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import ( diff --git a/output/color.go b/output/color.go index 6f508af..f3602e9 100644 --- a/output/color.go +++ b/output/color.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import ( diff --git a/output/examples.go b/output/examples.go index 45d792a..53944bb 100644 --- a/output/examples.go +++ b/output/examples.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import "fmt" diff --git a/output/help.go b/output/help.go index 8fba49b..3d1c84e 100644 --- a/output/help.go +++ b/output/help.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import "fmt" diff --git a/output/html.go b/output/html.go index 84b0819..90fec94 100644 --- a/output/html.go +++ b/output/html.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import ( diff --git a/output/output.go b/output/output.go index de067a0..a5c1a06 100644 --- a/output/output.go +++ b/output/output.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import ( diff --git a/output/txt.go b/output/txt.go index b5d6340..7735253 100644 --- a/output/txt.go +++ b/output/txt.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package output import ( diff --git a/scanner/endpoints.go b/scanner/endpoints.go index cd46f0e..986b2dd 100644 --- a/scanner/endpoints.go +++ b/scanner/endpoints.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package scanner //GetJuicyParameters diff --git a/scanner/extensions.go b/scanner/extensions.go index 610a6a6..bcb725c 100644 --- a/scanner/extensions.go +++ b/scanner/extensions.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package scanner //FileType diff --git a/scanner/scanner.go b/scanner/scanner.go index 40b9675..3cf47f6 100644 --- a/scanner/scanner.go +++ b/scanner/scanner.go @@ -1,10 +1,27 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package scanner -//Scan -func Scan() { - -} - //isEmailUrl func isEmailUrl(inp string) bool { return inp[:7] == "mailto:" diff --git a/scanner/secrets.go b/scanner/secrets.go index 22af155..b78a8ae 100644 --- a/scanner/secrets.go +++ b/scanner/secrets.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package scanner //Secret diff --git a/utils/files.go b/utils/files.go index e1b1085..d90ad85 100644 --- a/utils/files.go +++ b/utils/files.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package utils import ( diff --git a/utils/slice.go b/utils/slice.go index 0a64230..fa30883 100644 --- a/utils/slice.go +++ b/utils/slice.go @@ -1,3 +1,25 @@ +/* +========== +Cariddi +========== + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see http://www.gnu.org/licenses/. + + @Repository: https://github.com/edoardottt/cariddi + @Author: edoardottt, https://www.edoardoottavianelli.it +*/ + package utils //removeDuplicateValues