bash -c 'ip=10.10.10.10; for port in $(seq 1 65535); do proxychains -q bash -c "echo > /dev/tcp/$ip/$port" > /dev/null 2>&1 && echo -e "$port\033[K" & if [ $((port % 200)) -eq 0 ]; then wait; fi; echo -ne "$port/65535\r"; done; wait'
Port forwarding
First, run the chisel server in reverse mode on your host:
chiselserver-p8081--reverse
Then, connect the client to the server:
# Connect to chisel server on 10.10.10.10:8081# Forward your 127.0.0.1:8080 to 10.10.10.20:80chiselclient10.10.10.10:8081R:8080:10.10.10.20:80# Create proxy SOCKS5 on 127.0.0.1:1080chiselclient10.10.10.10:8081R:socks
# Forward port 8080 to 10.10.10.20:80socattcp-l:8080,fork,reuseaddrtcp:10.10.10.20:80
# Forward your 127.0.0.1:8080 to 10.10.10.20:80sshuser@10.10.10.10-L8080:127.0.0.1:80# Create proxy SOCKS5 on 127.0.0.1:1080sshuser@10.10.10.10-D1080