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
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
# Yet-Another-Bench-Script # | |
# v2025-01-01 # | |
# https://github.com/masonr/yet-another-bench-script # | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
Wed Jan 29 09:39:45 PM +03 2025 | |
ARM compatibility is considered *experimental* |
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
# Description: This script decodes MikroTik Neighbor Discovery Protocol (MNDP) packets. | |
# Author: Mertcan GÖKGÖZ | |
# Date: 2024-07-14 | |
# Version: 1.0 | |
import io | |
import struct | |
from enum import Enum | |
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
- hosts: all | |
tasks: | |
- name: Run CVE-2024-3094 vulnerability check script | |
shell: | | |
set -eu | |
echo "Checking system for CVE-2024-3094 Vulnerability..." | |
echo "https://nvd.nist.gov/vuln/detail/CVE-2024-3094" | |
# find path to liblzma used by sshd |
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
pagespeed RewriteLevel CoreFilters; | |
pagespeed EnableFilters remove_quotes; | |
pagespeed DisableFilters prioritize_critical_css; | |
pagespeed RewriteLevel OptimizeForBandwidth; | |
pagespeed Domain *.mertcangokgoz.com; | |
pagespeed EnableFilters responsive_images,resize_images,lazyload_images,convert_jpeg_to_progressive; | |
pagespeed EnableFilters combine_css,rewrite_css,fallback_rewrite_css_urls; | |
pagespeed EnableFilters canonicalize_javascript_libraries,rewrite_javascript,defer_javascript; | |
pagespeed EnableFilters collapse_whitespace,extend_cache,trim_urls; | |
pagespeed HttpCacheCompressionLevel 0; |
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
server { | |
listen 8080; | |
listen [::]:8080; | |
server_name mertcangokgoz.com; | |
{{root}} | |
try_files $uri $uri/ /index.php?$args; | |
index index.php index.html; | |
error_page 404 = @notfound; |
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
root@debian:~# curl -sL yabs.sh | bash | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
# Yet-Another-Bench-Script # | |
# v2023-09-06 # | |
# https://github.com/masonr/yet-another-bench-script # | |
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
Fri 13 Oct 2023 06:20:58 PM EDT | |
Basic System Information: |
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 | |
def center_terminal_output(var: str, space: int = None) -> str: | |
if not space: | |
space = (os.get_terminal_size().columns - len(var.splitlines()[len(var.splitlines()) // 2])) / 2 | |
return "\n".join(" " * space + var for var in var.splitlines()) |
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 string | |
import time | |
import warnings | |
from pathlib import Path | |
from random import SystemRandom | |
import requests # pip install requests | |
import requests_random_user_agent # noqa: F401 # pip install requests-random-user-agent | |
from urllib3.exceptions import InsecureRequestWarning |
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 dns.resolver # pip install dnspython | |
class SpfCheck: | |
def __init__(self, domain: str) -> None: | |
self.domain = domain | |
self.spf_record = self.get_spf_record(domain) | |
self.parsed_spf = self.get_assets(self.spf_record) | |
self.ip_address = self.enumerate_ips(self.spf_record) |
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 shutil | |
import uuid | |
import pytesseract # pip install pytesseract and https://tesseract-ocr.github.io/tessdoc/Home.html | |
import requests # pip install requests | |
from PIL import Image # pip install pillow | |
from bs4 import BeautifulSoup # pip install beautifulsoup4 | |
# Create a requests session |
NewerOlder