Skip to content

Python library for remote code execution on Keenetic devices using RCI.

License

Notifications You must be signed in to change notification settings

AlperShal/KeeneticRCI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeeneticRCI

Python library for remote code execution on Keenetic devices using RCI.

Warning!

  • All commands may not be available.
  • Any kind of special character (Ex: #@~!$%^:&) will probably break the script/result in failing to run the command.
  • Even though you can manually (via a browser) run commands using RCI over KeenDNS domains, the way this library authenticates causes fails/errors while working with KeenDNS.
  • Starting from KeeneticOS 4.0 you can use your router's iPv6 address to use this RCI library. (This is because access to router's GUI over iPv6 is enabled with version 4.0)

Installation

This package is not available at PyPi for now.

git clone https://github.com/AlperShal/KeeneticRCI
cd KeeneticRCI
pip install .

How to use

#Import the library
import KeeneticRCI

#Initialize connection to router and authenticate
router = KeeneticRCI.router(user="YOUR_USER", password="YOUR_PASS", ip="IP/DOMAIN_TO_YOUR_ROUTER")

#Run your command
router.run("show version")
#One line command
KeeneticRCI.router(user="YOUR_USER", password="YOUR_PASS", ip="IP/DOMAIN_TO_YOUR_ROUTER").run("show version")

Built on/forked from keyiflerolsun/KeeneticPy. Huge thanks for the awesome work.

About

Python library for remote code execution on Keenetic devices using RCI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%