Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidbombal/express-server-basic
https://github.com/davidbombal/express-server-basic
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidbombal/express-server-basic
- Owner: davidbombal
- Created: 2022-08-02T12:07:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T11:35:15.000Z (over 2 years ago)
- Last Synced: 2024-12-12T09:38:08.220Z (12 days ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 183
- Watchers: 7
- Forks: 92
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Very Basic Express Server with a Resource for Logging Keystrokes
## This code DOES NOT promote or encourage any illegal activities! The content in this document is provided solely for educational purposes and to create awareness!
## This is a proof of concept and could be improved on in a lot of ways.
1. To run this code use `git clone https://github.com/davidbombal/express-server-basic.git`
2. Run the command `cd/express-server-keylogger-basic`
3. Run the command `python3 setup.py`. This will do the basic setup on the Ubuntu server. It will install NodeJS, Node Package Manager (NPM) and also install all the modules required such as the Express web framework, the body-parser middleware used by Express.
4. Run the command `node server.js` to start the server on port ***8080***You can use the GET and POST methods on the "/" endpoint.
- GET will show the keylogger data written to the server, with every page refresh.
- POST will write the data with the body
`{
keyboardData:
}`
This is a little bare bones project that shows with little effort how powerful a few lines of server side JavaScript using Node can be. It can be improved with the addition of a database such as MongoDB paired with a module such as Mongoose (To validate and structure API input). Also, the addition of update, and remove operations would be quite easy to implement. I also didn't implement good exception handling for this project.