Giter Club home page Giter Club logo

df's Introduction

OneStopLogs

OneStopLogs provides a script that is able to determine your machine's OS (Windows or Linux) and collect the logs accordingly.
OneStopLogs also provides a web application that is able to analyse and visualise the logs that were collected from the script.

Currently working OS versions:
Windows 10
Linux (Kali)
Linux (Ubuntu)

Youtube link: https://www.youtube.com/watch?v=0cq_lnETjkA

Installation

For installation:
The web application runs on python flask specifically python3
You are also required to pip3 install the following:
Flask
Werkzeug

Usage

Files(onestoplogs.bat & onestoplogs.ps1) in /Scripts must be in the same directory of your choosing

Windows:
Double click on the bat file
You will be prompted for UAC elevation twice, click yes both times
Files extracted will be in the same directory as the bat file. ({.bat Directory}/temp/logs/windows/{today's date})

*Windows Operating System automatically blocks scripts downloaded from the internet to help protect the computer. However, we have found a workaround and are able to unblock the script from bash.

*By default, Windows Operating System will set a user’s Execution-Policy to be restricted. This causes a problem for us as we are unable to run scripts on the machine. However, there is no need to manually change the Execution-Policy of the current user as we have found a way to bypass and elevate the Execution-Policy from restricted to remote access. After the execution of our scripts, we will demote the Execution-Policy of the user back to restricted.

Linux:
Open up a terminal in the directory where the .bat file is
chmod 777 onestoplogs.bat (to provide permissions to execute the script)
./onestoplogs.bat (run the script)
Files extracted will be in the same directory as the bat file. ({.bat Directory}/temp/logs/linux/{today's date})

*If you see the $'\r': command not found error. enter <sed -i 's/\r//g' onestoplogs.bat> into the terminal.
This is because Windows uses \r\n as the line terminator while Linux (and most other operating systems) use \n alone.

Once the logs have been extracted
Run the webapp.py
Open a web browser and type in 127.0.0.1:5000
Insert the file path of the logs into the text box ({.bat Directory}/temp/logs/{OS}/{today's date})

Team Members

Tay Qi Wen Jordan
Poh Hong Yi
Poh Qi Xian Bryan
Lee Khai Liang Eugene

df's People

Contributors

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