Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clay584/misc_net_scripts
Miscellaneous network scripts for random tasks
https://github.com/clay584/misc_net_scripts
Last synced: about 1 month ago
JSON representation
Miscellaneous network scripts for random tasks
- Host: GitHub
- URL: https://github.com/clay584/misc_net_scripts
- Owner: clay584
- License: gpl-2.0
- Created: 2015-05-29T12:39:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-20T14:03:00.000Z (about 9 years ago)
- Last Synced: 2023-08-05T17:12:07.682Z (over 1 year ago)
- Language: Python
- Size: 84 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Miscellaneous Network Scripts
Miscellaneous network scripts for random tasks## Pretty IP Subnet Tree
This script creates a CIDR block tree in nested JSON for use with the D3.js tree collapsable tree diagram. Input the master CIDR block and the max length you want to go in depth.### Example
```
[ccurtis@shark misc_net_scripts]$ ./create_cidr_tree.py --help
usage: create_cidr_tree.py [-h] [--network PARENT_PREFIX]
[--max-prefix LENGTH]CIDR JSON Generator - For use with D3.js Tree Graph
optional arguments:
-h, --help show this help message and exit
--network PARENT_PREFIX
Parent CIDR block
--max-prefix LENGTH Maximum prefix length depth
``````
[ccurtis@shark misc_net_scripts]$ ./create_cidr_tree.py --network 10.1.1.0/24 --max-prefix 29
{
"children": [
{
"children": [
{
"children": [
{
"children": [
{
"children": [
{
"name": "10.1.1.0/29"
},
{
"name": "10.1.1.8/29"
}
],
"name": "10.1.1.0/28"
},
{
"children": [
{
"name": "10.1.1.16/29"
},
{
"name": "10.1.1.24/29"
}
],
"name": "10.1.1.16/28"
...output truncated...
```Output to File:
```
[ccurtis@shark misc_net_scripts]$ ./create_cidr_tree.py --network 10.1.1.0/24 --max-prefix 29 > cidr_tree.json
```![Alt text](/create_cidr_tree.png?raw=true "CIDR Tree in D3.js Tree Graph")
## DNS Updater
CGI-BIN app for Windows IIS to update and delete forward and reverse DNS records from web form. It uses dnscmd.exe to perform the actual updates.
### Installation
In order to use this, you must install python on Windows, IIS, enable CGI scripts. Then place this in CGI-BIN and run. Also, the user account that runs IIS must be a member of DNS Admins group in AD. Yes I know this is risky, but it was for a lab environment.