mirror of
https://github.com/edoardottt/cariddi.git
synced 2026-09-28 12:34:58 +02:00
Add license in header
This commit is contained in:
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package crawler
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package crawler
|
||||
|
||||
@@ -20,6 +20,7 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
|
||||
* Disclaimer *: Code partially taken from:
|
||||
https://github.com/gocolly/colly/blob/v1.2.0/extensions/random_user_agent.go
|
||||
@@ -34,7 +35,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
//Firefox versions
|
||||
//Firefox versions
|
||||
var ffVersions = []float32{
|
||||
58.0,
|
||||
57.0,
|
||||
@@ -54,7 +55,7 @@ var chromeVersions = []string{
|
||||
"37.0.2062.124",
|
||||
}
|
||||
|
||||
//Operating system
|
||||
//Operating system
|
||||
var osStrings = []string{
|
||||
"Macintosh; Intel Mac OS X 10_10",
|
||||
"Windows NT 10.0",
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package input
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package input
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package input
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
|
||||
+8
-6
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
@@ -29,7 +31,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
//EncapsulateGreen takes as input a string and
|
||||
//EncapsulateGreen takes as input a string and
|
||||
//print a green prefix
|
||||
func EncapsulateGreen(inp string) {
|
||||
// Create a custom print function for convenience
|
||||
@@ -38,7 +40,7 @@ func EncapsulateGreen(inp string) {
|
||||
fmt.Println(inp)
|
||||
}
|
||||
|
||||
//EncapsulateRed takes as input a string and
|
||||
//EncapsulateRed takes as input a string and
|
||||
//print a red prefix
|
||||
func EncapsulateRed(inp string) {
|
||||
// Create a custom print function for convenience
|
||||
@@ -47,7 +49,7 @@ func EncapsulateRed(inp string) {
|
||||
fmt.Println(inp)
|
||||
}
|
||||
|
||||
//EncapsulateYellow takes as input a string and
|
||||
//EncapsulateYellow takes as input a string and
|
||||
//print a yellow prefix
|
||||
func EncapsulateYellow(inp string) {
|
||||
// Create a custom print function for convenience
|
||||
@@ -56,7 +58,7 @@ func EncapsulateYellow(inp string) {
|
||||
fmt.Println(inp)
|
||||
}
|
||||
|
||||
//EncapsulateCustomGreen takes as input a string and
|
||||
//EncapsulateCustomGreen takes as input a string and
|
||||
//print it with the green color
|
||||
func EncapsulateCustomGreen(alert string, inp string) {
|
||||
// Create a custom print function for convenience
|
||||
@@ -65,7 +67,7 @@ func EncapsulateCustomGreen(alert string, inp string) {
|
||||
fmt.Println(inp)
|
||||
}
|
||||
|
||||
//EncapsulateCustomRed takes as input a string and
|
||||
//EncapsulateCustomRed takes as input a string and
|
||||
//print it with the red color
|
||||
func EncapsulateCustomRed(alert string, inp string) {
|
||||
// Create a custom print function for convenience
|
||||
@@ -74,7 +76,7 @@ func EncapsulateCustomRed(alert string, inp string) {
|
||||
fmt.Println(inp)
|
||||
}
|
||||
|
||||
//EncapsulateCustomYellow takes as input a string and
|
||||
//EncapsulateCustomYellow takes as input a string and
|
||||
//print it with the yellow color
|
||||
func EncapsulateCustomYellow(alert string, inp string) {
|
||||
// Create a custom print function for convenience
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package output
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package scanner
|
||||
|
||||
@@ -12,8 +12,12 @@ 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
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package scanner
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package scanner
|
||||
@@ -43,7 +45,7 @@ type FileTypeMatched struct {
|
||||
func GetExtensions() []FileType {
|
||||
//extensions contains a list of known extensions
|
||||
//and the TYPICAL (also say `in general`) associated severity.
|
||||
//Why in general? Because a python file can be anything, it can
|
||||
//Why in general? Because a python file can be anything, it can
|
||||
//contain secret data or not.
|
||||
var extensions = []FileType{
|
||||
{"key", 1},
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package scanner
|
||||
|
||||
+3
-1
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package scanner
|
||||
@@ -27,7 +29,7 @@ package scanner
|
||||
// Name = the name that identifies the secret
|
||||
// Description
|
||||
// Regex = The regular expression matching the secret
|
||||
// FalsePositives = A list of known false positives
|
||||
// FalsePositives = A list of known false positives
|
||||
// PoC = cli command to check if the secret is valid or not
|
||||
type Secret struct {
|
||||
Name string
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package utils
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package utils
|
||||
|
||||
@@ -19,6 +19,8 @@ along with this program. If not, see http://www.gnu.org/licenses/.
|
||||
@Repository: https://github.com/edoardottt/cariddi
|
||||
|
||||
@Author: edoardottt, https://www.edoardoottavianelli.it
|
||||
|
||||
@License: https://github.com/edoardottt/cariddi/blob/main/LICENSE
|
||||
*/
|
||||
|
||||
package utils
|
||||
|
||||
Reference in New Issue
Block a user