Skip to content

Instantly share code, notes, and snippets.

View DeathsPirate's full-sized avatar
Building and Blogging

Deaths Pirate DeathsPirate

Building and Blogging
View GitHub Profile
### Keybase proof
I hereby claim:
* I am deathspirate on github.
* I am deathspirate ( on keybase.
* I have a public key ASAbWLVEs3dhXvHxyl_2peG3pKhaz758bNCzsRAKCWg-ygo
To claim this, I am signing this object:
DeathsPirate / cve-2023-3519_checker.nse
Created July 24, 2023 20:57
NSE Script to check the patch status of Citrix NetScaler devices.
local http = require "http"
local stdnse = require "stdnse"
local shortport = require "shortport"
local slaxml = require "slaxml"
description = [[
Checks for the version number of Netscaler Gateway Windows plugin.
author = "DeathsPirate"
# List of domains to search in DNS cache
$domains = @(
# Search for ffmpeg.dll in the C drive
$ffmpegFiles = Get-ChildItem -Path "C:\" -Recurse -Filter "ffmpeg.dll" -ErrorAction SilentlyContinue
# Initialize an array to store the hash results
$hashResults = @()
# The target hash to compare with
$targetHash = "7986bbaee8940da11ce089383521ab420c443ab7b15ed42aed91fd31ce833896"
$found = $false
# Calculate the SHA256 hash for each file
DeathsPirate /
Created March 19, 2023 11:43
Image matching
import cv2
import numpy as np
def calculate_differences(img1, img2):
# Initialization
detector = cv2.ORB_create()
descriptor = cv2.ORB_create()
matcher = cv2.DescriptorMatcher_create(cv2.DESCRIPTOR_MATCHER_BRUTEFORCE_HAMMING)
- name: es
type: elasticsearch.Domain
elasticsearchVersion: "6.4"
ebsEnabled: true
volumeSize: 10
instanceType: t2.small.elasticsearch
- name: es-sink
type: AwsFirehose
resource: es
destination: elasticsearch
indexName: hpevents
typeName: hpevent
- tap: honeylogs-tap
pipeline: enrichment
- pipeline: enrichment
sink: es-sink
- name: enrichment
- name: lookup-geo
- name: honeyenrich
async def processEvent(event):
# Do event processing here ...
return event