Coder Social home page Coder Social logo

raizo62 / loki_on_kali Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 13.0 12.91 MB

Docker container to run Loki : Loki is a python based infrastructure pentesting tool focussing on layer 3 protocols.

Home Page: https://c0decafe.de/loki/nightly/

Shell 1.66% Python 77.63% Makefile 0.24% M4 1.86% Elixir 0.06% Emacs Lisp 0.06% Roff 0.09% C 16.54% PowerShell 0.22% Inno Setup 0.09% Euphoria 0.84% Cython 0.72% Dockerfile 0.01%
docker docker-image network pentesting

loki_on_kali's People

Contributors

raizo62 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

loki_on_kali's Issues

bug with ospf

Hi

I do this simple lab :

[Kali].66}----(10.12.0.0/16)---{.1[Router]

The osp config of Router is :

router ospf 1
   network 10.12.0.0 0.0.255.255 area 0

The Hello of the attack of Loki stays on state : "LOADING"

If i use the network 10.10.0.0/16, the Hello finishs to state "FULL"
If i use the file "module_ospf.py" from loki_0.2.7-1, the Hello finishs to state "FULL"

loki_0.3.0-r502-2_amd64.deb needs python-ipy

Hi Raizo,

Thanks for the stuff. Just to let you know, you should add python-ipy to the "Local packages" folder.

Selecting previously unselected package loki.                                                       
(Reading database ... 273636 files and directories currently installed.)                                                                                                                                                                  
Preparing to unpack loki_0.3.0-r502-2_amd64.deb ...                                                                                                                                                                                       
Unpacking loki (0.3.0-r502-2) ...                                                                                                                                                                                                         
dpkg: dependency problems prevent configuration of loki:                                                                                                                                                                                  
 loki depends on python-ipy; however:                                                                                                                                                                                                     
  Package python-ipy is not installed.

dpkg: error processing package loki (--install):
 dependency problems - leaving unconfigured
Processing triggers for kali-menu (2020.1.7) ...
Errors were encountered while processing:
 loki

https://packages.debian.org/buster/all/python-ipy/download

It works perfectly then.

Cya

OSPF association not working with VyOS routers (latest nightly build) + potential fix

Hi, I was trying to associate with a VyOS OSPF router in my lab, but couldn't get things to work (stuck in "2-WAY" state).

After some time searching, I checked the vyos logs (cat /var/log/messages | grep ospf), and found this after the Loki hello packets :

T-bit on, drop it.

Looking on Google gave absolutely no result, so I had to compare manually an hello packet forwarded by VyOS with the one sent by Loki.

I noticed that the VyOS ones didn't have the Multi-Topology Routing bit set, in contrary to Loki. I am not an OSPF expert, and cannot explain exactly what it is doing, so here is the doc : https://sites.google.com/site/amitsciscozone/ospf/multi-topology-routing-in-ospf

After exploring the Loki code, I located the line where this bit is set :

OPTION_TOS_CAPABILITY = 0x1

As a simple fix, I put this value to 0 :

sed -i 's:OPTION_TOS_CAPABILITY = 0x1:OPTION_TOS_CAPABILITY = 0x0:g' /usr/share/loki/modules/module_ospf.py

And now it works, I have a "FULL" state to my VyOS router !

I don't know if this bit is only used by a certain type of routers (e.g. Cisco), but it definitely made Loki unable to associate. My VyOS had the simplest config possible, so it may be possible to enable this feature (although I can't seem to find how in the doc).

I look forward to hear about a possible fix, like an auto detection for example (or if you are already aware of this behaviour).

edit : After spending a bit of time looking at the code, I noticed that there can't be a simple fix for this, as a lot of configuration differences (hello interval, dead interval) on remote router makes the pair process impossible.

ImportError: cannot import name bf

First of all I would like to thank you for the great work. Unfortunately the cracking of data does not work for me. The following message appears:

Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/share/loki/modules/module_ospf.py", line 1093, in run
from loki_bindings import bf
ImportError: cannot import name bf

Thanks for your help.

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.