This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
# Specify the folder containing the videos | |
folder_path = "/Users/myuser/Downloads/vidz" | |
# Create a new folder to save the output videos without audio | |
output_folder = os.path.join(folder_path, "no_audio_videos") | |
if not os.path.exists(output_folder): | |
os.makedirs(output_folder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################## | |
# *** OneRuleToRuleThemStill *** # | |
# # | |
# An optimised revamp of OneRuleToRuleThemAll # | |
# # | |
# ~5% rules reduction with 0% performance loss # | |
# against Lifeboat and LastFM data breaches # | |
# # | |
# Updates: # | |
# - De-duplication of resulting candidate generation # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j REDIRECT --to-port 8080 && | |
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 443 -j REDIRECT --to-port 8080 && | |
sudo iptables -t nat -A POSTROUTING -s 192.168.5.59/24 -o eth0 -j MASQUERADE && | |
sudo iptables -t nat -A PREROUTING -i tun0 -p tcp --dport 80 -j REDIRECT --to-port 8080 && | |
sudo iptables -t nat -A PREROUTING -i tun0 -p tcp --dport 443 -j REDIRECT --to-port 8080 && | |
sudo iptables -t nat -A POSTROUTING -s 192.168.5.59/24 -o eth0 -j MASQUERADE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip3 install netaddr | |
from netaddr import IPNetwork | |
with open("scope.txt", "r") as file: | |
for x in file: | |
for a in IPNetwork(x): | |
print('%s' % a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo bash -c 'docker pull opensecurity/mobile-security-framework-mobsf'; | |
sudo bash -c 'docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Nmap2CSV is a simple Python script to convert XML (-oX) Nmap or Masscan | |
output files to a single CSV spreadsheet which summarizes all hosts and open | |
ports in a table in IP,PORT1,PORT2,PORT3,...,PORTN format: The first row is | |
the header with all open ports found on the scanned hosts. In the following | |
rows the specified character (default X) marks if the given port was found | |
open on the given host. The script also generates per-target results which | |
includes version information, if it is available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file: merger.py | |
# based off: <http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/> | |
# by: mastahyeti | |
import xml.etree.ElementTree as etree | |
import shutil | |
import os | |
first = 1 | |
for fileName in os.listdir("."): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#RECORDING TRANSCRIPT TO DUMP FILE | |
$CurrentDir = $PSScriptRoot | |
$ServerName = $env:computername | |
$DumpFilePath = "$CurrentDir\\"+$ServerName+"-CONFIG_DUMP_$(get-date -Format yyyymmdd_hhmmtt).txt" | |
Start-Transcript -Path $DumpFilePath -NoClobber | |
Write-Host | |
Write-Host 'Checking if your PowerShell Script Execution Policy is set to Unrestricted' -ForegroundColor Yellow -BackgroundColor Black | |
Start-Sleep -s 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/local/bin/perl | |
use strict; | |
use XML::TreePP; | |
use Data::Dumper; | |
use Math::Round; | |
use Excel::Writer::XLSX; | |
use Data::Table; | |
use Excel::Writer::XLSX::Chart; | |
use Getopt::Std; | |
#use Devel::Size qw(size total_size); ############# New module |
NewerOlder