Code Monkey home page Code Monkey logo

note-to-onenote's Introduction

A simple Add-in for OneNote

Program created by eRaMvn.

The purpose of this Add-in is to put of the text file (File with the txt extension) to OneNote programmatically. As only OneNote for Business supports the use of API for free. I created this Add-in to automate this process. This Add-in also uses OneNote API, but it interacts with the web version of OneNote (https://www.onenote.com/notebooks) instead of the offline one. This Add-in is only a workaround that is still in development to help pentesters store all of the notes in one place. It works well with my other tool GoldFish at (https://github.com/eRaMvn/LazyTools)

#Prequisites:

nodejs
nodemon package (npm i nodemon)
cors package (npm i cors)

I followed this guideline from Microsoft (https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/onenote-quickstart) to test my api.

Basically what this tool does is:

  1. Obtain the contents of all of the text files under web-server/current-pentest
  2. Spin up the webpack for OneNote Add-in to interact with localhost
  3. Spin up a small web server to serve the contents of the text file
  4. Serve the content when the Run button of the OneNote Add-in

Step to set up:

  1. Go to each folder My Office Add-in and web-server folders and run
npm install
  1. Have two terminals open. In one terminal, run web-pack, under My Office Add-in
npm run start:web

This server will listen on port 3000

In a second terminal, under web-server/src

nodemon app.js

The express server will listen on port 5000 The two servers are now ready!

OneNote

Insert-Add-in

  • Upload the manifest under My Office Add-in by

Upload-Add-in

Browse

manifest

  • Add the text files you want to put to current_pentest under web-server folder. I already put some sample files there for testing
  • Create a new page in the section that you want to put it in
  • Go back to Home > Show Taskpane. You should see a sidebar as follow. If for some reasons you don't see it, please reload your OneNote page

taskpane

Before running

before

After running

after

Step to tear down:

  1. Stop the express server by pressing Ctrl+C
  2. Stop the webpack by typing
npm stop

note-to-onenote's People

Contributors

dependabot[bot] avatar eramvn avatar

Stargazers

 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.