Gathers all info from Cisco devices and creates/updates it in Netbox server

Script gathers all needed info from Cisco devices and creates entities in Netbox (devices, interfaces, prefixes, ip addresses, cdp connections etc) This script has two parts: What the main.py script does: Connects to ips of Cisco devices written in ip_list_all.txt or ip_list.txt files by netmiko or paramiko Gathers information according to templates Parses data and writes into api/”device_name”.csv files in json format Script’s main purpose is full integration between Cisco and Netbox (https://netbox.readthedocs.io/en/stable/) Script works fine with IOS, NX-OS, XR, […]

Read more

Building a web server in python without using any external libraries

Building a web server in python without using any external libraries Dependencies: Install php-cgi library in Ubuntu: sudo apt-get update -y sudo apt-get install -y php-cgi USAGE: python3 server.py 127.0.0.1 8000 #http python3 server.py 127.0.0.1 8000 private.key public.cert #https Send Requests GET request to 127.0.0.1:8000/handleGet.php?firstName=Virat&lastName=Kohli POST request to 127.0.0.1:8000/handlePost.php where body=firstName=Virat&lastName=Kohli Attacking the server Attacking the webserver: Check out the attacking_server.pdf GitHub View Github    

Read more

Distance to Closest Road Feature Server

Milliarium Aerum, the zero of all Roman roads This is a feature server that computes the distance to the closest road as feature for a given coordinate. It can be used command-line or with the provided Flask microframework server. Roadster uses .SHP files from the Open Street Map project, as generously provided by Geofabrik GmbH. It can provide the value of the distance-to-closest-road feature for a given coordinate or compute the value of the feature for all points on a […]

Read more

A web interface for a soft serve Git server

Soft Sevre is a very nice git server. It offers a really nice TUI to browse the repositories on the server. Unfortunately, it does not offers a web interface. Here, I want to try to make a tiny web interface to present the git server and list the repositories there. Configuration To tell the web server what files to monitor and how to login to the Soft Serve server, a JSON configuration file is needed. The JSON file needs the […]

Read more

A Simple Web Server made by Python3

2021-07-11 开发初期,什么都没有。—— $text{GGN_2015}$ 启动服务器 nohup sudo python3 server.py & disown %1 配置与修改 修改 dynamic.py 中的 get_return_message 函数,从而定义自己想要返回的页面/信息。 修改 config.py 中的变量的值从而更改服务器的配置。 以上两个文件在运行时会被 server.py 动态加载,因此,可以在服务器运行时修改这两个文件。 GitHub GitHub – GGN-2015/SimpleWebServer at pythonawesome.com a Simple Web Server made by Python3. Contribute to GGN-2015/SimpleWebServer development by creating an account on GitHub. GitHubGGN-2015    

Read more

A lightweight yet complete CardDAV/CalDAV server that backs onto a Git repository

Xandikos is a lightweight yet complete CardDAV/CalDAV server that backs onto a Git repository. Xandikos (Ξανδικός or Ξανθικός) takes its name from the name of the March month in the ancient Macedonian calendar, used in Macedon in the first millennium BC. Implemented standards The following standards are implemented: RFC 4918/RFC 2518 (Core WebDAV) – implemented, except for COPY/MOVE/LOCK operations RFC 4791 (CalDAV) – fully implemented RFC 6352 (CardDAV) – fully implemented RFC 5397 (Current Principal) – fully implemented RFC 3253 […]

Read more

A framework designed to compose and run a web-server based on plugins

FPS, fast pluggable server, is a framework designed to compose and run a web-server based on plugins.It is based on top of fastAPI, uvicorn, typer, and pluggy. How it works The main purpose of FPS is to provide hooks to register endpoints, static mounts, CLI setups/teardowns, etc. An application can then be composed by multiple plugins providing specific/specialized endpoints. Those can be registered using fps.hooks.register_router with a fastapi.APIRouter. What is coming soon The most important parts will be to have […]

Read more

A web GUI to manage and monitorize your Wireguard server

Linguard Linguard aims to provide an easy way to manage your WireGuard server, and it’s written in Python3 and powered by Flask. Screenshots Installation Git Install dependencies: sudo apt update sudo apt install wireguard iptables uwsgi uwsgi-plugin-python3 libpcre3 libpcre3-dev Download any release (or clone the repository) and put the files somewhere you will remember later, such as /var/www/linguard. Edit the configuration files to fit your needs. Add a linguard user and group to your computer: groupadd linguard useradd -g linguard […]

Read more
1 2