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:
chisel server -p 8081 --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:80
chisel client 10.10.10.10:8081 R:8080:10.10.10.20:80
# Create proxy SOCKS5 on 127.0.0.1:1080
chisel client 10.10.10.10:8081 R:socks
# Forward port 8080 to 10.10.10.20:80
socat tcp-l:8080,fork,reuseaddr tcp:10.10.10.20:80
# Forward your 127.0.0.1:8080 to 10.10.10.20:80
ssh user@10.10.10.10 -L 8080:127.0.0.1:80
# Create proxy SOCKS5 on 127.0.0.1:1080
ssh user@10.10.10.10 -D 1080