Coder Social home page Coder Social logo

loki's Introduction

Logo

Loki

forthebadge forthebadge forthebadge

About the Loki

Loki is a simple tcp server which can send files to multipal clients simulteniously. It serves raw TCP requests and HTTP GET requests as well which means you can use wget, curl, axel and such tools as a client to connect with this. You can use netcat/nc/ncat or you can write your own socket script to work with its raw TCP functionality. And since the Loki is made in C with pure syscalls and proper logic, you will find it really fast. Loki can be used while playing HackTheBox machines and VulnHub machines in place of a python/php HTTP server.

asciicast

Features

  • easy synthax
  • faster than any other tool
  • auditing functions (requests.log)
  • multithreaded
  • accept raw TCP & HTTP GET requests
  • memory-efficient
  • installation is easy
  • easy to modify

Compilation

  • clone the repo
❯ git clone https://github.com/luckythandel/loki.git
  • compile it
❯ make
  • compiled binaries in bin/ directory

modiftion before compilaton

  • change the maximum request length in server.h (line 1)
#define REQUEST_LEN 1000
  • change the maximum threads (server handling amount of clinet at the same time, line 2)
#define MAX_THREADS 2000
  • proper request sanitization by the server. prevents from attacks like LFI but you can intentionally enable it (line 4)
#define INPUT_VALIDATION 0
  • file content size is 10mb by default (line 3)
#define FILE_CONTENT_SIZE 10000000 

loki's People

Contributors

luckythandel avatar utkarshpranav avatar

Stargazers

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