QGB / gohs

go http server url eval system cmd
MIT License
1 stars 1 forks source link

!curl -vvvik --socks5 192.168.8.8:21080 http://172.17.0.7:1122/curl%20-vvvik%20https%3A%2Fmyip.ipip.net%2F #2

Open QGB opened 2 years ago

QGB commented 2 years ago
!curl -vvvik --socks5 192.168.8.8:21080  http://172.17.0.7:1122/curl%20-vvvik%20https%3A%2Fmyip.ipip.net%2F          

curl -vvvik --socks5 192.168.8.8:21080  'http://172.17.0.7:1122/curl%20-vvvik%20https%3A%2Fmyip.ipip.net%2F'
QGB commented 2 years ago
qgb@ubuntu:~/github$ curl -vvvik --socks5 192.168.8.8:21080  'http://172.17.0.7:1122/curl%20-vvvik%20https%3A%2Fmyip.ipip.net%2F'
*   Trying 192.168.8.8...
* 172
* 17
* 0
* 7
* Connected to 192.168.8.8 (192.168.8.8) port 21080 (#0)
> GET /curl%20-vvvik%20https%3A%2Fmyip.ipip.net%2F HTTP/1.1
> Host: 172.17.0.7:1122
> User-Agent: curl/7.47.0
> Accept: */*                                                                                                                                                                                                [48/1975]
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Sun, 19 Dec 2021 11:48:29 GMT
Date: Sun, 19 Dec 2021 11:48:29 GMT
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< Transfer-Encoding: chunked
Transfer-Encoding: chunked

< 
[]string{"curl", "-vvvik", "https:/myip.ipip.net/"}
  %!T(MISSING)otal    %!R(MISSING)eceived %!X(MISSING)ferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 104.22.31.153:443...
* TCP_NODELAY set
* Connected to myip.ipip.net (104.22.31.153) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [2317 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [80 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Jun 18 00:00:00 2021 GMT
*  expire date: Jun 17 23:59:59 2022 GMT
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x562f019b3e10)
} [5 bytes data]
> GET / HTTP/2
> Host: myip.ipip.net
> user-agent: curl/7.68.0
> accept: */*
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [238 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [238 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
} [5 bytes data]
< HTTP/2 200 
< date: Sun, 19 Dec 2021 11:48:29 GMT
< content-type: text/plain; charset=utf-8
< content-length: 89
< cf-cache-status: DYNAMIC
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< server: cloudflare
< cf-ray: 6c0066f31ed95227-LAX
< alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
< 
{ [89 bytes data]
100    89  100    89    0     0   2617      0 --:--:-- --:--:-- --:--:--  2617
* Connection #0 to host myip.ipip.net left intact

HTTP/2 200 
date: Sun, 19 Dec 2021 11:48:29 GMT
content-type: text/plain; charset=utf-8
content-length: 89
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 6c0066f31ed95227-LAX
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400

当前 IP:XXXXXXXXXXXXXXXXXXXXXXX

* Connection #0 to host 172.17.0.7 left intact
qgb@ubuntu:~/github$ 
QGB commented 2 years ago
qgb@ubuntu:~/github$ ALL_PROXY="socks5h://192.168.8.8:21080" curl -vvvik 'http://myip.ipip.net/'                                                                                                                      
*   Trying 192.168.8.8...
* Connected to 192.168.8.8 (192.168.8.8) port 21080 (#0)
> GET / HTTP/1.1
> Host: myip.ipip.net
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Sun, 19 Dec 2021 12:14:17 GMT
Date: Sun, 19 Dec 2021 12:14:17 GMT
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< Content-Length: 89
Content-Length: 89
< Connection: keep-alive
Connection: keep-alive
< CF-Cache-Status: DYNAMIC
CF-Cache-Status: DYNAMIC
< Server: cloudflare
Server: cloudflare
< CF-RAY: 6c008cbdc8267cc1-LAX
CF-RAY: 6c008cbdc8267cc1-LAX
< alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400

qgb@ubuntu:~/github$ 
qgb@ubuntu:~/github$ curl -vvvik -x "socks5h://192.168.8.8:21080" 'http://myip.ipip.net/'
*   Trying 192.168.8.8...
* Connected to 192.168.8.8 (192.168.8.8) port 21080 (#0)
> GET / HTTP/1.1
> Host: myip.ipip.net
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Sun, 19 Dec 2021 12:15:07 GMT
Date: Sun, 19 Dec 2021 12:15:07 GMT
< Content-Type: text/plain; charset=utf-8
Content-Type: text/plain; charset=utf-8
< Content-Length: 89
Content-Length: 89
< Connection: keep-alive
Connection: keep-alive
< CF-Cache-Status: DYNAMIC
CF-Cache-Status: DYNAMIC
< Server: cloudflare
Server: cloudflare
< CF-RAY: 6c008df54fb8310d-LAX
CF-RAY: 6c008df54fb8310d-LAX
< alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400
QGB commented 2 years ago
!curl -vvvik --socks5 127.0.0.1:21080 http://127.9.9.9:1122/sh%20-c%20'v2ray-linux-64/busybox%20ifconfig%26env%7cgrep%20L'