grep

package
v0.0.0-...-64249c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package grep : It executes grep commands on a computer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin(src string, dest string)

Admin : Check if the files that are in the dest folder have the following patterns in it, "admin", "adm". It stores the results in a specific file, named as followed grep-"motif".txt, in the "dest" folder.

func HTTP

func HTTP(src string, dest string)

HTTP : Check if the files that are in the dest folder have some urls. grep command used is : grep -Eo '(http|https)://[^/"]+' -R .

func Key

func Key(src string, dest string)

Key : Check if the files that are in the dest folder have the following patterns in it, "key". It stores the results in a specific file, named as followed grep-"motif".txt, in the "dest" folder.

func Motif

func Motif(motif string, src string, dest string)

Motif : Check if the files that are in the dest folder have some urls. grep command used is : grep -Eo motif -R .

func Passwd

func Passwd(src string, dest string)

Passwd : Check if the files that are in the dest folder have the following patterns in it, "pass", "passwd", "password". It stores the results in a specific file, named as followed grep-"motif".txt, in the "dest" folder.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL