This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Author: Ist wurst... | |
# | |
# Description: | |
# ------------- | |
# This script finds the reverse duplicates like: | |
# /-h_9.9.9.9 | |
#IP:9.9.9.9\32 = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import requests | |
import xml.etree.ElementTree as ET | |
import logging | |
import sys | |
import json | |
import datetime | |
import re | |
import socket |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Author: Ist wurst... | |
import pdb | |
import sys | |
import xml.etree.ElementTree as ET | |
import json | |
from graphviz import Digraph | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
# Load d3blocks | |
from d3blocks import D3Blocks | |
import pandas as pd | |
filename = 'C:\\temp\\running-config.xml' | |
tree = ET.parse(filename) | |
root = tree.getroot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pdb | |
import requests | |
import json | |
# key gen link | |
# https://192.168.150.200/api/?type=keygen&user=admin&password=yourpassword | |
# Step 1.: Set your variables and file: Panorama IP, Globalprotect gateway name, GP agent config in GP Gateway, template name and vsys name | |
# Office 365 EDL from Palo Alto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Author: Ist wurst... | |
import sys | |
import xml.etree.ElementTree as ET | |
from graphviz import Digraph | |
def getname(element): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => "/tmp/*_system_log.csv" | |
start_position => "beginning" | |
sincedb_path => "/dev/null" | |
} | |
} | |
filter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################################################################################################## | |
# # | |
# This Script collects measurements from netstat command # | |
# Syntax for output lines is json that devided by newline # | |
# Example: # | |
# {"name":"In_Receives","currentuser":"akdaniel","gpgatewayaddress":"130.41.235.50","currentdomain":"PALOALTONETWORK","value":"1636236", # | |
# "timestamp":"2023-06-09 02:19:52","subtype":"ipstats","gpipv4address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import libraries | |
import requests | |
from bs4 import BeautifulSoup | |
import pandas as pd | |
import time | |
from datetime import date | |
def datacollector(releases, release, release_new, iss_type, release_placeholder): | |
# Create an URL object |