Skip to content

Commit ff581d5

Browse files
committed
fix: remove FTP
1 parent f14a5c0 commit ff581d5

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

‎pkg/utils/refang.go‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ func Refang(s string) string {
1313
"hXXp://", "http://",
1414
"hXXP://", "http://",
1515
"HXXP://", "HTTP://",
16-
"fxp://", "ftp://",
17-
"FXP://", "FTP://",
1816
"[.]", ".",
1917
"[@]", "@",
2018
"[:]", ":",

‎pkg/utils/refang_test.go‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ func TestRefang(t *testing.T) {
1515
{"HXXPS://EVIL[.]EXAMPLE[.]COM", "HTTPS://EVIL.EXAMPLE.COM"},
1616
{"hXXp://evil[.]example[.]com", "http://evil.example.com"},
1717
{"HXXP://EVIL[.]EXAMPLE[.]COM", "HTTP://EVIL.EXAMPLE.COM"},
18-
// FTP
19-
{"fxp://files[.]example[.]com", "ftp://files.example.com"},
20-
{"FXP://FILES[.]EXAMPLE[.]COM", "FTP://FILES.EXAMPLE.COM"},
2118
// Email addresses
2219
{"user[@]phishing[.]example[.]com", "user@phishing.example.com"},
2320
// Credentials in URI

0 commit comments

Comments
 (0)