Exetools  

Go Back   Exetools > General > Source Code

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2026, 20:10
WhoCares's Avatar
WhoCares WhoCares is offline
who cares
 
Join Date: Jan 2002
Location: Here
Posts: 468
Rept. Given: 11
Rept. Rcvd 32 Times in 25 Posts
Thanks Given: 69
Thanks Rcvd at 247 Times in 94 Posts
WhoCares Reputation: 32
Rust source code for WinRAR keygen

The attached is the keygen source code for WinRAR, written in Rust.

It's converted from the following C++ repo with vibe coding, just for fun.
Dialog GUI is added, DPI-aware.
License file is saved to the default path "%AppData%\WinRAR\rarreg.key", no admin required(While Admin is required for "C:\Program Files\WinRAR\rarreg.key"),
https://github.com/bitcookies/winrar-keygen/
Attached Files
File Type: zip WinRarKeygenRust.zip (16.1 KB, 12 views)
__________________
AKA Solomon/blowfish.

Last edited by WhoCares; 03-12-2026 at 09:28.
Reply With Quote
The Following User Gave Reputation+1 to WhoCares For This Useful Post:
cjack (03-11-2026)
The Following 4 Users Say Thank You to WhoCares For This Useful Post:
blue_devil (03-11-2026), cjack (03-11-2026), niculaita (03-10-2026), ontryit (03-15-2026)
  #2  
Old 03-11-2026, 17:20
blue_devil's Avatar
blue_devil blue_devil is offline
Family
 
Join Date: Dec 2011
Location: Observable Universe
Posts: 537
Rept. Given: 110
Rept. Rcvd 73 Times in 46 Posts
Thanks Given: 687
Thanks Rcvd at 895 Times in 297 Posts
blue_devil Reputation: 73
@WhoCares, I have added egui to your project. Now anyone can compile it for any platform.

What a world:
Quote:
It's converted from the following C++ repo with vibe coding, just for fun.
I have added egui with AI but I have manually fix alignment of widgets.

@WhoCares maybe you should add this to a repo?

Code:
Source Updated for cross compilation
https://pixeldrain.com/u/JuHHfMTy

Windows x86_64
https://pixeldrain.com/u/Nv7odq85

Windows arm64
https://pixeldrain.com/u/z4dbpmET

Linux x86_64
https://pixeldrain.com/u/itn3k2be

Linux arm64
https://pixeldrain.com/u/TBXWPGQD
Reply With Quote
The Following User Says Thank You to blue_devil For This Useful Post:
niculaita (03-12-2026)
  #3  
Old 03-11-2026, 18:28
WhoCares's Avatar
WhoCares WhoCares is offline
who cares
 
Join Date: Jan 2002
Location: Here
Posts: 468
Rept. Given: 11
Rept. Rcvd 32 Times in 25 Posts
Thanks Given: 69
Thanks Rcvd at 247 Times in 94 Posts
WhoCares Reputation: 32
hello,

In order to keep the exe file small(no more than 500KB), my package uses "native-windows-gui" crate which supports Windows only, but with Windows built-in editing hotkeys and context menus.
I have another keygen template which produces a 10MB exe with Rust GPUI framework.
Your keygen produces a 4.x MB exe and looks beautiful.

And I put it in my private repo

Thanks for your work!


Quote:
Originally Posted by blue_devil View Post
@WhoCares, I have added egui to your project. Now anyone can compile it for any platform.

What a world:

I have added egui with AI but I have manually fix alignment of widgets.

@WhoCares maybe you should add this to a repo?

Code:
Source Updated for cross compilation
https://pixeldrain.com/u/JuHHfMTy

Windows x86_64
https://pixeldrain.com/u/Nv7odq85

Windows arm64
https://pixeldrain.com/u/z4dbpmET

Linux x86_64
https://pixeldrain.com/u/itn3k2be

Linux arm64
https://pixeldrain.com/u/TBXWPGQD
__________________
AKA Solomon/blowfish.

Last edited by WhoCares; 03-11-2026 at 19:21.
Reply With Quote
The Following 2 Users Say Thank You to WhoCares For This Useful Post:
blue_devil (03-11-2026), niculaita (03-12-2026)
  #4  
Old 03-11-2026, 22:53
blue_devil's Avatar
blue_devil blue_devil is offline
Family
 
Join Date: Dec 2011
Location: Observable Universe
Posts: 537
Rept. Given: 110
Rept. Rcvd 73 Times in 46 Posts
Thanks Given: 687
Thanks Rcvd at 895 Times in 297 Posts
blue_devil Reputation: 73
I am fully aware of that ph*t **s binaries. With vibe coding, we can make separate native guis. But who has that time.

I prefer GTK on Linux, but I want to give a try on egui. Even though code looks simpler, end result is huge.

At least they are working!
Reply With Quote
  #5  
Old 03-12-2026, 08:08
WhoCares's Avatar
WhoCares WhoCares is offline
who cares
 
Join Date: Jan 2002
Location: Here
Posts: 468
Rept. Given: 11
Rept. Rcvd 32 Times in 25 Posts
Thanks Given: 69
Thanks Rcvd at 247 Times in 94 Posts
WhoCares Reputation: 32
If we want a small binary size and only need a UI with basic controls, libui-rs is also a viable option for cross-platform. It binds to the UI frameworks provided by the operating system, so the resulting size is relatively small.

wxWidgets is another cross-platform option, it also binds to native UI framework, but the compilation process is somewhat more complicated.

Quote:
Originally Posted by blue_devil View Post
I am fully aware of that ph*t **s binaries. With vibe coding, we can make separate native guis. But who has that time.

I prefer GTK on Linux, but I want to give a try on egui. Even though code looks simpler, end result is huge.

At least they are working!
__________________
AKA Solomon/blowfish.
Reply With Quote
The Following User Says Thank You to WhoCares For This Useful Post:
blue_devil (03-12-2026)
  #6  
Old 03-12-2026, 14:03
blue_devil's Avatar
blue_devil blue_devil is offline
Family
 
Join Date: Dec 2011
Location: Observable Universe
Posts: 537
Rept. Given: 110
Rept. Rcvd 73 Times in 46 Posts
Thanks Given: 687
Thanks Rcvd at 895 Times in 297 Posts
blue_devil Reputation: 73
I have taken my notes on libui-rs
Reply With Quote
  #7  
Old 03-13-2026, 10:28
WhoCares's Avatar
WhoCares WhoCares is offline
who cares
 
Join Date: Jan 2002
Location: Here
Posts: 468
Rept. Given: 11
Rept. Rcvd 32 Times in 25 Posts
Thanks Given: 69
Thanks Rcvd at 247 Times in 94 Posts
WhoCares Reputation: 32
Put together a libui-rs variant in under an hour with an AI agent.

Tested on Windows, macOS, and Ubuntu.

Note: there’s a small macOS-only UI glitch — the "Generate" button doesn’t stretch vertically.
Attached Files
File Type: zip WinRarKeygenRustLibui.zip (84.3 KB, 19 views)
__________________
AKA Solomon/blowfish.
Reply With Quote
The Following 3 Users Say Thank You to WhoCares For This Useful Post:
blue_devil (03-13-2026), niculaita (03-14-2026), wx69wx2023 (03-15-2026)
  #8  
Old 03-21-2026, 04:52
Jupiter's Avatar
Jupiter Jupiter is offline
Lo*eXeTools*rd
 
Join Date: Jan 2005
Location: Moscow, Russia
Posts: 234
Rept. Given: 43
Rept. Rcvd 62 Times in 37 Posts
Thanks Given: 37
Thanks Rcvd at 191 Times in 57 Posts
Jupiter Reputation: 62
Lightbulb cargo build --release

Quote:
Originally Posted by WhoCares View Post
Your keygen produces a 4.x MB exe …
Don't forget to create a release build.
By default a debug build is created.

Code:
cargo build --release
Release build is approx. 3-4 times smaller than debug one.
__________________
EnJoy!
Reply With Quote
  #9  
Old 03-21-2026, 10:43
WhoCares's Avatar
WhoCares WhoCares is offline
who cares
 
Join Date: Jan 2002
Location: Here
Posts: 468
Rept. Given: 11
Rept. Rcvd 32 Times in 25 Posts
Thanks Given: 69
Thanks Rcvd at 247 Times in 94 Posts
WhoCares Reputation: 32
Thanks Jupiter for the reminder.

The sizes are for release builds. They are relatively large because the rendering engine is bundled into the binaries.

With native UI frameworks, the rendering engine is provided by the OS (system DLLs / drivers), so the app only contains a thin abstraction layer over the native APIs.
__________________
AKA Solomon/blowfish.

Last edited by WhoCares; 03-21-2026 at 16:44.
Reply With Quote
The Following User Says Thank You to WhoCares For This Useful Post:
niculaita (03-22-2026)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT +8. The time now is 06:24.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )