drcom-client
drcom-client copied to clipboard
DrCOM network access control client in PHP (Dr.COM variant)
drcom-client
for Dr.COM variant

Why This
- It runs/starts faster than Python version on OpenWrt (→_→) ~~(又不是不能用~~
- User experience improvements
Requirements
PHP modules/extensions:
- sockets
- json (for getting interface information on OpenWrt)
- com_dotnet (for getting interface information on Windows)
- mbstring (for displaying server-sent messages)
- pcntl (for Ctrl-C to logout)
Usage
- Edit
config.php(refer to drcom-generic for configuration, note that some syntax differs)
If using Windows/OpenWrt, you can useconfig-*.php, which will automatically get some fields from interface name (especiallyhost_ip) - Run
drcomfucker.phpin PHP CLI SAPI.
e.g.php drcomfucker.phporphp5-cli drcomfucker.php