https://github.com/hez2010/sysusurf
Cross-platform implementation for SYSU H3C and Ruijie Authentication
https://github.com/hez2010/sysusurf
eap h3c network networking ruijie sysu
Last synced: 10 months ago
JSON representation
Cross-platform implementation for SYSU H3C and Ruijie Authentication
- Host: GitHub
- URL: https://github.com/hez2010/sysusurf
- Owner: hez2010
- License: mit
- Created: 2021-05-26T16:36:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T08:14:28.000Z (about 2 years ago)
- Last Synced: 2025-06-11T05:03:10.914Z (12 months ago)
- Topics: eap, h3c, network, networking, ruijie, sysu
- Language: C#
- Homepage:
- Size: 221 KB
- Stars: 22
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SysuSurf
Cross-platform Implementation for SYSU H3C and Ruijie (WIP) Authentication.
## Prerequsities
- pcap (libpcap, NPcap, WinPcap and etc.)
## Quick Start
```bash
./SysuSurf help
./SysuSurf auth config.json
```
## Config Schema
```json5
{
"Type": 0, // 0: H3C, 1: Ruijie
"UserName": "your netid",
"Password": "your password",
"DeviceName": "your ethernet inteface id",
"Md5Method": 0, // H3C optional. 0: xor, 1: md5
"GroupcastMode": 0, // Ruijie optional. 0: Standard, 1: Ruijie Private, 2: Saier
"DhcpMode": 0, // Ruijie optional. 0: None, 1: Second Auth, 2: After Auth, 3: Before Auth
}
```
## Windows Service Integration
SysuSurf supports Windows Service Integration, you can configure it to run with Windows startup automatically.
To create the service, use below command and run it in an elevated shell:
```bash
sc create SysuSurf binPath= " auth "
```
To remove the service, use below command and run it in an elevated shell:
```bash
sc delete SysuSurf
```
## Development Guide
### Prerequsities
- pcap (libpcap, NPcap, WinPcap and etc.)
- .NET 8 SDK
### Build
```bash
dotnet build -c Release
# Or build with Debug mode
dotnet build
```
### Run
```bash
dotnet run -c Release -- auth config.json
# Or run with Debug mode
dotnet run -- auth config.json
```
### Publish
```bash
dotnet publish -c Release -r win-x64
dotnet publish -c Release -r osx-x64
dotnet publish -c Release -r linux-x64
dotnet publish -c Release -r linux-arm64
# Available rids: win-x86, win-x64, win-arm, win-arm64, osx-x64, osx-arm64, linux-x64, linux-arm, linux-arm64, linux-musl-x64, linux-musl-arm64, ...
```