Giter Site home page Giter Site logo

sysusurf's Introduction

SysuSurf

Cross-platform Implementation for SYSU H3C and Ruijie (WIP) Authentication.

Prerequsities

  • pcap (libpcap, NPcap, WinPcap and etc.)

Quick Start

./SysuSurf help
./SysuSurf auth config.json

Config Schema

{
    "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:

sc create SysuSurf binPath= "<path/to/SysuSurf.exe> auth <path/to/config.json>"

To remove the service, use below command and run it in an elevated shell:

sc delete SysuSurf

Development Guide

Prerequsities

  • pcap (libpcap, NPcap, WinPcap and etc.)
  • .NET 8 SDK

Build

dotnet build -c Release
# Or build with Debug mode
dotnet build

Run

dotnet run -c Release -- auth config.json
# Or run with Debug mode
dotnet run -- auth config.json

Publish

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, ...

sysusurf's People

Contributors

hez2010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.