Coder Social home page Coder Social logo

poopsicles / rustdesk-octernship Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rustdesk-org/octernships_project

0.0 0.0 0.0 1.63 MB

Sumission for the Rustdesk Octernship

License: Apache License 2.0

C++ 6.54% C 1.11% Rust 26.67% Dart 49.21% CMake 15.56% Just 0.92%

rustdesk-octernship's Introduction

Rustdesk Octernship Submission

This is my submission for the Rustdesk Octernship application.

The task was to "Elevate priviledge to run ls -la /root/ with Rust, and print the result on the Flutter window".

The example
The example image

My implementation details

I made a simple Flutter app that checks for the existence of polkit, sudo, and su in order to carry out the privilege escalation. It then only offers to use those that are available (though, sudo and su are very ubiquitous so it is unlikely for a Linux system to not have both).

The application also allows for the command to be ran without any form of escalation, in case it was launched from a privileged context (and therefore wouldn't need escalation).

Media

Main page
The main page of the application
Authentication Dialog
The authentication dialog
Output
The output after authenticating

How to build

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.