mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
new: SNI packet sniffer + sniffer refactoring.
This commit is contained in:
parent
55b9b1f189
commit
9cdf365b13
5 changed files with 182 additions and 22 deletions
24
core/swag.go
24
core/swag.go
|
@ -9,28 +9,42 @@ const (
|
|||
GREEN = "\033[32m"
|
||||
YELLOW = "\033[33m"
|
||||
|
||||
FG_BLACK = "\033[30m"
|
||||
FG_WHITE = "\033[97m"
|
||||
|
||||
BG_DGRAY = "\033[100m"
|
||||
BG_RED = "\033[41m"
|
||||
BG_GREEN = "\033[42m"
|
||||
BG_YELLOW = "\033[43m"
|
||||
BG_LBLUE = "\033[104m"
|
||||
|
||||
RESET = "\033[0m"
|
||||
)
|
||||
|
||||
const ON = GREEN + "✔" + RESET
|
||||
const OFF = RED + "✘" + RESET
|
||||
|
||||
// W for Wrap
|
||||
func W(e, s string) string {
|
||||
return e + s + RESET
|
||||
}
|
||||
|
||||
func Bold(s string) string {
|
||||
return BOLD + s + RESET
|
||||
return W(BOLD, s)
|
||||
}
|
||||
|
||||
func Dim(s string) string {
|
||||
return DIM + s + RESET
|
||||
return W(DIM, s)
|
||||
}
|
||||
|
||||
func Red(s string) string {
|
||||
return RED + s + RESET
|
||||
return W(RED, s)
|
||||
}
|
||||
|
||||
func Green(s string) string {
|
||||
return GREEN + s + RESET
|
||||
return W(GREEN, s)
|
||||
}
|
||||
|
||||
func Yellow(s string) string {
|
||||
return YELLOW + s + RESET
|
||||
return W(YELLOW, s)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue