CVE-2021-21972
Tested against VMware VCSA 6.7
ssh-keygen -t rsa -f vcsa.key -N ''
from scapy.all import * | |
from scapy.contrib.erspan import ERSPAN_I # Import ERSPAN Type I from Scapy | |
import time # To use the current time or custom timestamp | |
# Outer Ethernet and IP header (ERSPAN transport) | |
outer_eth = Ether(src="00:11:22:33:44:55", dst="66:77:88:99:AA:BB") | |
outer_ip = IP(src="192.168.1.100", dst="192.168.2.200", ttl=64) | |
# GRE header with ERSPAN (protocol 0x88BE) | |
gre_header = GRE(proto=0x88BE) |
import json | |
# Sample JSON data | |
json_data = [ | |
{ | |
"summary": "this is the summary 1", | |
"title": "this is the title 1", | |
"year": "2024", | |
"video": "1.mp4", | |
"subtitle": "1.vtt" |
import os | |
import json | |
import boto3 | |
import mysql.connector | |
from tqdm import tqdm | |
def upload_mp4_files_to_s3(bucket_name: str, local_directory: str, access_key_id: str, secret_access_key: str, db_host: str, db_user: str, db_password: str, db_database: str): | |
session = boto3.Session( | |
aws_access_key_id=access_key_id, | |
aws_secret_access_key=secret_access_key |
import os | |
import boto3 | |
from tqdm import tqdm | |
def upload_mp4_files_to_s3(bucket_name: str, local_directory: str, access_key_id: str, secret_access_key: str): | |
session = boto3.Session( | |
aws_access_key_id=access_key, | |
aws_secret_access_key=secret_key | |
) |
$counter = 0 | |
$decodedctr = 0 | |
Push-Location C:\ioncube_priv8_decoder_v1\php\IC6_5.2 | |
foreach ($file in Get-Content zend-encrypted-files.txt) { | |
$targetfile = $file.Replace('C:\source\', 'C:\source-decoded\') | |
$targetdir = [System.IO.Path]::GetDirectoryName($targetfile) | |
Write-Host Decoding $file to $targetdir |
import hmac | |
import hashlib | |
import time | |
import base64 | |
import struct | |
import sys | |
import re | |
# The totp shared secret | |
shared_secret = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" |
import sys | |
import os | |
import json | |
import requests | |
import re | |
from tqdm import tqdm | |
url = 'https://www.vmware.com/bin/vmware/videolibrary/get/response' # videolibrary url | |
headers = { | |
'Content-Type': 'application/x-www-form-urlencoded', |
# https://twitter.com/brsn76945860/status/1171233054951501824 | |
pip install mmh3 | |
----------------------------- | |
# python 2 | |
import mmh3 | |
import requests | |
response = requests.get('https://cybersecurity.wtf/favicon.ico') | |
favicon = response.content.encode('base64') |
How to setup Burp Suite inside a docker container. |