Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "h12.me/socks"
- "strconv"
- )
- const (
- PROXY_ADDR = "127.0.0.1:9050"
- )
- func main() {
- WEB_PORTS := [...]int{80, 8080, 81, 82, 8008, 8443}
- for i := 0; i < len(WEB_PORTS); i++ {
- var port int = WEB_PORTS[i]
- dport := strconv.Itoa(port)
- //fmt.Printf("Attempting connection on port %d\n", port)
- _, err := socks.DialSocksProxy(socks.SOCKS5, PROXY_ADDR)("", "ADDRESS.onion:"+dport)
- if err != nil {
- //fmt.Println(err)
- } else {
- fmt.Printf("Successful connection %s\n", dport)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement