├── LICENSE ├── README.md ├── onionize.py ├── screenshot1.jpg └── screenshot2.JPG /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 ANISH M 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Onionize 2 | Script to create Onion Mirror for Clearnet sites based on Enterprise Onion Toolkit 3 | 4 | 5 | 6 | This tool was developed to quickly deploy onion mirrors and be as newbie friendly as possible. 7 | 8 | ### Supported platforms 9 | 10 | 1) Raspbian 11 | 2) Ubuntu 20.04 LTS use ubuntu-20.04.2-live-server-amd64.iso server 12 | 3) Ubuntu 18.04 LTS use ubuntu-18.04.2-live-server-amd64.iso server 13 | 4) Cent OS 8.2.2004 minimal server 14 | 5) Mac os Mojave 15 | 6) Freebsd 12.1 use base server 16 | 17 | ### Quick installation 18 | 19 | simply run on terminal: - 20 | 21 | ``` 22 | git clone https://github.com/Anish-M-code/onionize.git 23 | ``` 24 | 25 | ``` 26 | cd onionize 27 | ``` 28 | 29 | ``` 30 | python3 onionize.py 31 | ``` 32 | 33 | It will start downloading and building required packages. 34 | Follow onscreen instructions to enter website domains and it will create onion mirror! 35 | 36 | 37 | 38 | ### Warnings 39 | Use at your own risk , developer not responsible for any damage arising from use of this 40 | tool. Developed for education and research use only. 41 | -------------------------------------------------------------------------------- /onionize.py: -------------------------------------------------------------------------------- 1 | import os 2 | import time 3 | import platform 4 | import sys 5 | import subprocess 6 | 7 | if platform.system().lower() == 'windows': 8 | print('Platform not supported!') 9 | sys.exit(1) 10 | 11 | def download_eotk(): 12 | print('Downloading Enterprise Onion Toolkit....\n') 13 | x = subprocess.run(['git','clone','https://github.com/alecmuffett/eotk.git']) 14 | os.chdir('eotk') 15 | 16 | def get_domains(): 17 | domain = [] 18 | while 1: 19 | x = input('Enter domain of clearnet website:') 20 | choice = input('\nDo you want enter more domains?(y/n):') 21 | domain.append(x) 22 | if choice.lower() != 'y': 23 | break 24 | return domain 25 | 26 | print('\n --- ONIONIZE: CREATE ONION MIRROR FOR WEBSITES --- ') 27 | while 1: 28 | 29 | print('\n Select os to install :-') 30 | print('\n1) Raspbian ') 31 | print('2) Ubuntu 20.04LTS ') 32 | print('3) Ubuntu 18.04LTS ') 33 | print('4) CentOS 8.2.2004 ') 34 | print('5) macOS Mojave ') 35 | print('6) FreeBSD 12.1') 36 | choice = input('\n\nEnter choice:') 37 | print() 38 | 39 | if choice == '1': 40 | print('Installing git...\n') 41 | x = subprocess.run(['sudo','apt-get','install','-y','git']) 42 | download_eotk() 43 | x = subprocess.run(['sudo','./opt.d/build-raspbian-stretch.sh']) 44 | break 45 | 46 | elif choice == '2': 47 | download_eotk() 48 | x = subprocess.run(['sudo','./opt.d/build-ubuntu-20.04.sh']) 49 | break 50 | 51 | elif choice == '3': 52 | download_eotk() 53 | x = subprocess.run(['sudo','./opt.d/build-ubuntu-18.04.sh']) 54 | break 55 | 56 | elif choice == '4': 57 | print('Installing git ...\n') 58 | x = subprocess.run(['sudo','yum','-y','install','git']) 59 | download_eotk() 60 | x = subprocess.run(['sudo','./opt.d/build-centos-8.2.2004.sh']) 61 | break 62 | 63 | elif choice == '5': 64 | download_eotk() 65 | x = subprocess.run(['./opt.d/build-macos-mojave.sh']) 66 | break 67 | 68 | elif choice == '6': 69 | print('Installing git ...\n') 70 | x = subprocess.run(['pkg','install','git']) 71 | download_eotk() 72 | x = subprocess.run(['./opt.d/build-freebsd-12.1.sh']) 73 | break 74 | 75 | else: 76 | print("Invalid choice!!!") 77 | 78 | domainlist = get_domains() 79 | with open("tor_server.tconf",'w') as f: 80 | f.write("set project tor_server\n") 81 | for domain in domainlist: 82 | f.write("hardmap %NEW_V3_ONION% "+domain+"\n") 83 | 84 | x = subprocess.run(['sudo','./eotk','config','tor_server.tconf']) 85 | x = subprocess.run(['sudo','./eotk','config','tor_server.conf']) 86 | x = subprocess.run(['sudo','./eotk','start','tor_server']) 87 | print('\nPlease wait ...\n') 88 | time.sleep(10) 89 | x = subprocess.run(['sudo','./eotk','status','tor_server']) 90 | -------------------------------------------------------------------------------- /screenshot1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anish-M-code/onionize/5c990a47dd85b45cafc9d6114f745bd2fb4aef0b/screenshot1.jpg -------------------------------------------------------------------------------- /screenshot2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Anish-M-code/onionize/5c990a47dd85b45cafc9d6114f745bd2fb4aef0b/screenshot2.JPG --------------------------------------------------------------------------------