Simple script demonstrating how easy it is to evade JA3 fingerprinting
Have fun!
a simple demo on how to tamper and evade ja3
License: Apache License 2.0
Simple script demonstrating how easy it is to evade JA3 fingerprinting
Have fun!
#!/usr/bin/env python
import ssl
import socket
from random import shuffle
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.ssl_ import create_urllib3_context
def get_ciphers():
ssl_context = ssl.create_default_context()
ciphers_list = [cs['name'] for cs in ssl_context.get_ciphers()]
shuffle(ciphers_list)
return ':'.join(ciphers_list)
class FakeAdapter(HTTPAdapter):
def init_poolmanager(self, *args, **kwargs):
context = create_urllib3_context(ciphers=get_ciphers())
kwargs['ssl_context'] = context
return super(FakeAdapter, self).init_poolmanager(*args, **kwargs)
def proxy_manager_for(self, *args, **kwargs):
context = create_urllib3_context(ciphers=CIPHERS)
kwargs['ssl_context'] = context
return super(FakeAdapter, self).proxy_manager_for(*args, **kwargs)
def example_ssl_socket():
context = ssl.create_default_context()
context.set_ciphers(get_ciphers())
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sslSocket = context.wrap_socket(s, server_hostname='alternativeto.net')
sslSocket.connect(('alternativeto.net', 443))
sslSocket.close()
if __name__ == "__main__":
example_ssl_socket()
s = requests.Session()
s.mount('https://alternativeto.net', FakeAdapter())
r = s.get('https://alternativeto.net')
print(r.content)
Output (partially):
<html>\n <head>\n <title>Access denied</title>\n <style>.wrapper{font-family:courier,arial,helvetica;max-width:600px;position:absolute;left:20px;right:20px;margin:auto;top:50%;padding-bottom:40px;text-align:center;transform:translate3d(0,-50%,0)}img{width:280px;margin:0 auto 4em;display:block;opacity:.6}.meta{font-size:80%}</style>\n \n <script type="text/javascript">\n
Access Denied, I think CloudFlare's TLS Fingerprint is more advanced, do you have any idea how to bypass this anti-bot ? CloudFlare's is more evil than Google.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.