Giter VIP home page Giter VIP logo

jamfmdmtools's Introduction

MDM Tools

This python + flask script provides a web service to easily send wipe and lock commands to macOS devices enrolled in your jamf server. It lists all systems that are enrolled and their MDM status. Checking the box next to them allows you to send a wipe, or lock, with a custom six digit passcode. The tool was written to provide a simple method to send wipe commands to many systems at once.

Setup

Setup requires configuring the config file. Running the code once without a config file will generate one for you. This is an example of the config file:

[server]
sercretkey = None
grouppass = None

[jss]
username = None
password = None
server = None
  1. Currently the app uses flask sessions to restrict access. The first setting is the secretkey used with sessions to encrypt cookies. Set this to a long, complex, random string of ASCII.
  2. The second setting is the grouppass. The grouppass is the passcode that will be used by anyone accessing the web service. Usernames are also used to login, but are not checked against anything. They serve only the function of logging who did what. *Obvious problems are evident, this should be replaced.
  3. The username and password settings under jss are the jamf api account you created for this. Be sure to give the account API access and lock it down to only the systems it should have access to.
  4. The server is the url to your JSS. I.E.: https://myjss.com:8443

When setting these variables, quotes are not required and can break some of them. Don't use quotes.

Running

The mdmtools.py script can be run through the terminal for testing. Once started it will create a web service on http://127.0.0.1:5002 This is good for testing purposes, but other flask deployment options are best for production.

Feedback

As always, feedback is welcome. Please open GitHub issues and pull requests. Thanks!

jamfmdmtools's People

Watchers

James Cloos 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.