Skip to content

Instantly share code, notes, and snippets.

@cgnl
cgnl / Simple_Rev_Shell.cs
Last active December 10, 2023 10:47 — forked from BankSecurity/Simple_Rev_Shell.cs
C# Simple Reverse Shell Code
using System;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq;
using System.Net;
using System.Net.Sockets;
@cgnl
cgnl / ImportTo-ElasticSearchBulk.ps1
Created October 12, 2023 17:56 — forked from iwikmai/ImportTo-ElasticSearchBulk.ps1
Parse .nessus report and import to ElasticSearch
<#
.Synopsis
Parse Nessus XML report and import to ElasticSearch using _bulk API
.DESCRIPTION
Parse Nessus XML report and convert to expected json format (x-ndjson)
for ElasticSearch _bulk API
.EXAMPLE
.\ImportTo-ElasticSearchBulk.ps1 -InputXML "C:\folder\file.nessus" -Server es.contoso.com -Index "nessus" -type "vuln"
#>