raizo62 / loki_on_kali Goto Github PK
View Code? Open in Web Editor NEWDocker container to run Loki : Loki is a python based infrastructure pentesting tool focussing on layer 3 protocols.
Home Page: https://c0decafe.de/loki/nightly/
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/
Hi,
just to let you know, there is an updated, more recent build of loki, (new features, linked against newer version of libs) can be found here: https://c0decafe.de/loki/nightly/
best
/d
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"
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
Hi @0xc0decafe
Can we have access to the source code of loki_0.3.0-r502-1 ? (i think to C code of asleap, bf, mplsred, ...)
Thanks
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.