2833844911 / passja3

Perfect breakthrough JA3 detection
22 stars 19 forks source link

Upload docker image to other platform #1

Closed g2asell2019 closed 2 months ago

g2asell2019 commented 2 months ago

Hi, I appreciate your project a lot but unfortunate I can't docker image because I can't create baidu account

Can you upload docker image to dockerhub?

Thank you very much.

2833844911 commented 2 months ago

you can down of https://drive.google.com/file/d/1apHnsBal4Lzhs8iajqB4ay-DGtHstceO/view?usp=sharing

g2asell2019 commented 2 months ago

I appreciate your efforts a lot.

After download docker image, I run it on github codespace

here is my webserver: image

this is my docker command: image image

Test result: example from this image

Then I inspect the docker image, I found there is no expose port command related to the port use on ud url to map to it image image

Can you help me shed a light on this problem? Perhaps can you share your .Dockerfile so I can re-build the image then report to you later?

Thank you very much!!

2833844911 commented 2 months ago

The previous version was uploaded incorrectly https://drive.google.com/file/d/1zSs0kSZO3NE_-OJDF7UkLRMBUR5Lc9PR/view?usp=sharing This is the official version

2833844911 commented 2 months ago

image use your ip:port

2833844911 commented 2 months ago

Can you try requesting this URL https://tls.peet.ws/api/all

from cytls import cytls

headers ={ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36", }

proxies = {"https": "http://proxyip:proxyport"}

url ="https://tls.peet.ws/api/all" req = cytls.get(url, headers=headers, proxies=proxies)

dt = req.text print(req.status_code) print(req.headers) print(req.cookies) print(dt)

g2asell2019 commented 2 months ago

After diving a bit deeper this is what I found:

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.

[GIN-debug] POST /request --> main.startds.func1 (3 handlers) [GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details. [GIN-debug] Listening and serving HTTP on :8080 [GIN-debug] [ERROR] listen tcp :8080: bind: address already in use 2024/07/15 06:47:56 listen tcp :6000: bind: address already in use


there seems to be mismatch port on docker
g2asell2019 commented 2 months ago

Can you try requesting this URL https://tls.peet.ws/api/all

I got this working after update to your lastest docker image

image

2833844911 commented 2 months ago

The 6000 port is a test version, and 8081 is the official version This is the official version of the image https://drive.google.com/file/d/1zSs0kSZO3NE_-OJDF7UkLRMBUR5Lc9PR/view?usp=sharing