Projects STRLCPY prox5 Commits c5058bce
🤬
  • ■ ■ ■ ■ ■ ■
    list_management.go
    skipped 17 lines
    18 18   
    19 19  // LoadProxyTXT loads proxies from a given seed file and feeds them to the mapBuilder to be later queued automatically for validation.
    20 20  // Expects one of the following formats for each line:
    21  -// * 127.0.0.1:1080
    22  -// * 127.0.0.1:1080:user:pass
    23  -// * yeet.com:1080
    24  -// * yeet.com:1080:user:pass
    25  -// * [fe80::2ef0:5dff:fe7f:c299]:1080
    26  -// * [fe80::2ef0:5dff:fe7f:c299]:1080:user:pass
     21 +// - 127.0.0.1:1080
     22 +// - 127.0.0.1:1080:user:pass
     23 +// - yeet.com:1080
     24 +// - yeet.com:1080:user:pass
     25 +// - [fe80::2ef0:5dff:fe7f:c299]:1080
     26 +// - [fe80::2ef0:5dff:fe7f:c299]:1080:user:pass
    27 27  func (p5 *Swamp) LoadProxyTXT(seedFile string) (count int) {
    28 28   f, err := os.Open(seedFile)
    29 29   if err != nil {
    skipped 19 lines
    49 49   
    50 50  // LoadSingleProxy loads a SOCKS proxy into our map.
    51 51  // Expects one of the following formats:
    52  -// * 127.0.0.1:1080
    53  -// * 127.0.0.1:1080:user:pass
    54  -// * yeet.com:1080
    55  -// * yeet.com:1080:user:pass
    56  -// * [fe80::2ef0:5dff:fe7f:c299]:1080
    57  -// * [fe80::2ef0:5dff:fe7f:c299]:1080:user:pass
     52 +// - 127.0.0.1:1080
     53 +// - 127.0.0.1:1080:user:pass
     54 +// - yeet.com:1080
     55 +// - yeet.com:1080:user:pass
     56 +// - [fe80::2ef0:5dff:fe7f:c299]:1080
     57 +// - [fe80::2ef0:5dff:fe7f:c299]:1080:user:pass
    58 58  func (p5 *Swamp) LoadSingleProxy(sock string) (ok bool) {
    59 59   if sock, ok = filter(sock); !ok {
    60 60   return
    skipped 15 lines
    76 76   
    77 77  // LoadMultiLineString loads a multiine string object with proxy per line.
    78 78  // Expects one of the following formats for each line:
    79  -// * 127.0.0.1:1080
    80  -// * 127.0.0.1:1080:user:pass
    81  -// * yeet.com:1080
    82  -// * yeet.com:1080:user:pass
    83  -// * [fe80::2ef0:5dff:fe7f:c299]:1080
    84  -// * [fe80::2ef0:5dff:fe7f:c299]:1080:user:pass
     79 +// - 127.0.0.1:1080
     80 +// - 127.0.0.1:1080:user:pass
     81 +// - yeet.com:1080
     82 +// - yeet.com:1080:user:pass
     83 +// - [fe80::2ef0:5dff:fe7f:c299]:1080
     84 +// - [fe80::2ef0:5dff:fe7f:c299]:1080:user:pass
    85 85  func (p5 *Swamp) LoadMultiLineString(socks string) int {
    86 86   var count int
    87 87   scan := bufio.NewScanner(strings.NewReader(socks))
    skipped 14 lines
Please wait...
Page is in error, reload to recover