Skip to content

Instantly share code, notes, and snippets.

import csv
import json
import argparse
def csvdict_from_json(o365_report):
rows = []
for entry in o365_report:
for applied_policy in entry["appliedConditionalAccessPolicies"]:
@e0x70i
e0x70i / ports.list
Created October 22, 2019 22:43
Nessus Common Ports
tcpmux 1/tcp
tcpmux 1/udp
compressnet 2/tcp
compressnet 2/udp
compressnet 3/tcp
compressnet 3/udp
sfs 4/tcp
rje 5/tcp
rje 5/udp
echo 7/tcp
@e0x70i
e0x70i / powershell upload to dropbox powershell 2
Created May 25, 2017 08:28
Powershell upload to dropbox converted to powershell2
<#
Ported to powershell2 from script by Laurent Kempé
http://laurentkempe.com/2016/04/07/Upload-files-to-DropBox-from-PowerShell/
.SYNOPSIS
This is a Powershell script to upload a file to DropBox using their REST API.
.DESCRIPTION
This Powershell script will upload file to DropBox using their REST API with the parameters you provide.
@e0x70i
e0x70i / gen_agg_vuln_list.py
Last active May 2, 2017 22:16
Create a CSV file with aggregated list of vulnerable services and versions from .nessus xml file. Based on regex matching
import os
import xml.etree.cElementTree as etree
import csv
import re
import argparse
parser = argparse.ArgumentParser(description='Create a CSV with aggregated vulnerabilities')
@e0x70i
e0x70i / merge.py
Created May 2, 2017 22:08
Fast Nessus Merging Script
# Based on https://gist.github.com/mastahyeti/2720173
# Updated for speed by: Kevin Dick, Tevora
import xml.etree.cElementTree as etree
import shutil
import os
import argparse
from sets import Set
parser = argparse.ArgumentParser(description='Merge multiple nessus files into one')