├── .github └── FUNDING.yml ├── .gitignore ├── README.md ├── build.ps1 ├── requirements.txt └── src └── main.py /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: Anequit 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build/* 2 | /dist/* 3 | /src/__pycache__/* 4 | /bin/* 5 | *.spec -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # winrar-activator 2 | [![GitHub all releases](https://img.shields.io:/github/downloads/Anequit/winrar-activator/total)](https://github.com/Anequit/winrar-activator/releases) 3 | [![GitHub release (latest by date)](https://img.shields.io:/github/v/release/Anequit/winrar-activator)](https://github.com/Anequit/winrar-activator/releases) 4 | [![GitHub repo size](https://img.shields.io:/github/repo-size/Anequit/winrar-activator)](https://github.com/Anequit/winrar-activator/releases) 5 | 6 | ## About 7 | This tool simply activates winrar for you. That's all it does. 8 | -------------------------------------------------------------------------------- /build.ps1: -------------------------------------------------------------------------------- 1 | pyinstaller --noconfirm --clean -D -F -n "winrar-activator" ./src/main.py 2 | 3 | Remove-Item -R -Force ".\build" 4 | Remove-Item -R -Force ".\src\__pycache__" 5 | Remove-Item -Force "winrar-activator.spec" 6 | Remove-Item -R -Force ".\bin\" 7 | 8 | Rename-Item ".\dist" ".\bin" 9 | 10 | Set-Location ".\bin" 11 | 12 | Get-FileHash -A SHA256 ".\winrar-activator.exe" | Format-List >> SHA256 13 | Get-Content SHA256 14 | 15 | explorer.exe . 16 | Set-Location .. -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | altgraph==0.17.2 2 | future==0.18.2 3 | pefile==2021.9.3 4 | pyinstaller==5.0.1 5 | pyinstaller-hooks-contrib==2022.4 6 | pywin32-ctypes==0.2.0 -------------------------------------------------------------------------------- /src/main.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import ctypes 3 | import subprocess 4 | import os 5 | 6 | def main(): 7 | if os.path.isdir(r"C:\Program Files\WinRAR"): 8 | file = open(r"C:\Program Files\WinRAR\rarreg.key", 'w') 9 | file.write(("""RAR registration data\nHardik\nwww.Hardik.live\nUID=448c4a899c6cdc1039c5\n641221225039c585fc5ef8da12ccf689780883109587752a828ff0\n59ae0579fe68942c97d160f361d16f96c8fe03f1f89c66abc25a37\n7777a27ec82f103b3d8e05dcefeaa45c71675ca822242858a1c897\nc57d0b0a3fe7ac36c517b1d2be385dcc726039e5f536439a806c35\n1e180e47e6bf51febac6eaae111343d85015dbd59ba45c71675ca8\n2224285927550547c74c826eade52bbdb578741acc1565af60e326\n6b5e5eaa169647277b533e8c4ac01535547d1dee14411061928023""").strip()) 10 | 11 | if __name__ == "__main__": 12 | if ctypes.windll.shell32.IsUserAnAdmin() == False: 13 | print("I must be ran as administrator or I can't apply changes.") 14 | 15 | if input("Restart as admin (yes/no)? ") == "yes": 16 | subprocess.run(["powershell.exe", "Start-Process '.\winrar-activator.exe' -Verb runAs"], stderr=None) 17 | 18 | sys.exit() 19 | 20 | main() --------------------------------------------------------------------------------