Snowflake is a system to defeat internet censorship, made by Tor Project.
The system works by volunteers who run the snowflake extension on browser.
Now, with this script, you can host a snowflake relay in another program or run it in CLI mode in a server!
- Google Chrome 98
- Chromedriver
- Add Chromedriver to path (or to /usr/bin on linux)
cd snowflake-cli
pip install .
It's possible to import snowflake in your program's python code to host snowflake cuncurrently! This is very nice because you can allow users of your software to donate their bandwidth to snowflake's network :)
import snowflakecli
options = {
'just_run':False, # if true, runs snowflake discretly - without logging and saving data
'save_data':True, # if true, snowflake will save your peers data in database
'get_loc':True, # if true, snowflake will not get peers country and region
'log':True # if true, snowflake will print every log
}
# runs snowflake concurrently in another thread while your main program runs
snowflakecli.start_run(options)
$ snowflakecli [OPTIONS]
--just-run - Just run snowflake with all options below
--no-persist - Run without storing peer's data
--no-location - Doesn't get IPs locations
--no-logging - Doesn't print anything (just the starting log)
You can watch all peers that conects with you live, store this data with the peer's location to further analisys.
- timestamp (int)
- ip (text)
- country (text)
- region (text)